![]() |
LibGame v0.4.0
The LG Game Engine - Copyright (C) 2024-2026 ETMSoftware
|
Functions | |
| void | lg_vbo_and_ibo_info (Vertex_uv_n *vbo_data, uint32_t *ibo_data, uint32_t vbo_size, uint32_t ibo_size, lg_vertex_type vertex_type, int n_lines_max) |
| void | lg_vb_info (Vertex *vb_data, uint32_t vb_size, int n_lines_max, const char *line_start, zboolean is_triangle_mesh) |
| void | lg_vb_rgba_info (Vertex_rgba *vb_data, uint32_t vb_size, int n_lines_max, const char *line_start, zboolean is_triangle_mesh) |
| void | lg_vb_uvn_iw_info (Vertex_uvn_iw *vb_data, uint32_t vb_size, int n_lines_max, const char *line_start, zboolean is_triangle_mesh) |
| void | lg_vertex_sizes_info () |
| void lg_vbo_and_ibo_info | ( | Vertex_uv_n * | vbo_data, |
| uint32_t * | ibo_data, | ||
| uint32_t | vbo_size, | ||
| uint32_t | ibo_size, | ||
| lg_vertex_type | vertex_type, | ||
| int | n_lines_max | ||
| ) |
Print out nicely VBO and IBO (arrays of Vertex_uv_n and uint32_t)
vertex_type is one of lg_vertex_type: WITH_COORDS_ONLY, WITH_TEXCOORDS, WITH_NORMALS, WITH_TEXCOORDS_AND_NORMALS
| vbo_data | Pointer to (Vertex_uv_n) VBO with interleaved vertex data - sizeof(Vertex_uv_n) = 24 |
| ibo_data | Pointer to (uint32_t) IBO, indices start at 0, sizeof(uint32_t) = 4 |
| vbo_size | VBO size (uint32_t) |
| ibo_size | IBO size uint32_t |
| vertex_type | A lg_vertex_type, see above |
| n_lines_max | Print out up to n_lines_max lines |
| void lg_vb_info | ( | Vertex * | vb_data, |
| uint32_t | vb_size, | ||
| int | n_lines_max, | ||
| const char * | line_start, | ||
| zboolean | is_triangle_mesh | ||
| ) |
| void lg_vb_rgba_info | ( | Vertex_rgba * | vb_data, |
| uint32_t | vb_size, | ||
| int | n_lines_max, | ||
| const char * | line_start, | ||
| zboolean | is_triangle_mesh | ||
| ) |
Print out nicely a Vertex_rgba (ie spatial coords + RGBA color) buffer info, actually spatial coords info ONLY
v[1/2/3] applies only for triangle meshes
| vb_data | Pointer to a Vertex_rgba buffer |
| vb_size | Buffer size (uint32_t) |
| n_lines_max | Print out up to n_lines_max lines |
| line_start | String starting each line |
| is_triangle_mesh |
| void lg_vb_uvn_iw_info | ( | Vertex_uvn_iw * | vb_data, |
| uint32_t | vb_size, | ||
| int | n_lines_max, | ||
| const char * | line_start, | ||
| zboolean | is_triangle_mesh | ||
| ) |
Print out nicely a Vertex_uvn_iw buffer info spatial coords (only)
v[1/2/3] applies only for triangle meshes
| vb_data | Pointer to a Vertex_uvn_iw buffer |
| vb_size | Buffer size (uint32_t) |
| n_lines_max | Print out up to n_lines_max lines |
| line_start | String starting each line |
| is_triangle_mesh |
| void lg_vertex_sizes_info | ( | ) |
Print out Vertex sizes and alignement requirements