53#include <ACG/Config/ACGDefines.hh>
56#if defined(ARCH_DARWIN)
58 #define GL_DO_NOT_WARN_IF_MULTI_GL_VERSION_HEADERS_INCLUDED
59 #include <OpenGL/gl.h>
85#include "../Math/VectorT.hh"
159inline void glVertexPointer(const Vec2f* _p)
160{ ::ACG::GLState::vertexPointer(2, GL_FLOAT, 0, _p); }
162inline void ACG::GLState::vertexPointer(const Vec2d* _p)
163{ ::ACG::GLState::vertexPointer(2, GL_DOUBLE, 0, _p); }
166inline void ACG::GLState::vertexPointer(const Vec3f* _p)
167{ ::ACG::GLState::vertexPointer(3, GL_FLOAT, 0, _p); }
169inline void ACG::GLState::vertexPointer(const Vec3d* _p)
170{ ::ACG::GLState::vertexPointer(3, GL_DOUBLE, 0, _p); }
173inline void ACG::GLState::vertexPointer(const Vec4f* _p)
174{ ::ACG::GLState::vertexPointer(4, GL_FLOAT, 0, _p); }
176inline void ACG::GLState::vertexPointer(const Vec4d* _p)
177{ ::ACG::GLState::vertexPointer(4, GL_DOUBLE, 0, _p); }
180inline void ACG::GLState::vertexPointer(GLint n, GLenum t, GLsizei s, const GLvoid *p)
181{ ::ACG::GLState::vertexPointer(n, t, s, p); }
185//-------------------------------------------------------------- ACG::GLState::normalPointer
188inline void ACG::GLState::normalPointer(const Vec3f* _p)
189{ ::ACG::GLState::normalPointer(GL_FLOAT, 0, _p); }
191inline void ACG::GLState::normalPointer(const Vec3d* _p)
192{ ::ACG::GLState::normalPointer(GL_DOUBLE, 0, _p); }
195inline void ACG::GLState::normalPointer(GLenum t, GLsizei s, const GLvoid *p)
196{ ::ACG::GLState::normalPointer(t, s, p); }
200//--------------------------------------------------------------- ACG::GLState::colorPointer
203inline void ACG::GLState::colorPointer(const Vec3uc* _p)
204{ ::ACG::GLState::colorPointer(3, GL_UNSIGNED_BYTE, 0, _p); }
206inline void ACG::GLState::colorPointer(const Vec3f* _p)
207{ ::ACG::GLState::colorPointer(3, GL_FLOAT, 0, _p); }
210inline void ACG::GLState::colorPointer(const Vec4uc* _p)
211{ ::ACG::GLState::colorPointer(4, GL_UNSIGNED_BYTE, 0, _p); }
213inline void ACG::GLState::colorPointer(const Vec4f* _p)
214{ ::ACG::GLState::colorPointer(4, GL_FLOAT, 0, _p); }
217inline void ACG::GLState::colorPointer(GLint n, GLenum t, GLsizei s, const GLvoid *p)
218{ ::ACG::GLState::colorPointer(n, t, s, p); }
222//------------------------------------------------------------ ACG::GLState::texcoordPointer
225inline void ACG::GLState::texcoordPointer(const float* _p)
226{ ::ACG::GLState::texcoordPointer(1, GL_FLOAT, 0, _p); }
228inline void ACG::GLState::texcoordPointer(const double* _p)
229{ ::ACG::GLState::texcoordPointer(1, GL_DOUBLE, 0, _p); }
232inline void ACG::GLState::texcoordPointer(const Vec2f* _p)
233{ ::ACG::GLState::texcoordPointer(2, GL_FLOAT, 0, _p); }
235inline void ACG::GLState::texcoordPointer(const Vec2d* _p)
236{ ::ACG::GLState::texcoordPointer(2, GL_DOUBLE, 0, _p); }
239inline void ACG::GLState::texcoordPointer(const Vec3f* _p)
240{ ::ACG::GLState::texcoordPointer(3, GL_FLOAT, 0, _p); }
242inline void ACG::GLState::texcoordPointer(const Vec3d* _p)
243{ ::ACG::GLState::texcoordPointer(3, GL_DOUBLE, 0, _p); }
246inline void ACG::GLState::texcoordPointer(const Vec4f* _p)
247{ ::ACG::GLState::texcoordPointer(4, GL_FLOAT, 0, _p); }
249inline void ACG::GLState::texcoordPointer(const Vec4d* _p)
250{ ::ACG::GLState::texcoordPointer(4, GL_DOUBLE, 0, _p); }
253inline void ACG::GLState::texcoordPointer(GLint n, GLenum t, GLsizei s, const GLvoid *p)
254{ ::ACG::GLState::texcoordPointer(n, t, s, p); }
271bool ACGDLLEXPORT
openGLVersion(
const int _major,
const int _minor,
bool verbose =
true );
Scalar * data()
access to Scalar array
Namespace providing different geometric functions concerning angles.
void glColor(const Vec3f &_v)
Wrapper: glColor for Vec3f.
void glNormal(const Vec3f &_n)
Wrapper: glNormal for Vec3f.
bool ACGDLLEXPORT openGLVersionTest(const int _major, const int _minor)
bool checkExtensionSupported(const std::string &_extension)
bool openGLVersion(const int _major, const int _minor, bool _verbose)
void glVertex(const Vec2i &_v)
Wrapper: glVertex for Vec2i.
void glTexCoord(const Vec2f &_t)
Wrapper: glTexCoord for Vec2f.
std::string getExtensionString()
getExtensionString returns a string containing all supported OpenGL extensions this function uses the...
bool compatibilityProfile()
get opengl core profile setting