-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathModelerView.h
executable file
·55 lines (36 loc) · 950 Bytes
/
ModelerView.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
// modelerview.h
// This is the base class for your view window. It contains
// a camera control for your use. The draw() function will
// set up default lighting and apply the projection.
#ifndef MODELERVIEW_H
#define MODELERVIEW_H
#ifdef WIN32
#include <windows.h>
#endif
#include <FL/Fl_Gl_Window.H>
#ifdef __APPLE__
# include <OpenGL/gl.h>
#else
# include <GL/gl.h>
#endif
class Camera;
class ModelerView;
#include "SkeletalModel.h"
using namespace std;
class ModelerView : public Fl_Gl_Window
{
public:
ModelerView(int x, int y, int w, int h, const char *label = 0);
void loadModel(int argc, char* argv[]);
virtual ~ModelerView ();
virtual int handle(int event);
virtual void update();
virtual void draw();
void updateJoints();
void drawAxes();
Camera *m_camera;
SkeletalModel model;
bool m_drawAxes;
bool m_drawSkeleton; // if false, the mesh is drawn instead.
};
#endif /* */