-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmyScene.h
36 lines (24 loc) · 964 Bytes
/
myScene.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
36
#ifndef MYSCENE_H
#define MYSCENE_H
#include "anim.h"
#include "GlobalResourceManager.h"
// create your scene (you need to modify this!)
void MakeScene(void);
// initialize OpenGL
void myOpenGLInit();
// the main display callback
void DrawScene(GLenum mode=GL_RENDER) ;
// called every time a key is pressed
void myKey(unsigned char key, int x, int y) ;
// called every time a mouse button is press/released
void myMouse(int button, int state, int x, int y);
// called every time the mouse moves
void myMotion(int x, int y);
// called repeteadly every time the CPU is idle (not necessarily called at
// regular time intervals)
void myIdleCB(void) ;
// Commands you specify here will be recognized by the interpreter
void mySetScriptCommands(Tcl_Interp *interp, int argc, char **argv) ;
// Variables you specify here will be recognised by the tcl interpreter
extern SETVAR myScriptVariables[] ;
#endif // MYSCENE_H