-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSampleParticle.h
More file actions
47 lines (32 loc) · 879 Bytes
/
Copy pathSampleParticle.h
File metadata and controls
47 lines (32 loc) · 879 Bytes
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
#ifndef MY_PARTICLE_H
#define MY_PARTICLE_H
/*
This is a sample system. It accepts the command "read" followed by the
path to an OBJ model.
*/
#include "BaseSystem.h"
#include <shared/defs.h>
#include <util/util.h>
#include "animTcl.h"
#include <GLmodel/GLmodel.h>
#include "shared/opengl.h"
// a sample system
class SampleParticle : public BaseSystem
{
public:
SampleParticle( const std::string& name );
virtual void getState( double *p );
virtual void setState( double *p );
void reset( double time );
void display( GLenum mode = GL_RENDER );
void readModel(char *fname) { m_model.ReadOBJ(fname); }
void flipNormals(void) { glmReverseWinding(&m_model); }
int command(int argc, myCONST_SPEC char **argv) ;
protected:
float m_sx;
float m_sy;
float m_sz;
Vector m_pos ;
GLMmodel m_model ;
} ;
#endif