00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032 #ifndef VL_GL_FUNCTION_WRAPPERS
00033 #define VL_GL_FUNCTION_WRAPPERS
00034
00035 #pragma warning( disable : 4100 ) // unreferenced formal parameter
00036
00037
00038
00039 #define glDepthRange glDepthRangef
00040 #define glClearDepth glClearDepthf
00041 #define glOrtho glOrthof
00042
00043 #define glTexGenf glTexGenfOES
00044 #define glTexGenfv glTexGenfvOES
00045 #define glTexGeni glTexGeniOES
00046 #define glTexGeniv glTexGenivOES
00047 #define glTexGenx glTexGenxOES
00048 #define glTexGenxv glTexGenxvOES
00049 #define glGetTexGenfv glGetTexGenfvOES
00050 #define glGetTexGeniv glGetTexGenivOES
00051 #define glGetTexGenxv glGetTexGenxvOES
00052
00053 #ifndef VL_UNSUPPORTED_FUNC
00054 #define VL_UNSUPPORTED_FUNC() { Log::error( String().printf("The function \"%s\" is not supported under OpenGL ES 1.x! (%s:%d).\n", __FUNCTION__, __FILE__, __LINE__) ); VL_TRAP(); }
00055 #endif
00056
00057 namespace vl
00058 {
00059 inline void VL_glBindBuffer( GLenum target, GLuint buffer )
00060 {
00061 glBindBuffer(target,buffer);
00062 }
00063
00064 inline void VL_glGenBuffers( GLsizei n, GLuint * buffers)
00065 {
00066 glGenBuffers( n, buffers);
00067 }
00068
00069 inline void VL_glDeleteBuffers( GLsizei n, const GLuint * buffers)
00070 {
00071 glDeleteBuffers( n, buffers);
00072 }
00073
00074 inline void VL_glBufferData( GLenum target, GLsizeiptr size, const GLvoid * data, GLenum usage)
00075 {
00076 glBufferData( target, size, data, usage);
00077 }
00078
00079 inline void VL_glBufferSubData( GLenum target, GLintptr offset, GLsizeiptr size, const GLvoid * data)
00080 {
00081 glBufferSubData( target, offset, size, data );
00082 }
00083
00084 inline void* VL_glMapBuffer( GLenum target, GLenum access)
00085 {
00086 if(glMapBufferOES)
00087 return glMapBufferOES(target, access);
00088 else
00089 {
00090 VL_TRAP();
00091 return 0;
00092 }
00093 }
00094
00095 inline GLboolean VL_glUnmapBuffer(GLenum target)
00096 {
00097 if (glUnmapBufferOES)
00098 return glUnmapBufferOES(target);
00099 else
00100 {
00101 VL_TRAP();
00102 return GL_FALSE;
00103 }
00104 }
00105
00106
00107
00108 inline void VL_glSecondaryColor3f(float r, float g, float b)
00109 {
00110 VL_UNSUPPORTED_FUNC()
00111 }
00112
00113 inline void VL_glSecondaryColorPointer( GLint size, GLenum type, GLsizei stride, const GLvoid* pointer)
00114 {
00115 VL_UNSUPPORTED_FUNC()
00116 }
00117
00118
00119
00120 inline void VL_glFogCoordPointer( GLenum type, GLsizei stride, GLvoid* pointer )
00121 {
00122 VL_UNSUPPORTED_FUNC()
00123 }
00124
00125
00126
00127 inline void VL_glEnableVertexAttribArray( GLuint index )
00128 {
00129 VL_UNSUPPORTED_FUNC()
00130 }
00131
00132 inline void VL_glDisableVertexAttribArray( GLuint index )
00133 {
00134 VL_UNSUPPORTED_FUNC()
00135 }
00136
00137
00138
00139 inline void VL_glVertexAttribPointer( GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const GLvoid * pointer)
00140 {
00141 VL_UNSUPPORTED_FUNC()
00142 }
00143
00144 inline void VL_glVertexAttribIPointer(GLuint name, GLint size, GLenum type, GLsizei stride, const GLvoid* pointer)
00145 {
00146 VL_UNSUPPORTED_FUNC()
00147 }
00148
00149 inline void VL_glVertexAttribLPointer(GLuint name, GLint size, GLenum type, GLsizei stride, const GLvoid* pointer)
00150 {
00151 VL_UNSUPPORTED_FUNC()
00152 }
00153
00154
00155
00156 inline void VL_glClientActiveTexture(GLenum texture)
00157 {
00158 glClientActiveTexture(texture);
00159 }
00160
00161 inline void VL_glActiveTexture(GLenum texture)
00162 {
00163 glActiveTexture(texture);
00164 }
00165
00166
00167
00168 inline void VL_glBlendFuncSeparate( GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha)
00169 {
00170 if(glBlendFuncSeparateOES)
00171 glBlendFuncSeparateOES(srcRGB, dstRGB, srcAlpha, dstAlpha);
00172 else
00173 VL_TRAP();
00174 }
00175
00176 inline void VL_glBlendEquationSeparate( GLenum modeRGB, GLenum modeAlpha)
00177 {
00178 if(glBlendEquationSeparateOES)
00179 glBlendEquationSeparateOES(modeRGB, modeAlpha);
00180 else
00181 VL_TRAP();
00182 }
00183
00184 inline void VL_glBlendEquation(GLenum mode)
00185 {
00186 if(glBlendEquationOES)
00187 glBlendEquationOES(mode);
00188 else
00189 VL_TRAP();
00190 }
00191
00192 inline void VL_glBlendColor( GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha)
00193 {
00194 VL_UNSUPPORTED_FUNC()
00195 }
00196
00197
00198
00199 inline void VL_glPointParameterfv( GLenum pname, const GLfloat* params)
00200 {
00201 glPointParameterfv(pname,(GLfloat*)params);
00202 }
00203
00204 inline void VL_glPointParameterf( GLenum pname, GLfloat param)
00205 {
00206 glPointParameterf(pname,param);
00207 }
00208
00209 inline void VL_glPointParameteri( GLenum pname, GLenum param)
00210 {
00211 VL_UNSUPPORTED_FUNC()
00212 }
00213
00214
00215
00216 inline void VL_glStencilFuncSeparate( GLenum face, GLenum func, GLint ref, GLuint mask)
00217 {
00218 VL_UNSUPPORTED_FUNC()
00219 }
00220
00221 inline void VL_glStencilOpSeparate( GLenum face, GLenum sfail, GLenum dpfail, GLenum dppass)
00222 {
00223 VL_UNSUPPORTED_FUNC()
00224 }
00225
00226
00227
00228 inline void VL_glSampleCoverage( GLclampf value, GLboolean invert)
00229 {
00230 glSampleCoverage(value,invert);
00231 }
00232
00233
00234
00235 inline void VL_glBindRenderbuffer(GLenum target, GLuint renderbuffer)
00236 {
00237 if (glBindRenderbufferOES)
00238 glBindRenderbufferOES(target, renderbuffer);
00239 else
00240 VL_TRAP();
00241 }
00242
00243 inline void VL_glDeleteRenderbuffers(GLsizei n, const GLuint *renderbuffers)
00244 {
00245 if (glDeleteRenderbuffersOES)
00246 glDeleteRenderbuffersOES(n, renderbuffers);
00247 else
00248 VL_TRAP();
00249 }
00250
00251 inline void VL_glGenRenderbuffers(GLsizei n, GLuint *renderbuffers)
00252 {
00253 if (glGenRenderbuffersOES)
00254 glGenRenderbuffersOES(n, renderbuffers);
00255 else
00256 VL_TRAP();
00257 }
00258
00259 inline void VL_glRenderbufferStorage(GLenum target, GLenum internalformat, GLsizei width, GLsizei height)
00260 {
00261 if (glRenderbufferStorageOES)
00262 glRenderbufferStorageOES(target, internalformat, width, height);
00263 else
00264 VL_TRAP();
00265 }
00266
00267 inline void VL_glGetRenderbufferParameteriv(GLenum target, GLenum pname, GLint *params)
00268 {
00269 if (glGetRenderbufferParameterivOES)
00270 glGetRenderbufferParameterivOES(target, pname, params);
00271 else
00272 VL_TRAP();
00273 }
00274
00275 inline GLboolean VL_glIsFramebuffer(GLuint framebuffer)
00276 {
00277 if (glIsFramebufferOES)
00278 return glIsFramebufferOES(framebuffer);
00279 else
00280 VL_TRAP();
00281 return GL_FALSE;
00282 }
00283
00284 inline void VL_glBindFramebuffer(GLenum target, GLuint framebuffer)
00285 {
00286 if (glBindFramebufferOES)
00287 glBindFramebufferOES(target, framebuffer);
00288 else
00289 {
00290 VL_CHECK(framebuffer == 0);
00291 }
00292 }
00293
00294 inline void VL_glDeleteFramebuffers(GLsizei n, const GLuint *framebuffers)
00295 {
00296 if (glDeleteFramebuffersOES)
00297 glDeleteFramebuffersOES(n, framebuffers);
00298 else
00299 VL_TRAP();
00300 }
00301
00302 inline void VL_glGenFramebuffers(GLsizei n, GLuint *framebuffers)
00303 {
00304 if (glGenFramebuffersOES)
00305 glGenFramebuffersOES(n, framebuffers);
00306 else
00307 VL_TRAP();
00308 }
00309
00310 inline GLenum VL_glCheckFramebufferStatus(GLenum target)
00311 {
00312 if (glCheckFramebufferStatusOES)
00313 return glCheckFramebufferStatusOES(target);
00314 else
00315 VL_TRAP();
00316
00317 return GL_FRAMEBUFFER_UNSUPPORTED;
00318 }
00319
00320 inline void VL_glFramebufferTexture1D(GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level)
00321 {
00322 VL_UNSUPPORTED_FUNC()
00323 }
00324
00325 inline void VL_glFramebufferTexture2D(GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level)
00326 {
00327 if (glFramebufferTexture2DOES)
00328 glFramebufferTexture2DOES(target, attachment, textarget, texture, level);
00329 else
00330 VL_TRAP();
00331 }
00332
00333 inline void VL_glFramebufferTexture3D(GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLint zoffset)
00334 {
00335 VL_UNSUPPORTED_FUNC()
00336 }
00337
00338 inline void VL_glFramebufferRenderbuffer(GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer)
00339 {
00340 if (glFramebufferRenderbufferOES)
00341 glFramebufferRenderbufferOES(target, attachment, renderbuffertarget, renderbuffer);
00342 else
00343 VL_TRAP();
00344 }
00345
00346 inline void VL_glGetFramebufferAttachmentParameteriv(GLenum target, GLenum attachment, GLenum pname, GLint *params)
00347 {
00348 if (glGetFramebufferAttachmentParameterivOES)
00349 glGetFramebufferAttachmentParameterivOES(target,attachment,pname,params);
00350 else
00351 VL_TRAP();
00352 }
00353
00354 inline void VL_glGenerateMipmap(GLenum target)
00355 {
00356 if (glGenerateMipmapOES)
00357 glGenerateMipmapOES(target);
00358 else
00359 VL_TRAP();
00360 }
00361
00362 inline void VL_glFramebufferTexture(GLenum target, GLenum attachment, GLuint texture, GLint level)
00363 {
00364 VL_UNSUPPORTED_FUNC()
00365 }
00366
00367 inline void VL_glFramebufferTextureLayer(GLenum target, GLenum attachment, GLuint texture, GLint level, GLint layer)
00368 {
00369 VL_UNSUPPORTED_FUNC()
00370 }
00371
00372 inline void VL_glRenderbufferStorageMultisample( GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height )
00373 {
00374 #ifdef GL_APPLE_framebuffer_multisample
00375 if (glRenderbufferStorageMultisampleAPPLE)
00376 glRenderbufferStorageMultisampleAPPLE(target, samples, internalformat, width, height);
00377 else
00378 #endif
00379 #ifdef GL_IMG_multisampled_render_to_texture
00380 if (glRenderbufferStorageMultisampleIMG)
00381 glRenderbufferStorageMultisampleIMG(target, samples, internalformat, width, height);
00382 else
00383 #endif
00384 #ifdef GL_ANGLE_framebuffer_multisample
00385 if (glRenderbufferStorageMultisampleANGLE)
00386 glRenderbufferStorageMultisampleANGLE(target, samples, internalformat, width, height);
00387 else
00388 #endif
00389 VL_TRAP();
00390 }
00391
00392 inline void VL_glBlitFramebuffer(GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter)
00393 {
00394 VL_UNSUPPORTED_FUNC()
00395 }
00396
00397
00398
00399 inline void VL_glDrawElementsInstanced(GLenum mode, GLsizei count, GLenum type, const GLvoid *indices, GLsizei primcount)
00400 {
00401 VL_UNSUPPORTED_FUNC()
00402 }
00403
00404 inline void VL_glDrawElementsInstancedBaseVertex(GLenum mode, GLsizei count, GLenum type, const GLvoid *indices, GLsizei primcount, int basevertex)
00405 {
00406 VL_UNSUPPORTED_FUNC()
00407 }
00408
00409 inline void VL_glDrawElementsBaseVertex(GLenum mode, GLsizei count, GLenum type, const GLvoid *indices, int basevertex)
00410 {
00411 VL_UNSUPPORTED_FUNC()
00412 }
00413
00414 inline void VL_glDrawRangeElementsBaseVertex(GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const GLvoid *indices, int basevertex)
00415 {
00416 VL_UNSUPPORTED_FUNC()
00417 }
00418
00419 inline void VL_glDrawArraysInstanced(GLenum mode, GLint first, GLsizei count, GLsizei primcount)
00420 {
00421 VL_UNSUPPORTED_FUNC()
00422 }
00423
00424
00425
00426 inline void VL_glProgramParameteri(GLuint program, GLenum pname, GLint value)
00427 {
00428 VL_UNSUPPORTED_FUNC()
00429 }
00430
00431 inline void VL_glBindFragDataLocation(GLuint program, GLuint colorNumber, const char *name)
00432 {
00433 VL_UNSUPPORTED_FUNC()
00434 }
00435
00436 inline void VL_glUniform1uiv(GLint location, GLsizei count, const GLuint *value)
00437 {
00438 VL_UNSUPPORTED_FUNC()
00439 }
00440
00441 inline void VL_glUniform2uiv(GLint location, GLsizei count, const GLuint *value)
00442 {
00443 VL_UNSUPPORTED_FUNC()
00444 }
00445
00446 inline void VL_glUniform3uiv(GLint location, GLsizei count, const GLuint *value)
00447 {
00448 VL_UNSUPPORTED_FUNC()
00449 }
00450
00451 inline void VL_glUniform4uiv(GLint location, GLsizei count, const GLuint *value)
00452 {
00453 VL_UNSUPPORTED_FUNC()
00454 }
00455
00456
00457
00458 inline GLint glGetAttribLocation (GLuint program, const char *name)
00459 {
00460 VL_UNSUPPORTED_FUNC()
00461 return -1;
00462 }
00463
00464 inline GLint glGetUniformLocation (GLuint program, const char *name)
00465 {
00466 VL_UNSUPPORTED_FUNC()
00467 return -1;
00468 }
00469
00470 inline void glGetUniformfv (GLuint program, GLint location, GLfloat *params)
00471 {
00472 VL_UNSUPPORTED_FUNC()
00473 }
00474
00475 inline void glGetUniformiv (GLuint program, GLint location, GLint *params)
00476 {
00477 VL_UNSUPPORTED_FUNC()
00478 }
00479
00480 inline GLuint glCreateProgram (void)
00481 {
00482 VL_UNSUPPORTED_FUNC()
00483 return 0;
00484 }
00485
00486 inline GLuint glCreateShader (GLenum type)
00487 {
00488 VL_UNSUPPORTED_FUNC()
00489 return 0;
00490 }
00491
00492 inline void glDeleteProgram (GLuint program)
00493 {
00494 VL_UNSUPPORTED_FUNC()
00495 }
00496
00497 inline void glDeleteShader (GLuint shader)
00498 {
00499 VL_UNSUPPORTED_FUNC()
00500 }
00501
00502 inline void glUniformMatrix2x3fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value)
00503 {
00504 VL_UNSUPPORTED_FUNC()
00505 }
00506
00507 inline void glUniformMatrix3x2fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value)
00508 {
00509 VL_UNSUPPORTED_FUNC()
00510 }
00511
00512 inline void glUniformMatrix2x4fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value)
00513 {
00514 VL_UNSUPPORTED_FUNC()
00515 }
00516
00517 inline void glUniformMatrix4x2fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value)
00518 {
00519 VL_UNSUPPORTED_FUNC()
00520 }
00521
00522 inline void glUniformMatrix3x4fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value)
00523 {
00524 VL_UNSUPPORTED_FUNC()
00525 }
00526
00527 inline void glUniformMatrix4x3fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value)
00528 {
00529 VL_UNSUPPORTED_FUNC()
00530 }
00531
00532
00533 inline void glUniform1f (GLint location, GLfloat v0)
00534 {
00535 VL_UNSUPPORTED_FUNC()
00536 }
00537
00538 inline void glUniform2f (GLint location, GLfloat v0, GLfloat v1)
00539 {
00540 VL_UNSUPPORTED_FUNC()
00541 }
00542
00543 inline void glUniform3f (GLint location, GLfloat v0, GLfloat v1, GLfloat v2)
00544 {
00545 VL_UNSUPPORTED_FUNC()
00546 }
00547
00548 inline void glUniform4f (GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3)
00549 {
00550 VL_UNSUPPORTED_FUNC()
00551 }
00552
00553 inline void glUniform1i (GLint location, GLint v0)
00554 {
00555 VL_UNSUPPORTED_FUNC()
00556 }
00557
00558 inline void glUniform2i (GLint location, GLint v0, GLint v1)
00559 {
00560 VL_UNSUPPORTED_FUNC()
00561 }
00562
00563 inline void glUniform3i (GLint location, GLint v0, GLint v1, GLint v2)
00564 {
00565 VL_UNSUPPORTED_FUNC()
00566 }
00567
00568 inline void glUniform4i (GLint location, GLint v0, GLint v1, GLint v2, GLint v3)
00569 {
00570 VL_UNSUPPORTED_FUNC()
00571 }
00572
00573 inline void glUniform1fv (GLint location, GLsizei count, const GLfloat *value)
00574 {
00575 VL_UNSUPPORTED_FUNC()
00576 }
00577
00578 inline void glUniform2fv (GLint location, GLsizei count, const GLfloat *value)
00579 {
00580 VL_UNSUPPORTED_FUNC()
00581 }
00582
00583 inline void glUniform3fv (GLint location, GLsizei count, const GLfloat *value)
00584 {
00585 VL_UNSUPPORTED_FUNC()
00586 }
00587
00588 inline void glUniform4fv (GLint location, GLsizei count, const GLfloat *value)
00589 {
00590 VL_UNSUPPORTED_FUNC()
00591 }
00592
00593 inline void glUniform1iv (GLint location, GLsizei count, const GLint *value)
00594 {
00595 VL_UNSUPPORTED_FUNC()
00596 }
00597
00598 inline void glUniform2iv (GLint location, GLsizei count, const GLint *value)
00599 {
00600 VL_UNSUPPORTED_FUNC()
00601 }
00602
00603 inline void glUniform3iv (GLint location, GLsizei count, const GLint *value)
00604 {
00605 VL_UNSUPPORTED_FUNC()
00606 }
00607
00608 inline void glUniform4iv (GLint location, GLsizei count, const GLint *value)
00609 {
00610 VL_UNSUPPORTED_FUNC()
00611 }
00612
00613 inline void glUniformMatrix2fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value)
00614 {
00615 VL_UNSUPPORTED_FUNC()
00616 }
00617
00618 inline void glUniformMatrix3fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value)
00619 {
00620 VL_UNSUPPORTED_FUNC()
00621 }
00622
00623 inline void glUniformMatrix4fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value)
00624 {
00625 VL_UNSUPPORTED_FUNC()
00626 }
00627
00628 inline void glValidateProgram (GLuint program)
00629 {
00630 VL_UNSUPPORTED_FUNC()
00631 }
00632
00633
00634 inline void glUniform1d (GLint location, GLdouble x)
00635 {
00636 VL_UNSUPPORTED_FUNC()
00637 }
00638
00639 inline void glUniform2d (GLint location, GLdouble x, GLdouble y)
00640 {
00641 VL_UNSUPPORTED_FUNC()
00642 }
00643
00644 inline void glUniform3d (GLint location, GLdouble x, GLdouble y, GLdouble z)
00645 {
00646 VL_UNSUPPORTED_FUNC()
00647 }
00648
00649 inline void glUniform4d (GLint location, GLdouble x, GLdouble y, GLdouble z, GLdouble w)
00650 {
00651 VL_UNSUPPORTED_FUNC()
00652 }
00653
00654 inline void glUniform1dv (GLint location, GLsizei count, const GLdouble *value)
00655 {
00656 VL_UNSUPPORTED_FUNC()
00657 }
00658
00659 inline void glUniform2dv (GLint location, GLsizei count, const GLdouble *value)
00660 {
00661 VL_UNSUPPORTED_FUNC()
00662 }
00663
00664 inline void glUniform3dv (GLint location, GLsizei count, const GLdouble *value)
00665 {
00666 VL_UNSUPPORTED_FUNC()
00667 }
00668
00669 inline void glUniform4dv (GLint location, GLsizei count, const GLdouble *value)
00670 {
00671 VL_UNSUPPORTED_FUNC()
00672 }
00673
00674 inline void glUniformMatrix2dv (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value)
00675 {
00676 VL_UNSUPPORTED_FUNC()
00677 }
00678
00679 inline void glUniformMatrix3dv (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value)
00680 {
00681 VL_UNSUPPORTED_FUNC()
00682 }
00683
00684 inline void glUniformMatrix4dv (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value)
00685 {
00686 VL_UNSUPPORTED_FUNC()
00687 }
00688
00689 inline void glUniformMatrix2x3dv (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value)
00690 {
00691 VL_UNSUPPORTED_FUNC()
00692 }
00693
00694 inline void glUniformMatrix2x4dv (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value)
00695 {
00696 VL_UNSUPPORTED_FUNC()
00697 }
00698
00699 inline void glUniformMatrix3x2dv (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value)
00700 {
00701 VL_UNSUPPORTED_FUNC()
00702 }
00703
00704 inline void glUniformMatrix3x4dv (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value)
00705 {
00706 VL_UNSUPPORTED_FUNC()
00707 }
00708
00709 inline void glUniformMatrix4x2dv (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value)
00710 {
00711 VL_UNSUPPORTED_FUNC()
00712 }
00713
00714 inline void glUniformMatrix4x3dv (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value)
00715 {
00716 VL_UNSUPPORTED_FUNC()
00717 }
00718
00719 inline void glGetUniformdv (GLuint program, GLint location, GLdouble *params)
00720 {
00721 VL_UNSUPPORTED_FUNC()
00722 }
00723
00724
00725 inline void glGetActiveAttrib (GLuint program, GLuint index, GLsizei bufsize, GLsizei* length, GLint* size, GLenum* type, GLchar* name)
00726 {
00727 VL_UNSUPPORTED_FUNC()
00728 }
00729
00730 inline void glGetProgramiv (GLuint program, GLenum pname, GLint *params)
00731 {
00732 VL_UNSUPPORTED_FUNC()
00733 }
00734
00735 inline void glGetProgramInfoLog (GLuint program, GLsizei bufSize, GLsizei *length, char *infoLog)
00736 {
00737 VL_UNSUPPORTED_FUNC()
00738 }
00739
00740 inline void glGetShaderiv (GLuint shader, GLenum pname, GLint *params)
00741 {
00742 VL_UNSUPPORTED_FUNC()
00743 }
00744
00745 inline void glGetShaderInfoLog (GLuint shader, GLsizei bufSize, GLsizei *length, char *infoLog)
00746 {
00747 VL_UNSUPPORTED_FUNC()
00748 }
00749
00750
00751 inline GLboolean glIsProgram (GLuint program)
00752 {
00753 VL_UNSUPPORTED_FUNC()
00754 return GL_FALSE;
00755 }
00756
00757 inline GLboolean glIsShader (GLuint shader)
00758 {
00759 VL_UNSUPPORTED_FUNC()
00760 return GL_FALSE;
00761 }
00762
00763 inline void glLinkProgram (GLuint program)
00764 {
00765 VL_UNSUPPORTED_FUNC()
00766 }
00767
00768 inline void glShaderSource (GLuint shader, GLsizei count, const char* *string, const GLint *length)
00769 {
00770 VL_UNSUPPORTED_FUNC()
00771 }
00772
00773 inline void glUseProgram (GLuint program)
00774 {
00775 VL_UNSUPPORTED_FUNC()
00776 }
00777
00778
00779 inline void glCompileShader (GLuint shader)
00780 {
00781 VL_UNSUPPORTED_FUNC()
00782 }
00783
00784 inline void glAttachShader (GLuint program, GLuint shader)
00785 {
00786 VL_UNSUPPORTED_FUNC()
00787 }
00788
00789 inline void glDetachShader (GLuint program, GLuint shader)
00790 {
00791 VL_UNSUPPORTED_FUNC()
00792 }
00793
00794
00795 inline void glBindAttribLocation (GLuint program, GLuint index, const char *name)
00796 {
00797 VL_UNSUPPORTED_FUNC()
00798 }
00799
00800 inline void glGetActiveUniform (GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLint *size, GLenum *type, char *name)
00801 {
00802 VL_UNSUPPORTED_FUNC()
00803 }
00804
00805
00806 inline void glPixelTransferf( GLenum pname, GLfloat param )
00807 {
00808 VL_UNSUPPORTED_FUNC()
00809 }
00810
00811 inline void glPixelTransferi( GLenum pname, GLint param )
00812 {
00813 VL_UNSUPPORTED_FUNC()
00814 }
00815
00816 inline void glPolygonMode( GLenum face, GLenum mode )
00817 {
00818 VL_UNSUPPORTED_FUNC()
00819 }
00820
00821 inline void glColorMaterial( GLenum face, GLenum mode )
00822 {
00823 VL_UNSUPPORTED_FUNC()
00824 }
00825
00826 inline void glPolygonStipple( const GLubyte *mask )
00827 {
00828 VL_UNSUPPORTED_FUNC()
00829 }
00830
00831 inline void glLineStipple( GLint factor, GLushort pattern )
00832 {
00833 VL_UNSUPPORTED_FUNC()
00834 }
00835
00836 inline void glStencilMaskSeparate(GLenum face, GLuint mask)
00837 {
00838 VL_UNSUPPORTED_FUNC()
00839 }
00840
00841 inline void glGetTexLevelParameterfv( GLenum target, GLint level, GLenum pname, GLfloat *params )
00842 {
00843 VL_UNSUPPORTED_FUNC()
00844 }
00845
00846 inline void glGetTexLevelParameteriv( GLenum target, GLint level, GLenum pname, GLint *params )
00847 {
00848 VL_UNSUPPORTED_FUNC()
00849 }
00850
00851 inline void glDrawBuffers(GLsizei n, const GLenum *bufs)
00852 {
00853 VL_UNSUPPORTED_FUNC()
00854 }
00855
00856 inline void glDrawBuffer( GLenum mode )
00857 {
00858 VL_UNSUPPORTED_FUNC()
00859 }
00860
00861 inline void glReadBuffer( GLenum mode )
00862 {
00863 VL_UNSUPPORTED_FUNC()
00864 }
00865
00866 inline void glGetVertexAttribiv (GLuint index, GLenum pname, GLint *params)
00867 {
00868 VL_UNSUPPORTED_FUNC()
00869 }
00870
00871 inline void glSecondaryColorPointer (GLint size, GLenum type, GLsizei stride, const GLvoid *pointer)
00872 {
00873 VL_UNSUPPORTED_FUNC()
00874 }
00875
00876 inline void glFogCoordPointer (GLenum type, GLsizei stride, const GLvoid *pointer)
00877 {
00878 VL_UNSUPPORTED_FUNC()
00879 }
00880
00881 inline GLboolean glIsList( GLuint list )
00882 {
00883 VL_UNSUPPORTED_FUNC()
00884 return GL_FALSE;
00885 }
00886
00887 inline void glDeleteLists( GLuint list, GLsizei range )
00888 {
00889 VL_UNSUPPORTED_FUNC()
00890 }
00891
00892 inline GLuint glGenLists( GLsizei range )
00893 {
00894 VL_UNSUPPORTED_FUNC()
00895 return 0;
00896 }
00897
00898 inline void glNewList( GLuint list, GLenum mode )
00899 {
00900 VL_UNSUPPORTED_FUNC()
00901 }
00902
00903 inline void glEndList( void )
00904 {
00905 VL_UNSUPPORTED_FUNC()
00906 }
00907
00908 inline void glCallList( GLuint list )
00909 {
00910 VL_UNSUPPORTED_FUNC()
00911 }
00912
00913 inline void glCallLists( GLsizei n, GLenum type, const GLvoid *lists )
00914 {
00915 VL_UNSUPPORTED_FUNC()
00916 }
00917
00918 inline void glListBase( GLuint base )
00919 {
00920 VL_UNSUPPORTED_FUNC()
00921 }
00922
00923 inline void glPatchParameteri (GLenum pname, GLint value)
00924 {
00925 VL_UNSUPPORTED_FUNC()
00926 }
00927
00928 inline void glPatchParameterfv (GLenum pname, const GLfloat *values)
00929 {
00930 VL_UNSUPPORTED_FUNC()
00931 }
00932
00933 inline void glNormal3fv( const GLfloat *v )
00934 {
00935 VL_UNSUPPORTED_FUNC()
00936 }
00937
00938 inline void glColor4fv( const GLfloat *v )
00939 {
00940 VL_UNSUPPORTED_FUNC()
00941 }
00942
00943 inline void glTexCoord3f( GLfloat s, GLfloat t, GLfloat r )
00944 {
00945 VL_UNSUPPORTED_FUNC()
00946 }
00947
00948 inline void glSecondaryColor3fv (const GLfloat *v)
00949 {
00950 VL_UNSUPPORTED_FUNC()
00951 }
00952
00953 inline void glRasterPos2f( GLfloat x, GLfloat y )
00954 {
00955 VL_UNSUPPORTED_FUNC()
00956 }
00957
00958 inline void glDrawPixels( GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *pixels )
00959 {
00960 VL_UNSUPPORTED_FUNC()
00961 }
00962
00963 inline void glPrimitiveRestartIndex (GLuint index)
00964 {
00965 VL_UNSUPPORTED_FUNC()
00966
00967 }
00968
00969 inline void glDrawElementsBaseVertex (GLenum mode, GLsizei count, GLenum type, const GLvoid *indices, GLint basevertex)
00970 {
00971 VL_UNSUPPORTED_FUNC()
00972 }
00973 inline void glDrawRangeElementsBaseVertex (GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const GLvoid *indices, GLint basevertex)
00974 {
00975 VL_UNSUPPORTED_FUNC()
00976 }
00977 inline void glDrawElementsInstancedBaseVertex (GLenum mode, GLsizei count, GLenum type, const GLvoid *indices, GLsizei primcount, GLint basevertex)
00978 {
00979 VL_UNSUPPORTED_FUNC()
00980 }
00981 inline void glMultiDrawElementsBaseVertex (GLenum mode, const GLsizei *count, GLenum type, const GLvoid* *indices, GLsizei primcount, const GLint *basevertex)
00982 {
00983 VL_UNSUPPORTED_FUNC()
00984 }
00985
00986 inline void glMultiDrawArrays (GLenum mode, const GLint *first, const GLsizei *count, GLsizei primcount)
00987 {
00988 VL_UNSUPPORTED_FUNC()
00989 }
00990 inline void glMultiDrawElements (GLenum mode, const GLsizei *count, GLenum type, const GLvoid* *indices, GLsizei primcount)
00991 {
00992 VL_UNSUPPORTED_FUNC()
00993 }
00994
00995 inline void glDrawRangeElements (GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const GLvoid *indices)
00996 {
00997 VL_UNSUPPORTED_FUNC()
00998 }
00999
01000 inline void glPushClientAttrib( GLbitfield mask )
01001 {
01002 VL_UNSUPPORTED_FUNC()
01003 }
01004
01005 inline void glPopClientAttrib( void )
01006 {
01007 VL_UNSUPPORTED_FUNC()
01008 }
01009
01010 inline void glTexParameterIivEXT (GLenum target, GLenum pname, const GLint *params)
01011 {
01012 VL_UNSUPPORTED_FUNC()
01013 }
01014 inline void glTexParameterIuivEXT (GLenum target, GLenum pname, const GLuint *params)
01015 {
01016 VL_UNSUPPORTED_FUNC()
01017 }
01018 inline void glGetTexParameterIivEXT (GLenum target, GLenum pname, GLint *params)
01019 {
01020 VL_UNSUPPORTED_FUNC()
01021 }
01022 inline void glGetTexParameterIuivEXT (GLenum target, GLenum pname, GLuint *params)
01023 {
01024 VL_UNSUPPORTED_FUNC()
01025 }
01026 inline void glClearColorIiEXT (GLint red, GLint green, GLint blue, GLint alpha)
01027 {
01028 VL_UNSUPPORTED_FUNC()
01029 }
01030 inline void glClearColorIuiEXT (GLuint red, GLuint green, GLuint blue, GLuint alpha)
01031 {
01032 VL_UNSUPPORTED_FUNC()
01033 }
01034
01035 inline void glClipPlane( GLenum plane, const GLdouble *equation )
01036 {
01037 VL_UNSUPPORTED_FUNC()
01038 }
01039
01040 inline void glGetProgramBinary (GLuint program, GLsizei bufSize, GLsizei *length, GLenum *binaryFormat, GLvoid *binary)
01041 {
01042 VL_UNSUPPORTED_FUNC()
01043 }
01044
01045 inline void glProgramBinary (GLuint program, GLenum binaryFormat, const GLvoid *binary, GLsizei length)
01046 {
01047 VL_UNSUPPORTED_FUNC()
01048 }
01049
01050 inline void glProgramParameteri (GLuint program, GLenum pname, GLint value)
01051 {
01052 VL_UNSUPPORTED_FUNC()
01053 }
01054
01055 inline void VL_glTexImage3D (GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const GLvoid *pixels)
01056 {
01057 VL_UNSUPPORTED_FUNC()
01058 }
01059 inline void VL_glCopyTexSubImage3D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height)
01060 {
01061 VL_UNSUPPORTED_FUNC()
01062 }
01063 inline void VL_glCompressedTexImage3D (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const GLvoid *data)
01064 {
01065 VL_UNSUPPORTED_FUNC()
01066 }
01067 inline void VL_glCompressedTexSubImage3D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const GLvoid *data)
01068 {
01069 VL_UNSUPPORTED_FUNC()
01070 }
01071
01072 inline void glTexImage1D (GLenum target, GLint level, GLint internalformat, GLsizei width, GLint border, GLenum format, GLenum type, const GLvoid *pixels)
01073 {
01074 VL_UNSUPPORTED_FUNC()
01075 }
01076 inline void glCopyTexSubImage1D( GLenum target, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width )
01077 {
01078 VL_UNSUPPORTED_FUNC()
01079 }
01080 inline void glCompressedTexImage1D (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLint border, GLsizei imageSize, const GLvoid *data)
01081 {
01082 VL_UNSUPPORTED_FUNC()
01083 }
01084 inline void glCompressedTexSubImage1D (GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const GLvoid *data)
01085 {
01086 VL_UNSUPPORTED_FUNC()
01087 }
01088
01089 inline void glTexImage2DMultisample (GLenum target, GLsizei samples, GLint internalformat, GLsizei width, GLsizei height, GLboolean fixedsamplelocations)
01090 {
01091 VL_UNSUPPORTED_FUNC()
01092 }
01093 inline void glTexImage3DMultisample (GLenum target, GLsizei samples, GLint internalformat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedsamplelocations)
01094 {
01095 VL_UNSUPPORTED_FUNC()
01096 }
01097
01098 inline void glTexBuffer (GLenum target, GLenum internalformat, GLuint buffer)
01099 {
01100 VL_UNSUPPORTED_FUNC()
01101 }
01102
01103 inline void glGenerateMipmap (GLenum target)
01104 {
01105 VL_UNSUPPORTED_FUNC()
01106 }
01107
01108 inline int gluBuild2DMipmaps ( GLenum target, GLint components, GLint width, GLint height, GLenum format, GLenum type, const void *data)
01109 {
01110 VL_UNSUPPORTED_FUNC()
01111 return GL_INVALID_OPERATION;
01112 }
01113
01114 inline int gluBuild1DMipmaps ( GLenum target, GLint components, GLint width, GLenum format, GLenum type, const void *data)
01115 {
01116 VL_UNSUPPORTED_FUNC()
01117 return GL_INVALID_OPERATION;
01118 }
01119
01120 inline void glGenQueries (GLsizei n, GLuint *ids)
01121 {
01122 VL_UNSUPPORTED_FUNC();
01123 }
01124
01125 inline void glDeleteQueries (GLsizei n, const GLuint *ids)
01126 {
01127 VL_UNSUPPORTED_FUNC();
01128 }
01129
01130 inline GLboolean glIsQuery (GLuint id)
01131 {
01132 VL_UNSUPPORTED_FUNC();
01133 return GL_FALSE;
01134 }
01135
01136 inline void glBeginQuery (GLenum target, GLuint id)
01137 {
01138 VL_UNSUPPORTED_FUNC();
01139 }
01140
01141 inline void glEndQuery (GLenum target)
01142 {
01143 VL_UNSUPPORTED_FUNC();
01144 }
01145
01146 inline void glGetQueryiv (GLenum target, GLenum pname, GLint *params)
01147 {
01148 VL_UNSUPPORTED_FUNC();
01149 }
01150
01151 inline void glGetQueryObjectiv (GLuint id, GLenum pname, GLint *params)
01152 {
01153 VL_UNSUPPORTED_FUNC();
01154 }
01155
01156 inline void glGetQueryObjectuiv (GLuint id, GLenum pname, GLuint *params)
01157 {
01158 VL_UNSUPPORTED_FUNC();
01159 }
01160
01161 inline void VL_glGetProgramBinary(GLuint program, GLsizei bufSize, GLsizei *length, GLenum *binaryFormat, GLvoid *binary)
01162 {
01163 VL_UNSUPPORTED_FUNC();
01164 }
01165 inline void VL_glProgramBinary(GLuint program, GLenum binaryFormat, const GLvoid *binary, GLint length)
01166 {
01167 VL_UNSUPPORTED_FUNC();
01168 }
01169
01170
01171
01172 inline std::string getOpenGLExtensions()
01173 {
01174 VL_CHECK(glGetString(GL_EXTENSIONS));
01175 std::string ext = (const char*)glGetString(GL_EXTENSIONS);
01176
01177 ext.push_back(' ');
01178 return ext;
01179 }
01180
01181 }
01182
01183 #pragma warning( default: 4100 ) // unreferenced formal parameter
01184
01185 #endif