00001 #pragma once
00002
00003 #include "compiler_options.h"
00004 #include <glew/glew.h>
00005 #include <math.h>
00006 #include <iostream>
00007 #include <string>
00008
00009 #include "vec3.h"
00010
00011 #define PI 3.14159f
00012
00013 class vec3;
00014
00015 #define GLYPHSIZE 16
00016 #define max_channels 16
00017
00018
00019
00020 #define EULER 0 // euler-integration
00021 #define RUNGE_KUTTA2 1 // runge-kutta-integration of 2nd order
00022
00023
00025 const int MAX_SLIDER_VALUE = 100;
00026
00028 typedef enum DimensionT {X = 0, Y, Z, DIMCOUNT} DimensionT;
00029
00031 typedef enum ScalarDataT {NONE = 0, ORIGINAL = 1, NORMALIZED = 2} ScalarDataT;
00032
00034 typedef struct OrthoViewT {float left, right, bottom, top; } OrthoViewT;
00035
00037 static void printOglError(const char* addInfo = NULL)
00038 {
00039 GLenum errCode = glGetError();
00040 const GLubyte *errString;
00041
00042 if(errCode != GL_NO_ERROR)
00043 {
00044 errString = gluErrorString(errCode);
00045 std::cout << errString;
00046 if(addInfo != NULL)
00047 {
00048 std::cout << ": " << addInfo << std::endl;
00049 }
00050 else
00051 {
00052 std::cout << std::endl;
00053 }
00054 }
00055 }