-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathgllsRender.h
72 lines (63 loc) · 1.85 KB
/
gllsRender.h
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
64
65
66
67
68
69
70
71
72
#if defined (__APPLE__)
#include <OpenGL/gl.h>
#elif defined (GLES)
#include <GLES3/gl3.h>
#elif defined (_WIN32)
#include <GL/glew.h>
#else
#include <GL/gl.h>
#endif
typedef struct GLLSrenderable2{
unsigned int program, vao, nElements, elementType, mode;
void *offset;
void *uniformValues[2];
int uniformLocations[2];
} GLLSrenderable2;
typedef struct GLLSrenderable4{
unsigned int program, vao, nElements, elementType, mode;
void *offset;
void *uniformValues[4];
int uniformLocations[4];
} GLLSrenderable4;
typedef struct GLLSrenderable8{
unsigned int program, vao, nElements, elementType, mode;
void *offset;
void *uniformValues[8];
int uniformLocations[8];
} GLLSrenderable8;
typedef struct GLLSrenderable16{
unsigned int program, vao, nElements, elementType, mode;
void *offset;
void *uniformValues[16];
int uniformLocations[16];
} GLLSrenderable16;
typedef struct GLLSrenderable32{
unsigned int program, vao, nElements, elementType, mode;
void *offset;
void *uniformValues[32];
int uniformLocations[32];
} GLLSrenderable32;
typedef struct GLLSrenderable64{
unsigned int program, vao, nElements, elementType, mode;
void *offset;
void *uniformValues[64];
int uniformLocations[64];
} GLLSrenderable64;
typedef struct GLLSrenderable128{
unsigned int program, vao, nElements, elementType, mode;
void *offset;
void *uniformValues[128];
int uniformLocations[128];
} GLLSrenderable128;
typedef struct GLLSrenderable256{
unsigned int program, vao, nElements, elementType, mode;
void *offset;
void *uniformValues[256];
int uniformLocations[256];
} GLLSrenderable256;
typedef struct GLLSrenderable1024{
unsigned int program, vao, nElements, elementType, mode;
void *offset;
void *uniformValues[1024];
int uniformLocations[1024];
} GLLSrenderable1024;