Kohi Game Engine
geometry Struct Reference

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 materialmaterial
 A pointer to the material associated with this geometry.. More...
 

Detailed Description

Represents actual geometry in the world. Typically (but not always, depending on use) paired with a material.

Field Documentation

◆ center

vec3 center

The center of the geometry in local coordinates.

◆ extents

extents_3d extents

The extents of the geometry in local coordinates.

◆ generation

u16 generation

The geometry generation. Incremented every time the geometry changes.

◆ id

u32 id

The geometry identifier.

◆ index_count

u32 index_count

The index count.

◆ index_element_size

u32 index_element_size

The size of each index.

◆ indices

void* indices

The index data.

◆ internal_id

u32 internal_id

The internal geometry identifier, used by the renderer backend to map to internal resources.

◆ material

struct material* material

A pointer to the material associated with this geometry..

◆ name

The geometry name.

◆ vertex_count

u32 vertex_count

The vertex count.

◆ vertex_element_size

u32 vertex_element_size

The size of each vertex.

◆ vertices

void* vertices

The vertex data.


The documentation for this struct was generated from the following file: