40#ifndef GEOGRAM_GFX_GLUP_GLUP_PRIVATE
41#define GEOGRAM_GFX_GLUP_GLUP_PRIVATE
55 extern GLUP_API Context* current_context_;
59 GLUP::current_context_->
begin(primitive);
62inline void glupPrivateEnd() {
63 GLUP::current_context_->
end();
66inline void glupPrivateVertex2fv(
const GLUPfloat* xy) {
70inline void glupPrivateVertex3fv(
const GLUPfloat* xyz) {
74inline void glupPrivateVertex4fv(
const GLUPfloat* xyzw) {
76 xyzw[0], xyzw[1], xyzw[2], xyzw[3]
80inline void glupPrivateVertex2dv(
const GLUPdouble* xy) {
87inline void glupPrivateVertex3dv(
const GLUPdouble* xyz) {
95inline void glupPrivateVertex4dv(
const GLUPdouble* xyzw) {
104inline void glupPrivateVertex2f(GLUPfloat x, GLUPfloat y) {
108inline void glupPrivateVertex3f(GLUPfloat x, GLUPfloat y, GLUPfloat z) {
112inline void glupPrivateVertex4f(
113 GLUPfloat x, GLUPfloat y, GLUPfloat z, GLUPfloat w
118inline void glupPrivateVertex2d(GLUPdouble x, GLUPdouble y) {
125inline void glupPrivateVertex3d(GLUPdouble x, GLUPdouble y, GLUPdouble z) {
133inline void glupPrivateVertex4d(
134 GLUPdouble x, GLUPdouble y, GLUPdouble z, GLUPdouble w
144inline void glupPrivateColor3fv(
const GLUPfloat* rgb) {
148inline void glupPrivateColor4fv(
const GLUPfloat* rgba) {
149 GLUP::current_context_->
immediate_color(rgba[0], rgba[1], rgba[2], rgba[3]);
152inline void glupPrivateColor3dv(
const GLUPdouble* rgb) {
160inline void glupPrivateColor4dv(
const GLUPdouble* rgba) {
169inline void glupPrivateColor3f(GLUPfloat r, GLUPfloat g, GLUPfloat b) {
173inline void glupPrivateColor4f(
174 GLUPfloat r, GLUPfloat g, GLUPfloat b, GLUPfloat a
179inline void glupPrivateColor3d(GLUPdouble r, GLUPdouble g, GLUPdouble b) {
187inline void glupPrivateColor4d(
188 GLUPdouble r, GLUPdouble g, GLUPdouble b, GLUPdouble a
198inline void glupPrivateTexCoord2fv(
const GLUPfloat* st) {
202inline void glupPrivateTexCoord3fv(
const GLUPfloat* stu) {
206inline void glupPrivateTexCoord4fv(
const GLUPfloat* stuv) {
208 stuv[0], stuv[1], stuv[2], stuv[3]
212inline void glupPrivateTexCoord2dv(
const GLUPdouble* st) {
219inline void glupPrivateTexCoord3dv(
const GLUPdouble* stu) {
227inline void glupPrivateTexCoord4dv(
const GLUPdouble* stuv) {
236inline void glupPrivateTexCoord1f(GLUPfloat s) {
240inline void glupPrivateTexCoord2f(GLUPfloat s, GLUPfloat t) {
244inline void glupPrivateTexCoord3f(GLUPfloat s, GLUPfloat t, GLUPfloat u) {
248inline void glupPrivateTexCoord4f(
249 GLUPfloat s, GLUPfloat t, GLUPfloat u, GLUPfloat v
254inline void glupPrivateTexCoord1d(GLUPdouble s) {
260inline void glupPrivateTexCoord2d(GLUPdouble s, GLUPdouble t) {
267inline void glupPrivateTexCoord3d(GLUPdouble s, GLUPdouble t, GLUPdouble u) {
275inline void glupPrivateTexCoord4d(
276 GLUPdouble s, GLUPdouble t, GLUPdouble u, GLUPdouble v
287inline void glupPrivateNormal3fv(GLUPfloat* xyz) {
293inline void glupPrivateNormal3f(GLUPfloat x, GLUPfloat y, GLUPfloat z) {
299inline void glupPrivateNormal3dv(GLUPdouble* xyz) {
307inline void glupPrivateNormal3d(GLUPdouble x, GLUPdouble y, GLUPdouble z) {
GLUP: GL Useful Primitives.
GLUPprimitive
Symbolic values corresponding to GLUP primitive types.
Internal implementation of GLUP context.
void immediate_color(GLfloat r, GLfloat g, GLfloat b, GLfloat a=1.0f)
Specifies the current color for the immediate mode buffers.
void immediate_vertex(GLfloat x, GLfloat y, GLfloat z=0.0f, GLfloat w=1.0f)
Creates a new vertex in the immediate mode buffers.
virtual void begin(GLUPprimitive primitive)
Begins rendering in immediate mode.
void immediate_normal(GLfloat x, GLfloat y, GLfloat z)
Specifies the current normal vector for the immediate mode buffers.
void immediate_tex_coord(GLfloat s, GLfloat t=0.0f, GLfloat u=0.0f, GLfloat v=1.0f)
Specifies the current texture coordinates for the immediate mode buffers.
virtual void end()
Ends rendering in immediate mode.
Global Vorpaline namespace.