diff options
author | Omniscient <17525998+omnisci3nce@users.noreply.github.com> | 2024-02-24 22:54:04 +1100 |
---|---|---|
committer | Omniscient <17525998+omnisci3nce@users.noreply.github.com> | 2024-02-24 22:54:04 +1100 |
commit | b38313c518d99a43c8a2438ea20f1cf84636d794 (patch) | |
tree | 5bbaefe6bc1d36c6184c18a129bff3bab91465ac /src/renderer | |
parent | b27cfd40b88a4c2689560b3d3235c8579b9778f6 (diff) |
add handle def macro
Diffstat (limited to 'src/renderer')
-rw-r--r-- | src/renderer/render_types.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/renderer/render_types.h b/src/renderer/render_types.h index 896a1a5..a3639e7 100644 --- a/src/renderer/render_types.h +++ b/src/renderer/render_types.h @@ -12,6 +12,16 @@ struct GLFWwindow; +#ifndef RESOURCE_HANDLE_DEFS +CORE_DEFINE_HANDLE(texture_handle); +#define RESOURCE_HANDLE_DEFS +#endif + +/* @brief Opaque wrapper around a shader program */ +typedef struct shader { + u32 program_id; +} shader; + /** @brief configuration passed to the renderer at init time */ typedef struct renderer_config { char window_name[256]; |