Kohi Game Engine
|
Represents actual geometry in the world. Typically (but not always, depending on use) paired with a material. More...
#include <resource_types.h>
Data Fields | |
u32 | id |
The geometry identifier. More... | |
u32 | internal_id |
The internal geometry identifier, used by the renderer backend to map to internal resources. More... | |
u16 | generation |
The geometry generation. Incremented every time the geometry changes. More... | |
vec3 | center |
The center of the geometry in local coordinates. More... | |
extents_3d | extents |
The extents of the geometry in local coordinates. More... | |
u32 | vertex_count |
The vertex count. More... | |
u32 | vertex_element_size |
The size of each vertex. More... | |
void * | vertices |
The vertex data. More... | |
u32 | index_count |
The index count. More... | |
u32 | index_element_size |
The size of each index. More... | |
void * | indices |
The index data. More... | |
char | name [GEOMETRY_NAME_MAX_LENGTH] |
The geometry name. More... | |
struct material * | material |
A pointer to the material associated with this geometry.. More... | |
Represents actual geometry in the world. Typically (but not always, depending on use) paired with a material.
vec3 center |
The center of the geometry in local coordinates.
extents_3d extents |
The extents of the geometry in local coordinates.
u16 generation |
The geometry generation. Incremented every time the geometry changes.
u32 id |
The geometry identifier.
u32 index_count |
The index count.
u32 index_element_size |
The size of each index.
void* indices |
The index data.
u32 internal_id |
The internal geometry identifier, used by the renderer backend to map to internal resources.
char name[GEOMETRY_NAME_MAX_LENGTH] |
The geometry name.
u32 vertex_count |
The vertex count.
u32 vertex_element_size |
The size of each vertex.
void* vertices |
The vertex data.