53#include <ACG/Config/ACGDefines.hh>
56#if defined(ARCH_DARWIN)
58 #include <OpenGL/gl.h>
84#include "../Math/VectorT.hh"
158inline void glVertexPointer(const Vec2f* _p)
159{ ::ACG::GLState::vertexPointer(2, GL_FLOAT, 0, _p); }
161inline void ACG::GLState::vertexPointer(const Vec2d* _p)
162{ ::ACG::GLState::vertexPointer(2, GL_DOUBLE, 0, _p); }
165inline void ACG::GLState::vertexPointer(const Vec3f* _p)
166{ ::ACG::GLState::vertexPointer(3, GL_FLOAT, 0, _p); }
168inline void ACG::GLState::vertexPointer(const Vec3d* _p)
169{ ::ACG::GLState::vertexPointer(3, GL_DOUBLE, 0, _p); }
172inline void ACG::GLState::vertexPointer(const Vec4f* _p)
173{ ::ACG::GLState::vertexPointer(4, GL_FLOAT, 0, _p); }
175inline void ACG::GLState::vertexPointer(const Vec4d* _p)
176{ ::ACG::GLState::vertexPointer(4, GL_DOUBLE, 0, _p); }
179inline void ACG::GLState::vertexPointer(GLint n, GLenum t, GLsizei s, const GLvoid *p)
180{ ::ACG::GLState::vertexPointer(n, t, s, p); }
184//-------------------------------------------------------------- ACG::GLState::normalPointer
187inline void ACG::GLState::normalPointer(const Vec3f* _p)
188{ ::ACG::GLState::normalPointer(GL_FLOAT, 0, _p); }
190inline void ACG::GLState::normalPointer(const Vec3d* _p)
191{ ::ACG::GLState::normalPointer(GL_DOUBLE, 0, _p); }
194inline void ACG::GLState::normalPointer(GLenum t, GLsizei s, const GLvoid *p)
195{ ::ACG::GLState::normalPointer(t, s, p); }
199//--------------------------------------------------------------- ACG::GLState::colorPointer
202inline void ACG::GLState::colorPointer(const Vec3uc* _p)
203{ ::ACG::GLState::colorPointer(3, GL_UNSIGNED_BYTE, 0, _p); }
205inline void ACG::GLState::colorPointer(const Vec3f* _p)
206{ ::ACG::GLState::colorPointer(3, GL_FLOAT, 0, _p); }
209inline void ACG::GLState::colorPointer(const Vec4uc* _p)
210{ ::ACG::GLState::colorPointer(4, GL_UNSIGNED_BYTE, 0, _p); }
212inline void ACG::GLState::colorPointer(const Vec4f* _p)
213{ ::ACG::GLState::colorPointer(4, GL_FLOAT, 0, _p); }
216inline void ACG::GLState::colorPointer(GLint n, GLenum t, GLsizei s, const GLvoid *p)
217{ ::ACG::GLState::colorPointer(n, t, s, p); }
221//------------------------------------------------------------ ACG::GLState::texcoordPointer
224inline void ACG::GLState::texcoordPointer(const float* _p)
225{ ::ACG::GLState::texcoordPointer(1, GL_FLOAT, 0, _p); }
227inline void ACG::GLState::texcoordPointer(const double* _p)
228{ ::ACG::GLState::texcoordPointer(1, GL_DOUBLE, 0, _p); }
231inline void ACG::GLState::texcoordPointer(const Vec2f* _p)
232{ ::ACG::GLState::texcoordPointer(2, GL_FLOAT, 0, _p); }
234inline void ACG::GLState::texcoordPointer(const Vec2d* _p)
235{ ::ACG::GLState::texcoordPointer(2, GL_DOUBLE, 0, _p); }
238inline void ACG::GLState::texcoordPointer(const Vec3f* _p)
239{ ::ACG::GLState::texcoordPointer(3, GL_FLOAT, 0, _p); }
241inline void ACG::GLState::texcoordPointer(const Vec3d* _p)
242{ ::ACG::GLState::texcoordPointer(3, GL_DOUBLE, 0, _p); }
245inline void ACG::GLState::texcoordPointer(const Vec4f* _p)
246{ ::ACG::GLState::texcoordPointer(4, GL_FLOAT, 0, _p); }
248inline void ACG::GLState::texcoordPointer(const Vec4d* _p)
249{ ::ACG::GLState::texcoordPointer(4, GL_DOUBLE, 0, _p); }
252inline void ACG::GLState::texcoordPointer(GLint n, GLenum t, GLsizei s, const GLvoid *p)
253{ ::ACG::GLState::texcoordPointer(n, t, s, p); }
270bool 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