-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathSceneRenderer.h
More file actions
41 lines (34 loc) · 988 Bytes
/
SceneRenderer.h
File metadata and controls
41 lines (34 loc) · 988 Bytes
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
#pragma once
#include <GL/glew.h>
#include <SDL_opengl.h>
#include <stdio.h>
#include <string>
#include <cstdlib>
#include <openvr.h>
#include "Matrices.h"
#include "Matrices.h"
#include "ViveControllerManager.h"
#include "VrInkManager.h"
#include "VrInkManagerApi.h"
class SceneRenderer
{
public:
SceneRenderer();
~SceneRenderer();
void SetupScene(DeviceHandlesInfo devicesHandles[], vr::VRActionSetHandle_t actionSet, uint32_t inkIndex, uint32_t viveIndex, bool bUseVRInkApi);
void RenderScene(Matrix4 viewProjectionMatrix);
void UpdateScene(Matrix4 hmdPose);
private:
GLuint m_unSceneProgramID;
GLint m_nSceneMatrixLocation;
GLuint m_unRenderModelProgramID;
GLint m_nRenderModelMatrixLocation;
GLint m_nRenderModelTintColorLocation;
GLint m_nRenderModelColorIntensityLocation;
bool m_bUseVRInkApi;
bool CompileShaders();
Matrix4 m_mHmdPose;
VrInkManager *m_pVrInkManager;
VrInkManagerApi *m_pVrInkManagerApi;
ViveControllerManager *m_pViveControllerManager;
};