--User changes

-Convert OpenGL drawing code to use GLSL. Leave #define in until testing on multiple platforms is done.
 -Always use double precision extension defines in OpenCL programs, even if DP is not selected. This is because elliptic now always uses DP.
This commit is contained in:
Person
2018-03-27 21:32:10 -07:00
parent 90e7097d7f
commit ed74fd6a83
6 changed files with 540 additions and 55 deletions

View File

@ -34,6 +34,8 @@ class GLWidget;
class Fractorium;
template <typename T> class FractoriumEmberController;
#define USE_GLSL 1
/// <summary>
/// GLEmberControllerBase serves as a non-templated base class with virtual
/// functions which will be overridden in a derived class that takes a template parameter.
@ -124,7 +126,9 @@ private:
v3T SnapToNormalizedAngle(v3T& vec, uint divisions);
v3T WindowToWorld(v3T& v, bool flip);
void QueryVMP();
#ifndef USE_GLSL
void MultMatrix(m4T& mat);
#endif
T m_CenterDownX;
T m_CenterDownY;
@ -147,5 +151,6 @@ private:
Xform<T>* m_SelectedXform;
FractoriumEmberController<T>* m_FractoriumEmberController;
T GridStep;
vector<float> m_Verts;//Can't make this T because GLSL only works with floats.
};