summaryrefslogtreecommitdiffstats
path: root/dev/gfxtest/gfx_test.h
blob: 61304fe20d2c2fb5531421f793fa5ee4629af3b3 (plain) (blame)
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
#ifndef GFX_TEST_H_
#define GFX_TEST_H_

#include <mingfx.h>
using namespace mingfx;

#include <string>
#include <vector>

class GfxTest : public GraphicsApp {
public:
  
    GfxTest();
    virtual ~GfxTest();
    
    void OnPauseBtnPressed();
    
    void UpdateSimulation(double dt);
    
    void InitOpenGL();
    void InitNanoGUI();
    
    void DrawUsingOpenGL();
      
private:    
    
    // Sets up the computer graphics camera
    Matrix4 rot_matrix_;
    Matrix4 view_matrix_;
    Matrix4 proj_matrix_;
    
    Mesh teapot_;
    DefaultShader shader_;
    
    // Gui elements
    nanogui::Button  *pauseBtn_;
    bool playing_;
};

#endif