-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathscene.h
35 lines (27 loc) · 800 Bytes
/
scene.h
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
#ifndef SCENE_H
#define SCENE_H
class Scene
{
public:
/**
Load textures, initialize shaders, etc.
*/
virtual void initScene() = 0;
/**
This is called prior to every frame. Use this
to update your animation.
*/
virtual void update( float t ) = 0;
/**
Draw your scene.
*/
virtual void render() = 0;
/**
Called when screen is resized
*/
virtual void resize(int, int) = 0;
virtual void updateView(float eyeX, float eyeY, float eyeZ, float directX, float directY, float directZ) = 0;
virtual void cubeRotation(float vecbX, float vecbY, float vecbZ, float vecdX, float vecdY, float vecdZ, float alpha) = 0;
virtual void defaultPosition() = 0;
};
#endif // SCENE_H