LibGame
v0.4.0
The LG Game Engine - Copyright (C) 2024 ETMSoftware
lg_render.h
1
/*
2
* LibGame - Copyright (C) Emmanuel Thomas-Maurin 2011-2024
3
* All rights reserved
4
*/
5
6
#ifndef LG_RENDER_H
7
#define LG_RENDER_H
8
9
#define LG_N_MAX_DRAWS N_MAX_USEMTL_PER_OBJ
10
11
typedef
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 */
18
}
LG_DrawElements_Cmd
;
19
20
int
lg_mesh_to_drawelements_cmd
(
LG_Mesh
*,
int
,
LG_DrawElements_Cmd
*);
21
22
void
lg_draw_elements
(
LG_DrawElements_Cmd
*);
23
24
void
lg_drawelements_info
(
LG_DrawElements_Cmd
*);
25
26
#endif
/* LG_RENDER_H */
LG_Mesh
Definition:
lg_mesh.h:68
lg_drawelements_info
void lg_drawelements_info(LG_DrawElements_Cmd *draw_params)
Definition:
lg_render.c:128
LG_DrawElements_Cmd
Definition:
lg_render.h:11
lg_draw_elements
void lg_draw_elements(LG_DrawElements_Cmd *draw_params)
Definition:
lg_render.c:106
lg_mesh_to_drawelements_cmd
int lg_mesh_to_drawelements_cmd(LG_Mesh *mesh, int u_tex, LG_DrawElements_Cmd *draw_params)
Definition:
lg_render.c:34
src
libgame
lg_render.h
Generated by
1.8.17