-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathopengl_3dv.h
31 lines (28 loc) · 1.01 KB
/
opengl_3dv.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
#include "gl_custom.h"
#include "windows.h"
typedef struct struct_GLD3DBuffers {
GLuint fbo_left, fbo_right, texture_left, texture_right, render_buffer;
int width, height;
bool initialized, stereo;
// Internal
void *d3dLibrary;
void *d3dDevice;
void *d3dLeftColorTexture;
void *d3dRightColorTexture;
void *d3dLeftColorBuffer;
void *d3dRightColorBuffer;
void *d3dStereoColorBuffer;
void *d3dDepthBuffer;
void *d3dBackBuffer;
void *d3dDeviceInterop;
void *d3dLeftColorInterop;
void *d3dRightColorInterop;
void *d3dDepthInterop;
void *nvStereo;
} GLD3DBuffers;
void GLD3DBuffers_create(GLD3DBuffers *gl_d3d_buffers, void *window_handle, bool vsync, bool stereo);
void GLD3DBuffers_destroy(GLD3DBuffers *gl_d3d_buffers);
void GLD3DBuffers_activate_left(GLD3DBuffers *gl_d3d_buffers);
void GLD3DBuffers_activate_right(GLD3DBuffers *gl_d3d_buffers);
void GLD3DBuffers_deactivate(GLD3DBuffers *gl_d3d_buffers);
void GLD3DBuffers_flush(GLD3DBuffers *gl_d3d_buffers);