summaryrefslogtreecommitdiff
path: root/src/GLView.h
diff options
context:
space:
mode:
authordon bright <hugh.m.bright@gmail.com>2013-03-04 02:08:04 (GMT)
committerdon bright <hugh.m.bright@gmail.com>2013-03-04 02:08:04 (GMT)
commit689fdad0acfd17aa2676bd5bcf34ebba29c383a5 (patch)
tree2d080d032c80bb281eea89cb3f1cf718037afe46 /src/GLView.h
parent50fcfe63c960d925318b5b9a613599d2e11c0f97 (diff)
move FAR_FAR_AWAY (gl clipping limit) to rendersettings
Diffstat (limited to 'src/GLView.h')
-rw-r--r--src/GLView.h27
1 files changed, 13 insertions, 14 deletions
diff --git a/src/GLView.h b/src/GLView.h
index e06296b..b3d4f3c 100644
--- a/src/GLView.h
+++ b/src/GLView.h
@@ -28,8 +28,6 @@ Some actions (showCrossHairs) only work properly on Gimbal Camera.
#include "renderer.h"
#include "Camera.h"
-#define FAR_FAR_AWAY 100000.0
-
class GLView
{
public:
@@ -58,25 +56,26 @@ public:
virtual bool save(const char *filename) = 0;
virtual std::string getRendererInfo() const = 0;
+ size_t far_far_away;
size_t width;
size_t height;
- double w_h_ratio;
- bool orthomode;
- bool showaxes;
- bool showfaces;
- bool showedges;
- bool showcrosshairs;
+ double w_h_ratio;
+ bool orthomode;
+ bool showaxes;
+ bool showfaces;
+ bool showedges;
+ bool showcrosshairs;
Camera cam;
#ifdef ENABLE_OPENCSG
- GLint shaderinfo[11];
- bool is_opencsg_capable;
- bool has_shaders;
- void enable_opencsg_shaders();
+ GLint shaderinfo[11];
+ bool is_opencsg_capable;
+ bool has_shaders;
+ void enable_opencsg_shaders();
virtual void display_opencsg_warning() = 0;
- bool opencsg_support;
- int opencsg_id;
+ bool opencsg_support;
+ int opencsg_id;
#endif
};
contact: Jan Huwald // Impressum