forked from openframeworks/openFrameworks
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathofApp.h
More file actions
56 lines (45 loc) · 1.49 KB
/
ofApp.h
File metadata and controls
56 lines (45 loc) · 1.49 KB
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#pragma once
#include "ofMain.h"
#include "ofxAssimpModel.h"
#include "ofxGui.h"
class ofApp : public ofBaseApp{
public:
void setup() override;
void update() override;
void draw() override;
void renderScene();
void exit() override;
void keyPressed(int key) override;
void keyReleased(int key) override;
void mouseMoved(int x, int y ) override;
void mouseDragged(int x, int y, int button) override;
void mousePressed(int x, int y, int button) override;
void mouseReleased(int x, int y, int button) override;
void mouseScrolled(int x, int y, float scrollX, float scrollY) override;
void mouseEntered(int x, int y) override;
void mouseExited(int x, int y) override;
void windowResized(int w, int h) override;
void dragEvent(ofDragInfo dragInfo) override;
void gotMessage(ofMessage msg) override;
ofEasyCam cam;
ofLight light;
ofx::assimp::Model wizardModel;
ofx::assimp::Model logoModel;
shared_ptr<ofx::assimp::Model> srcFoxModel;
vector< shared_ptr<ofx::assimp::Model> > foxes;
shared_ptr<ofMaterial> logoMaterial;
ofxPanel gui;
ofParameter<glm::vec3> wizardPos;
ofParameter<glm::vec3> wizardHandOffset;
ofVboMesh groundMesh;
ofMaterial groundMaterial;
ofCubeMap cubeMap;
ofParameter<float> cubeMapExposure;
ofParameter<bool> mBDebug;
ofParameter<bool> mBEnableCubeMap, mBDrawCubeMap;
ofParameterGroup mShadowParams;
ofParameter<float> mShadowStrength;
float mTimeSinceStaffHitGround = 100.0f;
bool bFiredHitGroundEvent = false;
bool bDrawGui = false;
};