LibGame v0.4.0
The LG Game Engine - Copyright (C) 2024-2026 ETMSoftware
Loading...
Searching...
No Matches
lg_render.h
1/*
2 * LibGame - Copyright (C) Emmanuel Thomas-Maurin 2011-2026
3 * All rights reserved
4 */
5
6#ifndef LG_RENDER_H
7#define LG_RENDER_H
8
9#define LG_N_MAX_DRAWS N_USEMTL_MAX
10
11typedef struct {
12 unsigned int n_draws;
13 int u_tex;
14 unsigned int tex_id[LG_N_MAX_DRAWS];
15 int tex_unit[LG_N_MAX_DRAWS];
16 unsigned long size[LG_N_MAX_DRAWS]; /* In VBO */
17 unsigned long shift[LG_N_MAX_DRAWS]; /* In IBO */
19
21
23
25
27
28#endif /* LG_RENDER_H */
void lg_draw_elements(LG_DrawElements_Cmd *draw_params)
Definition lg_render.c:122
void lg_drawelements_info(LG_DrawElements_Cmd *draw_params)
Definition lg_render.c:144
LG_Texture * lg_dummy_texture()
Definition lg_render.c:171
int lg_mesh_to_drawelements_cmd(LG_Mesh *mesh, int u_tex, LG_DrawElements_Cmd *draw_params)
Definition lg_render.c:37
Definition lg_render.h:11
Definition lg_mesh.h:87
Definition lg_textures.h:45