Guest User

Untitled

a guest
Aug 12th, 2015
297
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. #ifndef CRENDER_H
  2. #define CRENDER_H
  3.  
  4. class oculusVr {
  5. private:
  6. // OculusRift Variables
  7. ovrHmd pHmd;
  8. OVR::Sizei recomendedTargetSize, renderTargetSize;
  9. ovrVector2f UVScaleOffset[ovrEye_Count][2];
  10. ovrEyeRenderDesc eyeRenderDesc[ovrEye_Count];
  11. ovrRecti eyeRenderViewport[ovrEye_Count];
  12.  
  13. // OpenGL Variables
  14. GLFWwindow* glfwWindow;
  15. GLuint dListId[ovrEye_Count];
  16. GLuint vboId[ovrEye_Count];
  17. GLuint vaoId[ovrEye_Count];
  18. GLuint iboId[ovrEye_Count];
  19. GLuint indexCount[ovrEye_Count];
  20. GLuint shaderProg;
  21.  
  22. // Uniforms
  23. GLuint uvScale;
  24. GLuint uvOffset;
  25.  
  26. public:
  27. int ovrInit(int mode);
  28. int ovrDeinit();
  29. int ovrSetParams(int width, int height);
  30. int ovrMeshVbo();
  31. int oglInit();
  32. int oglRender();
  33. int oglDeinit();
  34. int loadShader();
  35. int loadTexture();
  36. };
  37.  
  38. #endif /* CRENDER_H */
Advertisement
Add Comment
Please, Sign In to add comment