2008-09-23 07:48:16 -04:00
|
|
|
;;; Ypsilon Scheme System
|
|
|
|
;;; Copyright (c) 2004-2008 Y.FUJITA, LittleWing Company Limited.
|
|
|
|
;;; See license.txt for terms and conditions of use.
|
|
|
|
|
|
|
|
(library (gl)
|
|
|
|
|
|
|
|
(export GL_FALSE
|
|
|
|
GL_TRUE
|
|
|
|
GL_BYTE
|
|
|
|
GL_UNSIGNED_BYTE
|
|
|
|
GL_SHORT
|
|
|
|
GL_UNSIGNED_SHORT
|
|
|
|
GL_INT
|
|
|
|
GL_UNSIGNED_INT
|
|
|
|
GL_FLOAT
|
|
|
|
GL_2_BYTES
|
|
|
|
GL_3_BYTES
|
|
|
|
GL_4_BYTES
|
|
|
|
GL_DOUBLE
|
|
|
|
GL_POINTS
|
|
|
|
GL_LINES
|
|
|
|
GL_LINE_LOOP
|
|
|
|
GL_LINE_STRIP
|
|
|
|
GL_TRIANGLES
|
|
|
|
GL_TRIANGLE_STRIP
|
|
|
|
GL_TRIANGLE_FAN
|
|
|
|
GL_QUADS
|
|
|
|
GL_QUAD_STRIP
|
|
|
|
GL_POLYGON
|
|
|
|
GL_VERTEX_ARRAY
|
|
|
|
GL_NORMAL_ARRAY
|
|
|
|
GL_COLOR_ARRAY
|
|
|
|
GL_INDEX_ARRAY
|
|
|
|
GL_TEXTURE_COORD_ARRAY
|
|
|
|
GL_EDGE_FLAG_ARRAY
|
|
|
|
GL_VERTEX_ARRAY_SIZE
|
|
|
|
GL_VERTEX_ARRAY_TYPE
|
|
|
|
GL_VERTEX_ARRAY_STRIDE
|
|
|
|
GL_NORMAL_ARRAY_TYPE
|
|
|
|
GL_NORMAL_ARRAY_STRIDE
|
|
|
|
GL_COLOR_ARRAY_SIZE
|
|
|
|
GL_COLOR_ARRAY_TYPE
|
|
|
|
GL_COLOR_ARRAY_STRIDE
|
|
|
|
GL_INDEX_ARRAY_TYPE
|
|
|
|
GL_INDEX_ARRAY_STRIDE
|
|
|
|
GL_TEXTURE_COORD_ARRAY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LOR
|
|
|
|
GL_DEPTH
|
|
|
|
GL_STENCIL
|
|
|
|
GL_DITHER
|
|
|
|
GL_RGB
|
|
|
|
GL_RGBA
|
|
|
|
GL_MAX_LIST_NESTING
|
|
|
|
GL_MAX_EVAL_ORDER
|
|
|
|
GL_MAX_LIGHTS
|
|
|
|
GL_MAX_CLIP_PLANES
|
|
|
|
GL_MAX_TEXTURE_SIZE
|
|
|
|
GL_MAX_PIXEL_MAP_TABLE
|
|
|
|
GL_MAX_ATTRIB_STACK_DEPTH
|
|
|
|
GL_MAX_MODELVIEW_STACK_DEPTH
|
|
|
|
GL_MAX_NAME_STACK_DEPTH
|
|
|
|
GL_MAX_PROJECTION_STACK_DEPTH
|
|
|
|
GL_MAX_TEXTURE_STACK_DEPTH
|
|
|
|
GL_MAX_VIEWPORT_DIMS
|
|
|
|
GL_MAX_CLIENT_ATTRIB_STACK_DEPTH
|
|
|
|
GL_ATTRIB_STACK_DEPTH
|
|
|
|
GL_CLIENT_ATTRIB_STACK_DEPTH
|
|
|
|
GL_COLOR_CLEAR_VALUE
|
|
|
|
GL_COLOR_WRITEMASK
|
|
|
|
GL_CURRENT_INDEX
|
|
|
|
GL_CURRENT_COLOR
|
|
|
|
GL_CURRENT_NORMAL
|
|
|
|
GL_CURRENT_RASTER_COLOR
|
|
|
|
GL_CURRENT_RASTER_DISTANCE
|
|
|
|
GL_CURRENT_RASTER_INDEX
|
|
|
|
GL_CURRENT_RASTER_POSITION
|
|
|
|
GL_CURRENT_RASTER_TEXTURE_COORDS
|
|
|
|
GL_CURRENT_RASTER_POSITION_VALID
|
|
|
|
GL_CURRENT_TEXTURE_COORDS
|
|
|
|
GL_INDEX_CLEAR_VALUE
|
|
|
|
GL_INDEX_MODE
|
|
|
|
GL_INDEX_WRITEMASK
|
|
|
|
GL_MODELVIEW_MATRIX
|
|
|
|
GL_MODELVIEW_STACK_DEPTH
|
|
|
|
GL_NAME_STACK_DEPTH
|
|
|
|
GL_PROJECTION_MATRIX
|
|
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_CONSTANT_COLOR
|
|
|
|
GL_CONSTANT_ALPHA
|
|
|
|
GL_ONE_MINUS_CONSTANT_ALPHA
|
|
|
|
GL_COLOR_TABLE
|
|
|
|
GL_POST_CONVOLUTION_COLOR_TABLE
|
|
|
|
GL_POST_COLOR_MATRIX_COLOR_TABLE
|
|
|
|
GL_PROXY_COLOR_TABLE
|
|
|
|
GL_PROXY_POST_CONVOLUTION_COLOR_TABLE
|
|
|
|
GL_PROXY_POST_COLOR_MATRIX_COLOR_TABLE
|
|
|
|
GL_COLOR_TABLE_SCALE
|
|
|
|
GL_COLOR_TABLE_BIAS
|
|
|
|
GL_COLOR_TABLE_FORMAT
|
|
|
|
GL_COLOR_TABLE_WIDTH
|
|
|
|
GL_COLOR_TABLE_RED_SIZE
|
|
|
|
GL_COLOR_TABLE_GREEN_SIZE
|
|
|
|
GL_COLOR_TABLE_BLUE_SIZE
|
|
|
|
GL_COLOR_TABLE_ALPHA_SIZE
|
|
|
|
GL_COLOR_TABLE_LUMINANCE_SIZE
|
|
|
|
GL_COLOR_TABLE_INTENSITY_SIZE
|
|
|
|
GL_CONVOLUTION_1D
|
|
|
|
GL_CONVOLUTION_2D
|
|
|
|
GL_SEPARABLE_2D
|
|
|
|
GL_CONVOLUTION_BORDER_MODE
|
|
|
|
GL_CONVOLUTION_FILTER_SCALE
|
|
|
|
GL_CONVOLUTION_FILTER_BIAS
|
|
|
|
GL_REDUCE
|
|
|
|
GL_CONVOLUTION_FORMAT
|
|
|
|
GL_CONVOLUTION_WIDTH
|
|
|
|
GL_CONVOLUTION_HEIGHT
|
|
|
|
GL_MAX_CONVOLUTION_WIDTH
|
|
|
|
GL_MAX_CONVOLUTION_HEIGHT
|
|
|
|
GL_POST_CONVOLUTION_RED_SCALE
|
|
|
|
GL_POST_CONVOLUTION_GREEN_SCALE
|
|
|
|
GL_POST_CONVOLUTION_BLUE_SCALE
|
|
|
|
GL_POST_CONVOLUTION_ALPHA_SCALE
|
|
|
|
GL_POST_CONVOLUTION_RED_BIAS
|
|
|
|
GL_POST_CONVOLUTION_GREEN_BIAS
|
|
|
|
GL_POST_CONVOLUTION_BLUE_BIAS
|
|
|
|
GL_POST_CONVOLUTION_ALPHA_BIAS
|
|
|
|
GL_CONSTANT_BORDER
|
|
|
|
GL_REPLICATE_BORDER
|
|
|
|
GL_CONVOLUTION_BORDER_COLOR
|
|
|
|
GL_COLOR_MATRIX
|
|
|
|
GL_COLOR_MATRIX_STACK_DEPTH
|
|
|
|
GL_MAX_COLOR_MATRIX_STACK_DEPTH
|
|
|
|
GL_POST_COLOR_MATRIX_RED_SCALE
|
|
|
|
GL_POST_COLOR_MATRIX_GREEN_SCALE
|
|
|
|
GL_POST_COLOR_MATRIX_BLUE_SCALE
|
|
|
|
GL_POST_COLOR_MATRIX_ALPHA_SCALE
|
|
|
|
GL_POST_COLOR_MATRIX_RED_BIAS
|
|
|
|
GL_POST_COLOR_MATRIX_GREEN_BIAS
|
|
|
|
GL_POST_COLOR_MATRIX_BLUE_BIAS
|
|
|
|
GL_POST_COLOR_MATRIX_ALPHA_BIAS
|
|
|
|
GL_HISTOGRAM
|
|
|
|
GL_PROXY_HISTOGRAM
|
|
|
|
GL_HISTOGRAM_WIDTH
|
|
|
|
GL_HISTOGRAM_FORMAT
|
|
|
|
GL_HISTOGRAM_RED_SIZE
|
|
|
|
GL_HISTOGRAM_GREEN_SIZE
|
|
|
|
GL_HISTOGRAM_BLUE_SIZE
|
|
|
|
GL_HISTOGRAM_ALPHA_SIZE
|
|
|
|
GL_HISTOGRAM_LUMINANCE_SIZE
|
|
|
|
GL_HISTOGRAM_SINK
|
|
|
|
GL_MINMAX
|
|
|
|
GL_MINMAX_FORMAT
|
|
|
|
GL_MINMAX_SINK
|
|
|
|
GL_TABLE_TOO_LARGE
|
|
|
|
GL_BLEND_EQUATION
|
|
|
|
GL_MIN
|
|
|
|
GL_MAX
|
|
|
|
GL_FUNC_ADD
|
|
|
|
GL_FUNC_SUBTRACT
|
|
|
|
GL_FUN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L_TEXTURE_CUBE_MAP_NEGATIVE_Z
|
|
|
|
GL_PROXY_TEXTURE_CUBE_MAP
|
|
|
|
GL_MAX_CUBE_MAP_TEXTURE_SIZE
|
|
|
|
GL_COMPRESSED_ALPHA
|
|
|
|
GL_COMPRESSED_LUMINANCE
|
|
|
|
GL_COMPRESSED_LUMINANCE_ALPHA
|
|
|
|
GL_COMPRESSED_INTENSITY
|
|
|
|
GL_COMPRESSED_RGB
|
|
|
|
GL_COMPRESSED_RGBA
|
|
|
|
GL_TEXTURE_COMPRESSION_HINT
|
|
|
|
GL_TEXTURE_COMPRESSED_IMAGE_SIZE
|
|
|
|
GL_TEXTURE_COMPRESSED
|
|
|
|
GL_NUM_COMPRESSED_TEXTURE_FORMATS
|
|
|
|
GL_COMPRESSED_TEXTURE_FORMATS
|
|
|
|
GL_MULTISAMPLE
|
|
|
|
GL_SAMPLE_ALPHA_TO_COVERAGE
|
|
|
|
GL_SAMPLE_ALPHA_TO_ONE
|
|
|
|
GL_SAMPLE_COVERAGE
|
|
|
|
GL_SAMPLE_BUFFERS
|
|
|
|
GL_SAMPLES
|
|
|
|
GL_SAMPLE_COVERAGE_VALUE
|
|
|
|
GL_SAMPLE_COVERAGE_INVERT
|
|
|
|
GL_MULTISAMPLE_BIT
|
|
|
|
GL_TRANSPOSE_MODELVIEW_MATRIX
|
|
|
|
GL_TRANSPOSE_PROJECTION_MATRIX
|
|
|
|
GL_TRANSPOSE_TEXTURE_MATRIX
|
|
|
|
GL_TRANSPOSE_COLOR_MATRIX
|
|
|
|
GL_COMBINE
|
|
|
|
GL_COMBINE_RGB
|
|
|
|
GL_COMBINE_ALPHA
|
|
|
|
GL_SOURCE0_RGB
|
|
|
|
GL_SOURCE1_RGB
|
|
|
|
GL_SOURCE2_RGB
|
|
|
|
GL_SOURCE0_ALPHA
|
|
|
|
GL_SOURCE1_ALPHA
|
|
|
|
GL_SOURCE2_ALPHA
|
|
|
|
GL_OPERAND0_RGB
|
|
|
|
GL_OPERAND1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|
GL_TEXTURE31_ARB
|
|
|
|
GL_ACTIVE_TEXTURE_ARB
|
|
|
|
GL_CLIENT_ACTIVE_TEXTURE_ARB
|
|
|
|
GL_MAX_TEXTURE_UNITS_ARB
|
|
|
|
|
|
|
|
glClearIndex
|
|
|
|
glClearColor
|
|
|
|
glClear
|
|
|
|
glIndexMask
|
|
|
|
glColorMask
|
|
|
|
glAlphaFunc
|
|
|
|
glBlendFunc
|
|
|
|
glLogicOp
|
|
|
|
glCullFace
|
|
|
|
glFrontFace
|
|
|
|
glPointSize
|
|
|
|
glLineWidth
|
|
|
|
glLineStipple
|
|
|
|
glPolygonMode
|
|
|
|
glPolygonOffset
|
|
|
|
glPolygonStipple
|
|
|
|
glGetPolygonStipple
|
|
|
|
glEdgeFlag
|
|
|
|
glEdgeFlagv
|
|
|
|
glScissor
|
|
|
|
glClipPlane
|
|
|
|
glGetClipPlane
|
|
|
|
glDrawBuffer
|
|
|
|
glReadBuffer
|
|
|
|
glEnable
|
|
|
|
glDisable
|
|
|
|
glIsEnabled
|
|
|
|
glEnableClientState
|
|
|
|
glDisableClientState
|
|
|
|
glGetBooleanv
|
|
|
|
glGetDoublev
|
|
|
|
glGetFloatv
|
|
|
|
glGetIntegerv
|
|
|
|
glPushAttrib
|
|
|
|
glPopAttrib
|
|
|
|
glPushClientAttrib
|
|
|
|
glPopClientAttrib
|
|
|
|
glRenderMode
|
|
|
|
glGetError
|
|
|
|
glGetString
|
|
|
|
glFinish
|
|
|
|
glFlush
|
|
|
|
glHint
|
|
|
|
glClearDepth
|
|
|
|
glDepthFunc
|
|
|
|
glDepthMask
|
|
|
|
glDepthRange
|
|
|
|
glClearAccum
|
|
|
|
glAccum
|
|
|
|
glMatrixMode
|
|
|
|
glOrtho
|
|
|
|
glFrustum
|
|
|
|
glViewport
|
|
|
|
glPushMatrix
|
|
|
|
glPopMatrix
|
|
|
|
glLoadIdentity
|
|
|
|
glLoadMatrixd
|
|
|
|
glLoadMatrixf
|
|
|
|
glMultMatrixd
|
|
|
|
glMultMatrixf
|
|
|
|
glRotated
|
|
|
|
glRotatef
|
|
|
|
glScaled
|
|
|
|
glScalef
|
|
|
|
glTranslated
|
|
|
|
glTranslatef
|
|
|
|
glIsList
|
|
|
|
glDeleteLists
|
|
|
|
glGenLists
|
|
|
|
glNewList
|
|
|
|
glEndList
|
|
|
|
glCallList
|
|
|
|
glCallLists
|
|
|
|
glListBase
|
|
|
|
glBegin
|
|
|
|
glEnd
|
|
|
|
glVertex2d
|
|
|
|
glVertex2f
|
|
|
|
glVertex2i
|
|
|
|
glVertex2s
|
|
|
|
glVertex3d
|
|
|
|
glVertex3f
|
|
|
|
glVertex3i
|
|
|
|
glVertex3s
|
|
|
|
glVertex4d
|
|
|
|
glVertex4f
|
|
|
|
glVertex4i
|
|
|
|
glVertex4s
|
|
|
|
glVertex2dv
|
|
|
|
glVertex2fv
|
|
|
|
glVertex2iv
|
|
|
|
glVertex2sv
|
|
|
|
glVertex3dv
|
|
|
|
glVertex3fv
|
|
|
|
glVertex3iv
|
|
|
|
glVertex3sv
|
|
|
|
glVertex4dv
|
|
|
|
glVertex4fv
|
|
|
|
glVertex4iv
|
|
|
|
glVertex4sv
|
|
|
|
glNormal3b
|
|
|
|
glNormal3d
|
|
|
|
glNormal3f
|
|
|
|
glNormal3i
|
|
|
|
glNormal3s
|
|
|
|
glNormal3bv
|
|
|
|
glNormal3dv
|
|
|
|
glNormal3fv
|
|
|
|
glNormal3iv
|
|
|
|
glNormal3sv
|
|
|
|
glIndexd
|
|
|
|
glIndexf
|
|
|
|
glIndexi
|
|
|
|
glIndexs
|
|
|
|
glIndexub
|
|
|
|
glIndexdv
|
|
|
|
glIndexfv
|
|
|
|
glIndexiv
|
|
|
|
glIndexsv
|
|
|
|
glIndexubv
|
|
|
|
glColor3b
|
|
|
|
glColor3d
|
|
|
|
glColor3f
|
|
|
|
glColor3i
|
|
|
|
glColor3s
|
|
|
|
glColor3ub
|
|
|
|
glColor3ui
|
|
|
|
glColor3us
|
|
|
|
glColor4b
|
|
|
|
glColor4d
|
|
|
|
glColor4f
|
|
|
|
glColor4i
|
|
|
|
glColor4s
|
|
|
|
glColor4ub
|
|
|
|
glColor4ui
|
|
|
|
glColor4us
|
|
|
|
glColor3bv
|
|
|
|
glColor3dv
|
|
|
|
glColor3fv
|
|
|
|
glColor3iv
|
|
|
|
glColor3sv
|
|
|
|
glColor3ubv
|
|
|
|
glColor3uiv
|
|
|
|
glColor3usv
|
|
|
|
glColor4bv
|
|
|
|
glColor4dv
|
|
|
|
glColor4fv
|
|
|
|
glColor4iv
|
|
|
|
glColor4sv
|
|
|
|
glColor4ubv
|
|
|
|
glColor4uiv
|
|
|
|
glColor4usv
|
|
|
|
glTexCoord1d
|
|
|
|
glTexCoord1f
|
|
|
|
glTexCoord1i
|
|
|
|
glTexCoord1s
|
|
|
|
glTexCoord2d
|
|
|
|
glTexCoord2f
|
|
|
|
glTexCoord2i
|
|
|
|
glTexCoord2s
|
|
|
|
glTexCoord3d
|
|
|
|
glTexCoord3f
|
|
|
|
glTexCoord3i
|
|
|
|
glTexCoord3s
|
|
|
|
glTexCoord4d
|
|
|
|
glTexCoord4f
|
|
|
|
glTexCoord4i
|
|
|
|
glTexCoord4s
|
|
|
|
glTexCoord1dv
|
|
|
|
glTexCoord1fv
|
|
|
|
glTexCoord1iv
|
|
|
|
glTexCoord1sv
|
|
|
|
glTexCoord2dv
|
|
|
|
glTexCoord2fv
|
|
|
|
glTexCoord2iv
|
|
|
|
glTexCoord2sv
|
|
|
|
glTexCoord3dv
|
|
|
|
glTexCoord3fv
|
|
|
|
glTexCoord3iv
|
|
|
|
glTexCoord3sv
|
|
|
|
glTexCoord4dv
|
|
|
|
glTexCoord4fv
|
|
|
|
glTexCoord4iv
|
|
|
|
glTexCoord4sv
|
|
|
|
glRasterPos2d
|
|
|
|
glRasterPos2f
|
|
|
|
glRasterPos2i
|
|
|
|
glRasterPos2s
|
|
|
|
glRasterPos3d
|
|
|
|
glRasterPos3f
|
|
|
|
glRasterPos3i
|
|
|
|
glRasterPos3s
|
|
|
|
glRasterPos4d
|
|
|
|
glRasterPos4f
|
|
|
|
glRasterPos4i
|
|
|
|
glRasterPos4s
|
|
|
|
glRasterPos2dv
|
|
|
|
glRasterPos2fv
|
|
|
|
glRasterPos2iv
|
|
|
|
glRasterPos2sv
|
|
|
|
glRasterPos3dv
|
|
|
|
glRasterPos3fv
|
|
|
|
glRasterPos3iv
|
|
|
|
glRasterPos3sv
|
|
|
|
glRasterPos4dv
|
|
|
|
glRasterPos4fv
|
|
|
|
glRasterPos4iv
|
|
|
|
glRasterPos4sv
|
|
|
|
glRectd
|
|
|
|
glRectf
|
|
|
|
glRecti
|
|
|
|
glRects
|
|
|
|
glRectdv
|
|
|
|
glRectfv
|
|
|
|
glRectiv
|
|
|
|
glRectsv
|
|
|
|
glVertexPointer
|
|
|
|
glNormalPointer
|
|
|
|
glColorPointer
|
|
|
|
glIndexPointer
|
|
|
|
glTexCoordPointer
|
|
|
|
glEdgeFlagPointer
|
|
|
|
glGetPointerv
|
|
|
|
glArrayElement
|
|
|
|
glDrawArrays
|
|
|
|
glDrawElements
|
|
|
|
glInterleavedArrays
|
|
|
|
glShadeModel
|
|
|
|
glLightf
|
|
|
|
glLighti
|
|
|
|
glLightfv
|
|
|
|
glLightiv
|
|
|
|
glGetLightfv
|
|
|
|
glGetLightiv
|
|
|
|
glLightModelf
|
|
|
|
glLightModeli
|
|
|
|
glLightModelfv
|
|
|
|
glLightModeliv
|
|
|
|
glMaterialf
|
|
|
|
glMateriali
|
|
|
|
glMaterialfv
|
|
|
|
glMaterialiv
|
|
|
|
glGetMaterialfv
|
|
|
|
glGetMaterialiv
|
|
|
|
glColorMaterial
|
|
|
|
glPixelZoom
|
|
|
|
glPixelStoref
|
|
|
|
glPixelStorei
|
|
|
|
glPixelTransferf
|
|
|
|
glPixelTransferi
|
|
|
|
glPixelMapfv
|
|
|
|
glPixelMapuiv
|
|
|
|
glPixelMapusv
|
|
|
|
glGetPixelMapfv
|
|
|
|
glGetPixelMapuiv
|
|
|
|
glGetPixelMapusv
|
|
|
|
glBitmap
|
|
|
|
glReadPixels
|
|
|
|
glDrawPixels
|
|
|
|
glCopyPixels
|
|
|
|
glStencilFunc
|
|
|
|
glStencilMask
|
|
|
|
glStencilOp
|
|
|
|
glClearStencil
|
|
|
|
glTexGend
|
|
|
|
glTexGenf
|
|
|
|
glTexGeni
|
|
|
|
glTexGendv
|
|
|
|
glTexGenfv
|
|
|
|
glTexGeniv
|
|
|
|
glGetTexGendv
|
|
|
|
glGetTexGenfv
|
|
|
|
glGetTexGeniv
|
|
|
|
glTexEnvf
|
|
|
|
glTexEnvi
|
|
|
|
glTexEnvfv
|
|
|
|
glTexEnviv
|
|
|
|
glGetTexEnvfv
|
|
|
|
glGetTexEnviv
|
|
|
|
glTexParameterf
|
|
|
|
glTexParameteri
|
|
|
|
glTexParameterfv
|
|
|
|
glTexParameteriv
|
|
|
|
glGetTexParameterfv
|
|
|
|
glGetTexParameteriv
|
|
|
|
glGetTexLevelParameterfv
|
|
|
|
glGetTexLevelParameteriv
|
|
|
|
glTexImage1D
|
|
|
|
glTexImage2D
|
|
|
|
glGetTexImage
|
|
|
|
glGenTextures
|
|
|
|
glDeleteTextures
|
|
|
|
glBindTexture
|
|
|
|
glPrioritizeTextures
|
|
|
|
glAreTexturesResident
|
|
|
|
glIsTexture
|
|
|
|
glTexSubImage1D
|
|
|
|
glTexSubImage2D
|
|
|
|
glCopyTexImage1D
|
|
|
|
glCopyTexImage2D
|
|
|
|
glCopyTexSubImage1D
|
|
|
|
glCopyTexSubImage2D
|
|
|
|
glMap1d
|
|
|
|
glMap1f
|
|
|
|
glMap2d
|
|
|
|
glMap2f
|
|
|
|
glGetMapdv
|
|
|
|
glGetMapfv
|
|
|
|
glGetMapiv
|
|
|
|
glEvalCoord1d
|
|
|
|
glEvalCoord1f
|
|
|
|
glEvalCoord1dv
|
|
|
|
glEvalCoord1fv
|
|
|
|
glEvalCoord2d
|
|
|
|
glEvalCoord2f
|
|
|
|
glEvalCoord2dv
|
|
|
|
glEvalCoord2fv
|
|
|
|
glMapGrid1d
|
|
|
|
glMapGrid1f
|
|
|
|
glMapGrid2d
|
|
|
|
glMapGrid2f
|
|
|
|
glEvalPoint1
|
|
|
|
glEvalPoint2
|
|
|
|
glEvalMesh1
|
|
|
|
glEvalMesh2
|
|
|
|
glFogf
|
|
|
|
glFogi
|
|
|
|
glFogfv
|
|
|
|
glFogiv
|
|
|
|
glFeedbackBuffer
|
|
|
|
glPassThrough
|
|
|
|
glSelectBuffer
|
|
|
|
glInitNames
|
|
|
|
glLoadName
|
|
|
|
glPushName
|
|
|
|
glPopName
|
|
|
|
glDrawRangeElements
|
|
|
|
glTexImage3D
|
|
|
|
glTexSubImage3D
|
|
|
|
glCopyTexSubImage3D
|
|
|
|
glColorTable
|
|
|
|
glColorSubTable
|
|
|
|
glColorTableParameteriv
|
|
|
|
glColorTableParameterfv
|
|
|
|
glCopyColorSubTable
|
|
|
|
glCopyColorTable
|
|
|
|
glGetColorTable
|
|
|
|
glGetColorTableParameterfv
|
|
|
|
glGetColorTableParameteriv
|
|
|
|
glBlendEquation
|
|
|
|
glBlendColor
|
|
|
|
glHistogram
|
|
|
|
glResetHistogram
|
|
|
|
glGetHistogram
|
|
|
|
glGetHistogramParameterfv
|
|
|
|
glGetHistogramParameteriv
|
|
|
|
glMinmax
|
|
|
|
glResetMinmax
|
|
|
|
glGetMinmax
|
|
|
|
glGetMinmaxParameterfv
|
|
|
|
glGetMinmaxParameteriv
|
|
|
|
glConvolutionFilter1D
|
|
|
|
glConvolutionFilter2D
|
|
|
|
glConvolutionParameterf
|
|
|
|
glConvolutionParameterfv
|
|
|
|
glConvolutionParameteri
|
|
|
|
glConvolutionParameteriv
|
|
|
|
glCopyConvolutionFilter1D
|
|
|
|
glCopyConvolutionFilter2D
|
|
|
|
glGetConvolutionFilter
|
|
|
|
glGetConvolutionParameterfv
|
|
|
|
glGetConvolutionParameteriv
|
|
|
|
glSeparableFilter2D
|
|
|
|
glGetSeparableFilter
|
|
|
|
glActiveTexture
|
|
|
|
glClientActiveTexture
|
|
|
|
glCompressedTexImage1D
|
|
|
|
glCompressedTexImage2D
|
|
|
|
glCompressedTexImage3D
|
|
|
|
glCompressedTexSubImage1D
|
|
|
|
glCompressedTexSubImage2D
|
|
|
|
glCompressedTexSubImage3D
|
|
|
|
glGetCompressedTexImage
|
|
|
|
glMultiTexCoord1d
|
|
|
|
glMultiTexCoord1dv
|
|
|
|
glMultiTexCoord1f
|
|
|
|
glMultiTexCoord1fv
|
|
|
|
glMultiTexCoord1i
|
|
|
|
glMultiTexCoord1iv
|
|
|
|
glMultiTexCoord1s
|
|
|
|
glMultiTexCoord1sv
|
|
|
|
glMultiTexCoord2d
|
|
|
|
glMultiTexCoord2dv
|
|
|
|
glMultiTexCoord2f
|
|
|
|
glMultiTexCoord2fv
|
|
|
|
glMultiTexCoord2i
|
|
|
|
glMultiTexCoord2iv
|
|
|
|
glMultiTexCoord2s
|
|
|
|
glMultiTexCoord2sv
|
|
|
|
glMultiTexCoord3d
|
|
|
|
glMultiTexCoord3dv
|
|
|
|
glMultiTexCoord3f
|
|
|
|
glMultiTexCoord3fv
|
|
|
|
glMultiTexCoord3i
|
|
|
|
glMultiTexCoord3iv
|
|
|
|
glMultiTexCoord3s
|
|
|
|
glMultiTexCoord3sv
|
|
|
|
glMultiTexCoord4d
|
|
|
|
glMultiTexCoord4dv
|
|
|
|
glMultiTexCoord4f
|
|
|
|
glMultiTexCoord4fv
|
|
|
|
glMultiTexCoord4i
|
|
|
|
glMultiTexCoord4iv
|
|
|
|
glMultiTexCoord4s
|
|
|
|
glMultiTexCoord4sv
|
|
|
|
glLoadTransposeMatrixd
|
|
|
|
glLoadTransposeMatrixf
|
|
|
|
glMultTransposeMatrixd
|
|
|
|
glMultTransposeMatrixf
|
|
|
|
glSampleCoverage
|
|
|
|
glActiveTextureARB
|
|
|
|
glClientActiveTextureARB
|
|
|
|
glMultiTexCoord1dARB
|
|
|
|
glMultiTexCoord1dvARB
|
|
|
|
glMultiTexCoord1fARB
|
|
|
|
glMultiTexCoord1fvARB
|
|
|
|
glMultiTexCoord1iARB
|
|
|
|
glMultiTexCoord1ivARB
|
|
|
|
glMultiTexCoord1sARB
|
|
|
|
glMultiTexCoord1svARB
|
|
|
|
glMultiTexCoord2dARB
|
|
|
|
glMultiTexCoord2dvARB
|
|
|
|
glMultiTexCoord2fARB
|
|
|
|
glMultiTexCoord2fvARB
|
|
|
|
glMultiTexCoord2iARB
|
|
|
|
glMultiTexCoord2ivARB
|
|
|
|
glMultiTexCoord2sARB
|
|
|
|
glMultiTexCoord2svARB
|
|
|
|
glMultiTexCoord3dARB
|
|
|
|
glMultiTexCoord3dvARB
|
|
|
|
glMultiTexCoord3fARB
|
|
|
|
glMultiTexCoord3fvARB
|
|
|
|
glMultiTexCoord3iARB
|
|
|
|
glMultiTexCoord3ivARB
|
|
|
|
glMultiTexCoord3sARB
|
|
|
|
glMultiTexCoord3svARB
|
|
|
|
glMultiTexCoord4dARB
|
|
|
|
glMultiTexCoord4dvARB
|
|
|
|
glMultiTexCoord4fARB
|
|
|
|
glMultiTexCoord4fvARB
|
|
|
|
glMultiTexCoord4iARB
|
|
|
|
glMultiTexCoord4ivARB
|
|
|
|
glMultiTexCoord4sARB
|
|
|
|
glMultiTexCoord4svARB)
|
|
|
|
|
2008-09-24 05:22:53 -04:00
|
|
|
(import (rnrs) (ypsilon-compat))
|
2008-09-23 07:48:16 -04:00
|
|
|
|
|
|
|
(define libGL (cond (on-darwin (load-shared-object "OpenGL.framework/OpenGL"))
|
|
|
|
(on-windows (load-shared-object "opengl32.dll"))
|
|
|
|
(on-linux (load-shared-object "libGL.so.1"))
|
|
|
|
(on-freebsd (load-shared-object "libGL.so.1"))
|
|
|
|
(else (assertion-violation #f "can not locate OpenGL library, unknown operating system"))))
|
|
|
|
|
|
|
|
;;;; Boolean values
|
|
|
|
(define GL_FALSE #x0)
|
|
|
|
(define GL_TRUE #x1)
|
|
|
|
;;;; Data types
|
|
|
|
(define GL_BYTE #x1400)
|
|
|
|
(define GL_UNSIGNED_BYTE #x1401)
|
|
|
|
(define GL_SHORT #x1402)
|
|
|
|
(define GL_UNSIGNED_SHORT #x1403)
|
|
|
|
(define GL_INT #x1404)
|
|
|
|
(define GL_UNSIGNED_INT #x1405)
|
|
|
|
(define GL_FLOAT #x1406)
|
|
|
|
(define GL_2_BYTES #x1407)
|
|
|
|
(define GL_3_BYTES #x1408)
|
|
|
|
(define GL_4_BYTES #x1409)
|
|
|
|
(define GL_DOUBLE #x140A)
|
|
|
|
;;;; Primitives
|
|
|
|
(define GL_POINTS #x0000)
|
|
|
|
(define GL_LINES #x0001)
|
|
|
|
(define GL_LINE_LOOP #x0002)
|
|
|
|
(define GL_LINE_STRIP #x0003)
|
|
|
|
(define GL_TRIANGLES #x0004)
|
|
|
|
(define GL_TRIANGLE_STRIP #x0005)
|
|
|
|
(define GL_TRIANGLE_FAN #x0006)
|
|
|
|
(define GL_QUADS #x0007)
|
|
|
|
(define GL_QUAD_STRIP #x0008)
|
|
|
|
(define GL_POLYGON #x0009)
|
|
|
|
;;;; Vertex Arrays
|
|
|
|
(define GL_VERTEX_ARRAY #x8074)
|
|
|
|
(define GL_NORMAL_ARRAY #x8075)
|
|
|
|
(define GL_COLOR_ARRAY #x8076)
|
|
|
|
(define GL_INDEX_ARRAY #x8077)
|
|
|
|
(define GL_TEXTURE_COORD_ARRAY #x8078)
|
|
|
|
(define GL_EDGE_FLAG_ARRAY #x8079)
|
|
|
|
(define GL_VERTEX_ARRAY_SIZE #x807A)
|
|
|
|
(define GL_VERTEX_ARRAY_TYPE #x807B)
|
|
|
|
(define GL_VERTEX_ARRAY_STRIDE #x807C)
|
|
|
|
(define GL_NORMAL_ARRAY_TYPE #x807E)
|
|
|
|
(define GL_NORMAL_ARRAY_STRIDE #x807F)
|
|
|
|
(define GL_COLOR_ARRAY_SIZE #x8081)
|
|
|
|
(define GL_COLOR_ARRAY_TYPE #x8082)
|
|
|
|
(define GL_COLOR_ARRAY_STRIDE #x8083)
|
|
|
|
(define GL_INDEX_ARRAY_TYPE #x8085)
|
|
|
|
(define GL_INDEX_ARRAY_STRIDE #x8086)
|
|
|
|
(define GL_TEXTURE_COORD_ARRAY_SIZE #x8088)
|
|
|
|
(define GL_TEXTURE_COORD_ARRAY_TYPE #x8089)
|
|
|
|
(define GL_TEXTURE_COORD_ARRAY_STRIDE #x808A)
|
|
|
|
(define GL_EDGE_FLAG_ARRAY_STRIDE #x808C)
|
|
|
|
(define GL_VERTEX_ARRAY_POINTER #x808E)
|
|
|
|
(define GL_NORMAL_ARRAY_POINTER #x808F)
|
|
|
|
(define GL_COLOR_ARRAY_POINTER #x8090)
|
|
|
|
(define GL_INDEX_ARRAY_POINTER #x8091)
|
|
|
|
(define GL_TEXTURE_COORD_ARRAY_POINTER #x8092)
|
|
|
|
(define GL_EDGE_FLAG_ARRAY_POINTER #x8093)
|
|
|
|
(define GL_V2F #x2A20)
|
|
|
|
(define GL_V3F #x2A21)
|
|
|
|
(define GL_C4UB_V2F #x2A22)
|
|
|
|
(define GL_C4UB_V3F #x2A23)
|
|
|
|
(define GL_C3F_V3F #x2A24)
|
|
|
|
(define GL_N3F_V3F #x2A25)
|
|
|
|
(define GL_C4F_N3F_V3F #x2A26)
|
|
|
|
(define GL_T2F_V3F #x2A27)
|
|
|
|
(define GL_T4F_V4F #x2A28)
|
|
|
|
(define GL_T2F_C4UB_V3F #x2A29)
|
|
|
|
(define GL_T2F_C3F_V3F #x2A2A)
|
|
|
|
(define GL_T2F_N3F_V3F #x2A2B)
|
|
|
|
(define GL_T2F_C4F_N3F_V3F #x2A2C)
|
|
|
|
(define GL_T4F_C4F_N3F_V4F #x2A2D)
|
|
|
|
;;;; Matrix Mode
|
|
|
|
(define GL_MATRIX_MODE #x0BA0)
|
|
|
|
(define GL_MODELVIEW #x1700)
|
|
|
|
(define GL_PROJECTION #x1701)
|
|
|
|
(define GL_TEXTURE #x1702)
|
|
|
|
;;;; Points
|
|
|
|
(define GL_POINT_SMOOTH #x0B10)
|
|
|
|
(define GL_POINT_SIZE #x0B11)
|
|
|
|
(define GL_POINT_SIZE_GRANULARITY #x0B13)
|
|
|
|
(define GL_POINT_SIZE_RANGE #x0B12)
|
|
|
|
;;;; Lines
|
|
|
|
(define GL_LINE_SMOOTH #x0B20)
|
|
|
|
(define GL_LINE_STIPPLE #x0B24)
|
|
|
|
(define GL_LINE_STIPPLE_PATTERN #x0B25)
|
|
|
|
(define GL_LINE_STIPPLE_REPEAT #x0B26)
|
|
|
|
(define GL_LINE_WIDTH #x0B21)
|
|
|