]> Dogcows Code - chaz/yoink/blobdiff - src/Moof/Math.hh
experimental shapes hierarchy and raycasting
[chaz/yoink] / src / Moof / Math.hh
index c63cfe7db1bddace21e4a4fa8e8b04a460122a19..ae747ec37957417ca771fc0543a142d1adaf962d 100644 (file)
 #include <cmath>
 #include <cml/cml.h>
 
-#include <Moof/OpenGL.hh>              // GLscalar
+#include <SDL/SDL_opengl.h>
+
+#if HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+
+#if USE_DOUBLE_PRECISION
+
+typedef GLdouble       GLscalar;
+#define GL_SCALAR      GL_DOUBLE
+#define SCALAR(D)      (D)
+
+#else
+
+typedef GLfloat                GLscalar;
+#define GL_SCALAR      GL_FLOAT
+#define SCALAR(F)      (F##f)
+
+#endif
 
 
 namespace Mf {
This page took 0.017711 seconds and 4 git commands to generate.