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) {
67 GLUP::current_context_->immediate_vertex(xy[0], xy[1]);
70inline void glupPrivateVertex3fv(
const GLUPfloat* xyz) {
71 GLUP::current_context_->immediate_vertex(xyz[0], xyz[1], xyz[2]);
74inline void glupPrivateVertex4fv(
const GLUPfloat* xyzw) {
75 GLUP::current_context_->immediate_vertex(
76 xyzw[0], xyzw[1], xyzw[2], xyzw[3]
80inline void glupPrivateVertex2dv(
const GLUPdouble* xy) {
81 GLUP::current_context_->immediate_vertex(
87inline void glupPrivateVertex3dv(
const GLUPdouble* xyz) {
88 GLUP::current_context_->immediate_vertex(
95inline void glupPrivateVertex4dv(
const GLUPdouble* xyzw) {
96 GLUP::current_context_->immediate_vertex(
104inline void glupPrivateVertex2f(GLUPfloat x, GLUPfloat y) {
105 GLUP::current_context_->immediate_vertex(x,y);
108inline void glupPrivateVertex3f(GLUPfloat x, GLUPfloat y, GLUPfloat z) {
109 GLUP::current_context_->immediate_vertex(x,y,z);
112inline void glupPrivateVertex4f(
113 GLUPfloat x, GLUPfloat y, GLUPfloat z, GLUPfloat w
115 GLUP::current_context_->immediate_vertex(x,y,z,w);
118inline void glupPrivateVertex2d(GLUPdouble x, GLUPdouble y) {
119 GLUP::current_context_->immediate_vertex(
125inline void glupPrivateVertex3d(GLUPdouble x, GLUPdouble y, GLUPdouble z) {
126 GLUP::current_context_->immediate_vertex(
133inline void glupPrivateVertex4d(
134 GLUPdouble x, GLUPdouble y, GLUPdouble z, GLUPdouble w
136 GLUP::current_context_->immediate_vertex(
144inline void glupPrivateColor3fv(
const GLUPfloat* rgb) {
145 GLUP::current_context_->immediate_color(rgb[0], rgb[1], rgb[2]);
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) {
153 GLUP::current_context_->immediate_color(
160inline void glupPrivateColor4dv(
const GLUPdouble* rgba) {
161 GLUP::current_context_->immediate_color(
169inline void glupPrivateColor3f(GLUPfloat r, GLUPfloat g, GLUPfloat b) {
170 GLUP::current_context_->immediate_color(r, g, b);
173inline void glupPrivateColor4f(
174 GLUPfloat r, GLUPfloat g, GLUPfloat b, GLUPfloat a
176 GLUP::current_context_->immediate_color(r, g, b, a);
179inline void glupPrivateColor3d(GLUPdouble r, GLUPdouble g, GLUPdouble b) {
180 GLUP::current_context_->immediate_color(
187inline void glupPrivateColor4d(
188 GLUPdouble r, GLUPdouble g, GLUPdouble b, GLUPdouble a
190 GLUP::current_context_->immediate_color(
198inline void glupPrivateTexCoord2fv(
const GLUPfloat* st) {
199 GLUP::current_context_->immediate_tex_coord(st[0], st[1]);
202inline void glupPrivateTexCoord3fv(
const GLUPfloat* stu) {
203 GLUP::current_context_->immediate_tex_coord(stu[0], stu[1], stu[2]);
206inline void glupPrivateTexCoord4fv(
const GLUPfloat* stuv) {
207 GLUP::current_context_->immediate_tex_coord(
208 stuv[0], stuv[1], stuv[2], stuv[3]
212inline void glupPrivateTexCoord2dv(
const GLUPdouble* st) {
213 GLUP::current_context_->immediate_tex_coord(
219inline void glupPrivateTexCoord3dv(
const GLUPdouble* stu) {
220 GLUP::current_context_->immediate_tex_coord(
227inline void glupPrivateTexCoord4dv(
const GLUPdouble* stuv) {
228 GLUP::current_context_->immediate_tex_coord(
236inline void glupPrivateTexCoord1f(GLUPfloat s) {
237 GLUP::current_context_->immediate_tex_coord(s);
240inline void glupPrivateTexCoord2f(GLUPfloat s, GLUPfloat t) {
241 GLUP::current_context_->immediate_tex_coord(s,t);
244inline void glupPrivateTexCoord3f(GLUPfloat s, GLUPfloat t, GLUPfloat u) {
245 GLUP::current_context_->immediate_tex_coord(s,t,u);
248inline void glupPrivateTexCoord4f(
249 GLUPfloat s, GLUPfloat t, GLUPfloat u, GLUPfloat v
251 GLUP::current_context_->immediate_tex_coord(s,t,u,v);
254inline void glupPrivateTexCoord1d(GLUPdouble s) {
255 GLUP::current_context_->immediate_tex_coord(
260inline void glupPrivateTexCoord2d(GLUPdouble s, GLUPdouble t) {
261 GLUP::current_context_->immediate_tex_coord(
267inline void glupPrivateTexCoord3d(GLUPdouble s, GLUPdouble t, GLUPdouble u) {
268 GLUP::current_context_->immediate_tex_coord(
275inline void glupPrivateTexCoord4d(
276 GLUPdouble s, GLUPdouble t, GLUPdouble u, GLUPdouble v
278 GLUP::current_context_->immediate_tex_coord(
287inline void glupPrivateNormal3fv(GLUPfloat* xyz) {
288 GLUP::current_context_->immediate_normal(
293inline void glupPrivateNormal3f(GLUPfloat x, GLUPfloat y, GLUPfloat z) {
294 GLUP::current_context_->immediate_normal(
299inline void glupPrivateNormal3dv(GLUPdouble* xyz) {
300 GLUP::current_context_->immediate_normal(
307inline void glupPrivateNormal3d(GLUPdouble x, GLUPdouble y, GLUPdouble z) {
308 GLUP::current_context_->immediate_normal(
GLUP: GL Useful Primitives.
GLUPprimitive
Symbolic values corresponding to GLUP primitive types.
Internal implementation of GLUP context.
GLUP context stores a Uniform Buffer Object with state variables similar to OpenGL's fixed functional...
virtual void begin(GLUPprimitive primitive)
Begins rendering in immediate mode.