diff options
author | omnisci3nce <omniscient.oce@gmail.com> | 2024-07-18 23:10:11 +1000 |
---|---|---|
committer | omnisci3nce <omniscient.oce@gmail.com> | 2024-07-18 23:10:11 +1000 |
commit | 01d598220b403f4ac4da3b7aa1f0ce398be3198f (patch) | |
tree | 1408b120506f29d3a2d6b3b29a0c91fc1b1371eb /src/ral | |
parent | 544aac70015b6b075b172c42dd2d90dee3d029c0 (diff) |
skybox works
Diffstat (limited to 'src/ral')
-rw-r--r-- | src/ral/ral_common.h | 2 | ||||
-rw-r--r-- | src/ral/ral_types.h | 5 |
2 files changed, 7 insertions, 0 deletions
diff --git a/src/ral/ral_common.h b/src/ral/ral_common.h index 6a373ee..98f54ed 100644 --- a/src/ral/ral_common.h +++ b/src/ral/ral_common.h @@ -39,6 +39,8 @@ struct ResourcePools { typedef struct ResourcePools ResourcePools; void ResourcePools_Init(arena* a, struct ResourcePools* res_pools); +PUB GPU_Renderpass* GPU_GetDefaultRenderpass(); // returns a renderpass that draws directly to default framebuffer with default depth + // --- Vertex formats VertexDescription static_3d_vertex_description(); diff --git a/src/ral/ral_types.h b/src/ral/ral_types.h index 54dba56..bb15d2a 100644 --- a/src/ral/ral_types.h +++ b/src/ral/ral_types.h @@ -76,6 +76,7 @@ typedef enum VertexFormat { VERTEX_SKINNED, VERTEX_COLOURED_STATIC_3D, VERTEX_RAW_POS_COLOUR, + VERTEX_POS_ONLY, VERTEX_COUNT } VertexFormat; @@ -112,6 +113,10 @@ typedef union Vertex { Vec2 position; Vec3 colour; } raw_pos_colour; + + struct { + Vec3 position; + } pos_only; } Vertex; #ifndef TYPED_VERTEX_ARRAY |