POGL provides interfaces to support OpenGL APIs on languages that do not support
C pointers. This is handled via suffixed APIs that support native-language references:
_c APIs provides (CPTR) interfaces for languages (eg: Perl) that provide a means
to pass around C pointers.
_s APIs provides (PACKED) string interfaces for most other languages.
_p are portable APIs that do not require passing pointers; instead, blocks of data
may be passed around via (OGA)
OpenGL::Array object references.
|
glAreTexturesResident - 1.0
|
|
glAreTexturesResident_c($n, (CPTR)textures, (CPTR)residences);
|
|
glAreTexturesResident_s($n, (PACKED)textures, (PACKED)residences);
|
|
(result,@residences) = glAreTexturesResident_p(@textureIDs);
|
|
glBitmap - 1.0
|
|
glBitmap_c($width, $height, $xorig, $yorig, $xmove, $ymove, (CPTR)bitmap);
|
|
glBitmap_s($width, $height, $xorig, $yorig, $xmove, $ymove, (PACKED)bitmap);
|
|
glBitmap_p($width, $height, $xorig, $yorig, $xmove, $ymove, @bitmap);
|
|
glCallLists - 1.0
|
|
glCallLists_c($n, $type, (CPTR)lists);
|
|
glCallLists_s($n, $type, (PACKED)lists);
|
|
glCallLists_p(@lists);
Assumes GLint type
|
|
glClipPlane - 1.0
|
|
glClipPlane_c($plane, (CPTR)eqn);
|
|
glClipPlane_s($plane, (PACKED)eqn);
|
|
glClipPlane_p($plane, $eqn0, $eqn1, $eqn2, $eqn3);
|
|
glColor3bv - 1.0
|
|
glColor3bv_c((CPTR)v);
|
|
glColor3bv_s((PACKED)v);
|
|
glColor3bv_p($red, $green, $blue, $alpha);
|
|
glColor3dv - 1.0
|
|
glColor3dv_c((CPTR)v);
|
|
glColor3dv_s((PACKED)v);
|
|
glColor3dv_p($red, $green, $blue, $alpha);
|
|
glColor3fv - 1.0
|
|
glColor3fv_c((CPTR)v);
|
|
glColor3fv_s((PACKED)v);
|
|
glColor3fv_p($red, $green, $blue, $alpha);
|
|
glColor3iv - 1.0
|
|
glColor3iv_c((CPTR)v);
|
|
glColor3iv_s((PACKED)v);
|
|
glColor3iv_p($red, $green, $blue, $alpha);
|
|
glColor3sv - 1.0
|
|
glColor3sv_c((CPTR)v);
|
|
glColor3sv_s((PACKED)v);
|
|
glColor3sv_p($red, $green, $blue, $alpha);
|
|
glColor3ubv - 1.0
|
|
glColor3ubv_c((CPTR)v);
|
|
glColor3ubv_s((PACKED)v);
|
|
glColor3ubv_p($red, $green, $blue, $alpha);
|
|
glColor3uiv - 1.0
|
|
glColor3uiv_c((CPTR)v);
|
|
glColor3uiv_s((PACKED)v);
|
|
glColor3uiv_p($red, $green, $blue, $alpha);
|
|
glColor3usv - 1.0
|
|
glColor3usv_c((CPTR)v);
|
|
glColor3usv_s((PACKED)v);
|
|
glColor3usv_p($red, $green, $blue, $alpha);
|
|
glColorPointer - 1.0
|
|
glColorPointer_c($size, $type, $stride, (CPTR)pointer);
|
|
glColorPointer_s($size, $type, $stride, (PACKED)pointer);
|
|
glColorPointer_p($size, $type, $stride, (OGA)pointer);
|
|
glColorPointerEXT - GL_EXT_vertex_array
|
|
glColorPointerEXT_c($size, $type, $stride, $count, (CPTR)pointer);
|
|
glColorPointerEXT_s($size, $type, $stride, $count, (PACKED)pointer);
|
|
glColorPointerEXT_p($size, (OGA)pointer);
|
|
glCopyTexImage1D - 1.0
|
|
glCopyTexImage1D($target, $level, $internalFormat, $x, $y, $width, $border);
|
|
glCopyTexImage2D - 1.0
|
|
glCopyTexImage2D($target, $level, $internalFormat, $x, $y, $width, $height, $border);
|
|
glCopyTexSubImage3D - 1.2
|
|
glCopyTexSubImage3D($target, $level, $xoffset, $yoffset, $zoffset, $x, $y, $width, $height);
|
|
glDeformSGIX - GL_SGIX_polynomial_ffd
|
|
glDeformationMap3dSGIX - GL_SGIX_polynomial_ffd
|
|
glDeformationMap3fSGIX - GL_SGIX_polynomial_ffd
|
|
glDeleteBuffersARB - GL_ARB_vertex_buffer_object
|
|
glDeleteBuffersARB_c($n,(CPTR)buffers);
|
|
glDeleteBuffersARB_s($n,(PACKED)buffers);
|
|
glDeleteBuffersARB_p(@buffers);
|
|
glDeleteFramebuffersEXT - GL_EXT_framebuffer_object
|
|
glDeleteFramebuffersEXT_c($n,(CPTR)framebuffers);
|
|
glDeleteFramebuffersEXT_s($n,(PACKED)framebuffers);
|
|
glDeleteFramebuffersEXT_p(@framebuffers);
|
|
glDeleteRenderbuffersEXT - GL_EXT_framebuffer_object
|
|
glDeleteRenderbuffersEXT_c($n,(CPTR)renderbuffers);
|
|
glDeleteRenderbuffersEXT_s($n,(PACKED)renderbuffers);
|
|
glDeleteRenderbuffersEXT_p(@renderbuffers);
|
|
glDeleteTextures - 1.0
|
|
glDeleteTextures_c($items, (CPTR)list);
|
|
glDeleteTextures_s($items, (PACKED)list);
|
|
glDeleteTextures_p(@textureIDs);
|
|
glDrawBuffers - 2.0
|
|
glDrawBuffers_c($n,(CPTR)buffers);
|
|
glDrawBuffers_s($n,(PACKED)buffers);
|
|
glDrawBuffers_p(@buffers);
|
|
glDrawElements - 1.0
|
|
glDrawElements_c($mode, $count, $type, (CPTR)indices);
|
|
glDrawElements_s($mode, $count, $type, (PACKED)indices);
|
|
glDrawElements_p($mode, @indices);
Assumes GLuint for indices
|
|
glDrawPixels - 1.0
|
|
glDrawPixels_c($width, $height, $format, $type, (CPTR)pixels);
|
|
glDrawPixels_s($width, $height, $format, $type, (PACKED)pixels);
|
|
glDrawPixels_p($width, $height, $format, $type, @pixels);
|
|
glDrawRangeElements - 1.2
|
|
glDrawRangeElements_c($mode, $start, $end, $count, $type, (CPTR)indices);
|
|
glDrawRangeElements_s($mode, $start, $end, $count, $type, (PACKED)indices);
|
|
glDrawRangeElements_p($mode, $start, $end, $count, $type, @indices);
Assumes GLuint indices
|
|
glEdgeFlagPointer - 1.0
|
|
glEdgeFlagPointer_c($stride, (CPTR)pointer);
|
|
glEdgeFlagPointer_s($stride, (PACKED)pointer);
|
|
glEdgeFlagPointer_p($stride, (OGA)pointer);
|
|
glFogFuncSGIS - GL_SGIS_fog_function
|
|
glFogfv - 1.0
|
|
glFogfv_c($pname, (CPTR)params);
|
|
glFogfv_s($pname, (PACKED)params);
|
|
glFogfv_p($pname, $param1, $param2=0, $param3=0, $param4=0);
|
|
glFogiv - 1.0
|
|
glFogiv_c($pname, (CPTR)params);
|
|
glFogiv_s($pname, (PACKED)params);
|
|
glFogiv_p($pname, $param1, $param2=0, $param3=0, $param4=0);
|
|
glFragmentColorMaterialSGIX - GL_SGIX_fragment_lighting
|
|
glFragmentLightModelfSGIX - GL_SGIX_fragment_lighting
|
|
glFragmentLightModelfvSGIX - GL_SGIX_fragment_lighting
|
|
glFragmentLightModeliSGIX - GL_SGIX_fragment_lighting
|
|
glFragmentLightModelivSGIX - GL_SGIX_fragment_lighting
|
|
glFragmentLightfSGIX - GL_SGIX_fragment_lighting
|
|
glFragmentLightfvSGIX - GL_SGIX_fragment_lighting
|
|
glFragmentLightiSGIX - GL_SGIX_fragment_lighting
|
|
glFragmentLightivSGIX - GL_SGIX_fragment_lighting
|
|
glFragmentMaterialfSGIX - GL_SGIX_fragment_lighting
|
|
glFragmentMaterialfvSGIX - GL_SGIX_fragment_lighting
|
|
glFragmentMaterialiSGIX - GL_SGIX_fragment_lighting
|
|
glFragmentMaterialivSGIX - GL_SGIX_fragment_lighting
|
|
glFramebufferRenderbufferEXT - GL_EXT_framebuffer_object
|
|
glFramebufferRenderbufferEXT($target,$attachment,$renderbuffertarget,$renderbuffer);
|
|
glFramebufferTexture1DEXT - GL_EXT_framebuffer_object
|
|
glFramebufferTexture1DEXT($target,$attachment,$textarget,$texture,$level);
|
|
glFramebufferTexture2DEXT - GL_EXT_framebuffer_object
|
|
glFramebufferTexture2DEXT($target,$attachment,$textarget,$texture,$level);
|
|
glFrustum - 1.0
|
|
glFrustum($left, $right, $bottom, $top, $zNear, $zFar);
|
|
glGenBuffersARB - GL_ARB_vertex_buffer_object
|
|
glGenBuffersARB_c($n,(CPTR)buffers);
|
|
glGenBuffersARB_s($n,(PACKED)buffers);
|
|
@buffers = glGenBuffersARB_p($n);
|
|
glGenFramebuffersEXT - GL_EXT_framebuffer_object
|
|
@framebuffers = glGenFramebuffersEXT_c($n);
|
|
glGenFramebuffersEXT_s($n,(PACKED)framebuffers);
|
|
glGenProgramsARB - GL_ARB_vertex_program
|
|
@programIDs = glGenProgramsARB_c($n);
|
|
glGenProgramsARB_s($n,(PACKED)programs);
|
|
glGenRenderbuffersEXT - GL_EXT_framebuffer_object
|
|
@renderbuffers = glGenRenderbuffersEXT_c($n);
|
|
glGenRenderbuffersEXT_s($n,(PACKED)renderbuffers);
|
|
glGenTextures - 1.0
|
|
glGenTextures_c($n, (CPTR)textures);
|
|
glGenTextures_s($n, (PACKED)textures);
|
|
@textureIDs = glGenTextures_p($n);
|
|
glGetActiveAttribARB - GL_ARB_vertex_shader
|
|
glGetActiveAttribARB_c($programObj, $index, $maxLength, (CPTR)length, (CPTR)size, (CPTR)type, (CPTR)name);
|
|
glGetActiveAttribARB_s($programObj, $index, $maxLength, (PACKED)length, (PACKED)size, (PACKED)type, (PACKED)name);
|
|
($name,$type,$size) = glGetActiveAttribARB_p($programObj, $index);
|
|
glGetActiveUniformARB - GL_ARB_shader_objects
|
|
glGetActiveUniformARB_c($programObj, $index, $maxLength, (CPTR)length, (CPTR)size, (CPTR)type, (CPTR)name);
|
|
glGetActiveUniformARB_s($programObj, $index, $maxLength, (PACKED)length, (PACKED)size, (PACKED)type, (PACKED)name);
|
|
($name,$type,$size) = glGetActiveUniformARB_p($programObj, $index);
|
|
glGetAttachedObjectsARB - GL_ARB_shader_objects
|
|
glGetAttachedObjectsARB_c($containerObj, $maxCount, (CPTR)count, (CPTR)obj);
|
|
glGetAttachedObjectsARB_s($containerObj, $maxCount, (PACKED)count, (PACKED)obj);
|
|
@objs = glGetAttachedObjectsARB_p($containerObj);
|
|
glGetBooleanv - 1.0
|
|
glGetBooleanv_c($pname, (CPTR)params);
|
|
glGetBooleanv_s($pname, (PACKED)params);
|
|
@data = glGetBooleanv_p($param);
|
|
glGetBufferParameterivARB - GL_ARB_vertex_buffer_object
|
|
glGetBufferParameterivARB_c($target,$pname,(CPTR)params);
|
|
glGetBufferParameterivARB_s($target,$pname,(PACKED)params);
|
|
@params = glGetBufferParameterivARB_p($target,$pname);
|
|
glGetBufferPointervARB - GL_ARB_vertex_buffer_object
|
|
glGetBufferPointervARB_c($target,$pname,(CPTR)params);
|
|
glGetBufferPointervARB_s($target,$pname,(PACKED)params);
|
|
$oga = glGetBufferPointervARB_p($target,$pname,@types);
If no types are provided, GLubyte is assumed
|
|
glGetBufferSubDataARB - GL_ARB_vertex_buffer_object
|
|
$oga = glGetBufferSubDataARB_p($target,$offset,$count,@types);
If no types are provided, GLubyte is assumed
|
|
glGetClipPlane - 1.0
|
|
glGetClipPlane_c($plane, (CPTR)eqn);
|
|
glGetClipPlane_s($plane, (PACKED)eqn);
|
|
@data = glGetClipPlane_p($plane);
|
|
glGetDoublev - 1.0
|
|
glGetDoublev_c($pname, (PACKED)params);
|
|
@data = glGetDoublev_p($param);
|
|
glGetFloatv - 1.0
|
|
glGetFloatv_c($pname, (CPTR)params);
|
|
glGetFloatv_s($pname, (PACKED)params);
|
|
@data = glGetFloatv_p($param);
|
|
glGetFogFuncSGIS - GL_SGIS_fog_function
|
|
glGetFragmentLightfvSGIX - GL_SGIX_fragment_lighting
|
|
glGetFragmentLightivSGIX - GL_SGIX_fragment_lighting
|
|
glGetFragmentMaterialfvSGIX - GL_SGIX_fragment_lighting
|
|
glGetFragmentMaterialivSGIX - GL_SGIX_fragment_lighting
|
|
glGetFramebufferAttachmentParameterivEXT - GL_EXT_framebuffer_object
|
|
glGetFramebufferAttachmentParameterivEXT_c($target,$attachment,$pname,(CPTR)params);
|
|
glGetFramebufferAttachmentParameterivEXT_s($target,$attachment,$pname,(PACKED)params);
|
|
glGetIntegerv - 1.0
|
|
glGetIntegerv_c($pname, (CPTR)params);
|
|
glGetIntegerv_s($pname, (PACKED)params);
|
|
@data = glGetIntegerv_p($param);
|
|
glGetLightfv - 1.0
|
|
glGetLightfv_c($light, $pname, (CPTR)p);
|
|
glGetLightfv_s($light, $pname, (PACKED)p);
|
|
@data = glGetLightfv_p($light, $pname);
|
|
glGetLightiv - 1.0
|
|
glGetLightiv_c($light, $pname, (CPTR)p);
|
|
glGetLightiv_s($light, $pname, (PACKED)p);
|
|
@data = glGetLightiv_p($light, $pname);
|
|
glGetMapdv - 1.0
|
|
glGetMapdv_c($target, $query, (CPTR)v);
|
|
glGetMapdv_s($target, $query, (PACKED)v);
|
|
@data = glGetMapdv_p($target, $query);
|
|
glGetMapfv - 1.0
|
|
glGetMapfv_c($target, $query, (CPTR)v);
|
|
glGetMapfv_s($target, $query, (PACKED)v);
|
|
@data = glGetMapfv_p($target, $query);
|
|
glGetMapiv - 1.0
|
|
glGetMapiv_c($target, $query, (CPTR)v);
|
|
glGetMapiv_s($target, $query, (PACKED)v);
|
|
@data = glGetMapiv_p($target, $query);
|
|
glGetMaterialfv - 1.0
|
|
glGetMaterialfv_c($face, $query, (CPTR)params);
|
|
glGetMaterialfv_s($face, $query, (PACKED)params);
|
|
@params = glGetMaterialfv_p($face, $query);
|
|
glGetMaterialiv - 1.0
|
|
glGetMaterialiv_c($face, $query, (CPTR)params);
|
|
glGetMaterialiv_s($face, $query, (PACKED)params);
|
|
@params = glGetMaterialiv_p($face, $query);
|
|
glGetObjectParameterfvARB - GL_ARB_shader_objects
|
|
glGetObjectParameterfvARB_c($obj,$pname,(CPTR)params);
|
|
glGetObjectParameterfvARB_s($obj,$pname,(PACKED)params);
|
|
$param = glGetObjectParameterfvARB_p($obj,$pname);
|
|
glGetObjectParameterivARB - GL_ARB_shader_objects
|
|
$param = glGetObjectParameterivARB_c($obj,$pname);
|
|
glGetObjectParameterivARB_s($obj,$pname,(PACKED)params);
|
|
glGetPixelMapfv - 1.0
|
|
glGetPixelMapfv_c($map, (CPTR)values);
|
|
glGetPixelMapfv_s($map, (PACKED)values);
|
|
@data = glGetPixelMapfv_p($map);
|
|
glGetPixelMapuiv - 1.0
|
|
glGetPixelMapuiv_c($map, (CPTR)values);
|
|
glGetPixelMapuiv_s($map, (PACKED)values);
|
|
@data = glGetPixelMapuiv_p($map);
|
|
glGetPixelMapusv - 1.0
|
|
glGetPixelMapusv_c($map, (CPTR)values);
|
|
glGetPixelMapusv_s($map, (PACKED)values);
|
|
@data = glGetPixelMapusv_p($map);
|
|
glGetPointerv - 1.0
|
|
glGetPointerv_c($pname, (CPTR)params);
|
|
glGetPointerv_s($pname, (PACKED)params);
|
|
@params = glGetPointerv_p($pname);
|
|
glGetPolygonStipple - 1.0
|
|
glGetPolygonStipple_c((CPTR)mask);
|
|
glGetPolygonStipple_s((PACKED)mask);
|
|
@mask = glGetPolygonStipple_p();
|
|
glGetProgramStringARB - GL_ARB_vertex_program
|
|
glGetProgramStringARB_c(target,pname,(CPTR)string);
|
|
glGetProgramStringARB_s(target,pname,(PACKED)string);
|
|
$string = glGetProgramStringARB_p(target[,pname]);
Defaults to GL_PROGRAM_STRING_ARB
|
|