Skip to content

Commit

Permalink
Remove unused code for handling GL_FLOAT vs. GL_DOUBLE
Browse files Browse the repository at this point in the history
  • Loading branch information
jhasse committed Feb 13, 2024
1 parent 254d3b5 commit 1d5fbbc
Showing 1 changed file with 0 additions and 26 deletions.
26 changes: 0 additions & 26 deletions src/opengl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,30 +50,4 @@ namespace opengl

/// Generates a textures, binds it to GL_TEXTURE_2D and sets some common parameters
GLuint genAndBindTexture();

template<class T> struct Type {};

template<>
struct Type<float>
{
const static GLenum constant = GL_FLOAT;
};

template<>
struct Type<double>
{
#ifdef GL_DOUBLE
const static GLenum constant = GL_DOUBLE;
using type = GLdouble;
#else
const static GLenum constant = GL_FLOAT;
using type = GLfloat;
#endif
};

#ifdef GL_DOUBLE
using CoordType = GLdouble;
#else
using CoordType = GLfloat;
#endif
} // namespace opengl

0 comments on commit 1d5fbbc

Please sign in to comment.