diff options
| author | realtradam <[email protected]> | 2023-06-04 02:35:00 -0400 |
|---|---|---|
| committer | realtradam <[email protected]> | 2023-06-04 02:35:00 -0400 |
| commit | 35558b39040d37c939bd68b56985d6cb5385a451 (patch) | |
| tree | b10516557ba530d96799a8c4bed94b7644938811 /include/rodeo/gfx_t.h | |
| parent | 856ce67eb21f64d86ecf6bb3651985f10e6236c3 (diff) | |
| download | RodeoKit-35558b39040d37c939bd68b56985d6cb5385a451.tar.gz RodeoKit-35558b39040d37c939bd68b56985d6cb5385a451.zip | |
refactor to have graphics and windowing seperategfx-rewrite
Diffstat (limited to 'include/rodeo/gfx_t.h')
| -rw-r--r-- | include/rodeo/gfx_t.h | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/include/rodeo/gfx_t.h b/include/rodeo/gfx_t.h new file mode 100644 index 0000000..9ed5f14 --- /dev/null +++ b/include/rodeo/gfx_t.h @@ -0,0 +1,66 @@ +#pragma once + +// -- internal -- +// public +#include "rodeo_types.h" +// -- system -- +#include <inttypes.h> + +typedef struct irodeo_gfx_texture_internal irodeo_gfx_texture_internal_t; + +typedef +struct +{ + irodeo_gfx_texture_internal_t *internal_texture; + uint32_t width; + uint32_t height; +} +rodeo_gfx_texture_2d_t; + +typedef +union +{ + struct + { + float red; + float green; + float blue; + float alpha; + } + colors; + float array[4]; +} +rodeo_color_RGBAFloat_t; + +typedef +union +{ + struct + { + uint8_t red; + uint8_t green; + uint8_t blue; + uint8_t alpha; + } + colors; + uint32_t rgba; + uint8_t array[4]; +} +rodeo_color_RGBA8_t; + +typedef +struct +{ + float x; + float y; + float z; + rodeo_color_RGBAFloat_t color; + //float red; + //float green; + //float blue; + //float alpha; + float texture_x; + float texture_y; + float texture_id; +} +rodeo_gfx_vertex_t; |
