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);
62 inline void glupPrivateEnd() {
63 GLUP::current_context_->
end();
66 inline void glupPrivateVertex2fv(
const GLUPfloat* xy) {
70 inline void glupPrivateVertex3fv(
const GLUPfloat* xyz) {
74 inline void glupPrivateVertex4fv(
const GLUPfloat* xyzw) {
76 xyzw[0], xyzw[1], xyzw[2], xyzw[3]
80 inline void glupPrivateVertex2dv(
const GLUPdouble* xy) {
87 inline void glupPrivateVertex3dv(
const GLUPdouble* xyz) {
95 inline void glupPrivateVertex4dv(
const GLUPdouble* xyzw) {
104 inline void glupPrivateVertex2f(GLUPfloat x, GLUPfloat y) {
108 inline void glupPrivateVertex3f(GLUPfloat x, GLUPfloat y, GLUPfloat z) {
112 inline void glupPrivateVertex4f(
113 GLUPfloat x, GLUPfloat y, GLUPfloat z, GLUPfloat w
118 inline void glupPrivateVertex2d(GLUPdouble x, GLUPdouble y) {
125 inline void glupPrivateVertex3d(GLUPdouble x, GLUPdouble y, GLUPdouble z) {
133 inline void glupPrivateVertex4d(
134 GLUPdouble x, GLUPdouble y, GLUPdouble z, GLUPdouble w
144 inline void glupPrivateColor3fv(
const GLUPfloat* rgb) {
148 inline void glupPrivateColor4fv(
const GLUPfloat* rgba) {
149 GLUP::current_context_->
immediate_color(rgba[0], rgba[1], rgba[2], rgba[3]);
152 inline void glupPrivateColor3dv(
const GLUPdouble* rgb) {
160 inline void glupPrivateColor4dv(
const GLUPdouble* rgba) {
169 inline void glupPrivateColor3f(GLUPfloat r, GLUPfloat g, GLUPfloat b) {
173 inline void glupPrivateColor4f(
174 GLUPfloat r, GLUPfloat g, GLUPfloat b, GLUPfloat a
179 inline void glupPrivateColor3d(GLUPdouble r, GLUPdouble g, GLUPdouble b) {
187 inline void glupPrivateColor4d(
188 GLUPdouble r, GLUPdouble g, GLUPdouble b, GLUPdouble a
198 inline void glupPrivateTexCoord2fv(
const GLUPfloat* st) {
202 inline void glupPrivateTexCoord3fv(
const GLUPfloat* stu) {
206 inline void glupPrivateTexCoord4fv(
const GLUPfloat* stuv) {
208 stuv[0], stuv[1], stuv[2], stuv[3]
212 inline void glupPrivateTexCoord2dv(
const GLUPdouble* st) {
219 inline void glupPrivateTexCoord3dv(
const GLUPdouble* stu) {
227 inline void glupPrivateTexCoord4dv(
const GLUPdouble* stuv) {
236 inline void glupPrivateTexCoord1f(GLUPfloat s) {
240 inline void glupPrivateTexCoord2f(GLUPfloat s, GLUPfloat t) {
244 inline void glupPrivateTexCoord3f(GLUPfloat s, GLUPfloat t, GLUPfloat u) {
248 inline void glupPrivateTexCoord4f(
249 GLUPfloat s, GLUPfloat t, GLUPfloat u, GLUPfloat v
254 inline void glupPrivateTexCoord1d(GLUPdouble s) {
260 inline void glupPrivateTexCoord2d(GLUPdouble s, GLUPdouble t) {
267 inline void glupPrivateTexCoord3d(GLUPdouble s, GLUPdouble t, GLUPdouble u) {
275 inline void glupPrivateTexCoord4d(
276 GLUPdouble s, GLUPdouble t, GLUPdouble u, GLUPdouble v
287 inline void glupPrivateNormal3fv(GLUPfloat* xyz) {
293 inline void glupPrivateNormal3f(GLUPfloat x, GLUPfloat y, GLUPfloat z) {
299 inline void glupPrivateNormal3dv(GLUPdouble* xyz) {
307 inline 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.