-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrendermodel.h
More file actions
63 lines (53 loc) · 1.94 KB
/
rendermodel.h
File metadata and controls
63 lines (53 loc) · 1.94 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
#ifndef RENDERMODELHEADER
#define RENDERMODELHEADER
/*
depth-only model drawing
*/
typedef struct renderModelDepthCallbackData_s {
unsigned int modelid;
unsigned int shaderid; //do i need this?
GLuint shaderprogram;
unsigned int shaderperm; //todo do i need these, or can i change to a pointer?
unsigned int ubodataoffset;
matrix4x4_t mvp;
// matrix4x4_t mv; // unlikely that i need that
} renderModelDepthCallbackData_t; //todo rename
void rendermodel_drawMDCallback(renderlistitem_t * ilist, unsigned int count); // may need to change to void *
void rendermodel_setupMDCallback(renderlistitem_t * ilist, unsigned int count);// may need to change to void *
/*
textured model drawing
*/
typedef struct renderModelCallbackData_s {
unsigned int modelid;
unsigned int shaderid; //do i need this?
GLuint shaderprogram;
unsigned int shaderperm; //todo do i need these, or can i change to a pointer?
unsigned int texturegroupid;
unsigned int ubodataoffset;
matrix4x4_t mvp;
matrix4x4_t mv;
} renderModelCallbackData_t; //todo rename
void rendermodel_drawMCallback(renderlistitem_t * ilist, unsigned int count); // may need to change to void *
void rendermodel_setupMCallback(renderlistitem_t * ilist, unsigned int count);// may need to change to void *
/*
alpha blended textured model drawing
*/
typedef struct renderModelAlphaCallbackData_s {
unsigned int modelid;
unsigned int shaderid; //do i need this?
GLuint shaderprogram;
unsigned int shaderperm; //todo do i need these, or can i change to a pointer?
unsigned int texturegroupid;
unsigned int ubodataoffset;
GLenum blendsource;
GLenum blenddest;
matrix4x4_t mvp;
matrix4x4_t mv;
} renderModelAlphaCallbackData_t; //todo rename
void rendermodel_drawMACallback(renderlistitem_t * ilist, unsigned int count); // may need to change to void *
void rendermodel_setupMACallback(renderlistitem_t * ilist, unsigned int count);// may need to change to void *
/*
generic funcs
*/
void rendermodel_init(void);
#endif