Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifndef CRENDER_H
- #define CRENDER_H
- class oculusVr {
- private:
- // OculusRift Variables
- ovrHmd pHmd;
- OVR::Sizei recomendedTargetSize, renderTargetSize;
- ovrVector2f UVScaleOffset[ovrEye_Count][2];
- ovrEyeRenderDesc eyeRenderDesc[ovrEye_Count];
- ovrRecti eyeRenderViewport[ovrEye_Count];
- // OpenGL Variables
- GLFWwindow* glfwWindow;
- GLuint dListId[ovrEye_Count];
- GLuint vboId[ovrEye_Count];
- GLuint vaoId[ovrEye_Count];
- GLuint iboId[ovrEye_Count];
- GLuint indexCount[ovrEye_Count];
- GLuint shaderProg;
- // Uniforms
- GLuint uvScale;
- GLuint uvOffset;
- public:
- int ovrInit(int mode);
- int ovrDeinit();
- int ovrSetParams(int width, int height);
- int ovrMeshVbo();
- int oglInit();
- int oglRender();
- int oglDeinit();
- int loadShader();
- int loadTexture();
- };
- #endif /* CRENDER_H */
Advertisement
Add Comment
Please, Sign In to add comment