-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyramid_types.h
49 lines (44 loc) · 880 Bytes
/
pyramid_types.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
/* types */
#define FBO_TYPE GL_TEXTURE_2D
#define FBO_FORMAT GL_RGBA16F_ARB
#define FBO_BUFFERS_COUNT 6
/** A pixels_struct specifies a rectangle of pixels
* in one or two buffers of one framebuffer object
**/
typedef struct
{
GLfloat x;
GLfloat y;
GLfloat width;
GLfloat height;
GLuint fbo; /* framebuffer object handle */
GLuint buffers[3]; /* e.g. GL_BACK or GL_COLOR_ATTACHMENT0_EXT */
GLuint textures[3]; /* texture handle */
int buffersCount;
} pixels_struct;
typedef enum
{
RS_BUFFER0,
RS_BUFFER1,
RS_BUFFER2,
RS_BUFFER3,
RS_BUFFER4,
RS_BUFFER5,
RS_TIME
} render_state_enum;
typedef enum
{
EMPTY,
PROJECTION,
ANALYSIS,
COPY,
SYNTHESIS,
PHONG,
SHOW
} phase_enum;
typedef enum
{
FBS_SYSTEM_PROVIDED,
FBS_APPLICATION_CREATED,
FBS_UNDEFINED
} framebuffer_state_enum;