-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFionaVMDDisplayDevice.h
More file actions
30 lines (22 loc) · 966 Bytes
/
FionaVMDDisplayDevice.h
File metadata and controls
30 lines (22 loc) · 966 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
#ifndef FIONAVMDDISPLAYDEVICE_H_
#define FIONAVMDDISPLAYDEVICE_H_
#include "VMD/OpenGLRenderer.h"
class FionaVMD;
class FionaVMDDisplayDevice : public OpenGLRenderer
{
public:
FionaVMDDisplayDevice();
virtual ~FionaVMDDisplayDevice();
virtual void clear(void); ///< let Fiona handle clearing
virtual void set_stereo_mode(int = 0); ///< ignore stereo mode changes
virtual void render(const VMDDisplayList *); ///< FreeVR renderer + init chk
virtual void normal(void); ///< prevent view mode changes
virtual void update(int do_update = TRUE); ///< prevent buffer swaps
protected:
virtual int do_define_light(int n, float *color, float *position);
virtual void update_shader_uniforms(void *voidshader, int forceupdate);
private:
int doneGLInit; ///< have we initialized the graphics yet?
void fiona_gl_init_fn(void); ///< setup graphics state on FreeVR displays
};
#endif