Skip to content

Commit

Permalink
Cleanup and updated style of drOpenGL. Re-jigged things slightly unde…
Browse files Browse the repository at this point in the history
…r win32.

TODO: Under WIN32, OpenGL extension function pointers are only valid for the pixel format in effect for the rendering context (inherited from the device context) at the time of query. If we create additional windows and/or change the pixel format at any time the function ptrs must be re-acquired. This is the direct opposite of what happens under X11 where extension ptrs are pixel format independent. So under WIN32, we need to keep a set of ptrs for each rendering context and make sure we update when the rendering context changes, through wglMakeCurrent().
  • Loading branch information
danij committed Jul 2, 2007
1 parent 87086b1 commit f4257ba
Show file tree
Hide file tree
Showing 6 changed files with 269 additions and 438 deletions.
132 changes: 66 additions & 66 deletions doomsday/plugins/opengl/api/dropengl.def
@@ -1,70 +1,70 @@
LIBRARY DROPENGL
LIBRARY DROPENGL

; All exports should be prefixed DG_.

EXPORTS
DG_Init
DG_Shutdown
DG_ChangeVideoMode
DG_CreateContext
DG_DestroyContext
DG_Clear
DG_Show
DG_Viewport
DG_Scissor
DG_GetInteger
DG_GetIntegerv
DG_SetInteger
DG_SetFloatv
DG_GetString
DG_Enable
DG_Disable
DG_EnableArrays
DG_DisableArrays
DG_Arrays
DG_UnlockArrays
DG_Func
DG_NewTexture
DG_DeleteTextures
DG_TexImage
DG_TexParameter
DG_GetTexParameterv
DG_Palette
DG_Bind
DG_MatrixMode
DG_PushMatrix
DG_PopMatrix
DG_LoadIdentity
DG_Translatef
DG_Rotatef
DG_Scalef
DG_Ortho
DG_Perspective
DG_Color3ub
DG_Color3ubv
DG_Color4ub
DG_Color4ubv
DG_Color3f
DG_Color3fv
DG_Color4f
DG_Color4fv
DG_Begin
DG_End
DG_Vertex2f
DG_Vertex2fv
DG_Vertex3f
DG_Vertex3fv
DG_TexCoord2f
DG_TexCoord2fv
DG_MultiTexCoord2f
DG_MultiTexCoord2fv
DG_Vertices2ftv
DG_Vertices3ftv
DG_Vertices3fctv
DG_ArrayElement
DG_DrawElements
DG_Grab
DG_Fog
DG_Fogv
DG_Project
DG_ReadPixels
DG_Init
DG_Shutdown
DG_ChangeVideoMode
DG_CreateContext
DG_DestroyContext
DG_Clear
DG_Show
DG_Viewport
DG_Scissor
DG_GetInteger
DG_GetIntegerv
DG_SetInteger
DG_SetFloatv
DG_GetString
DG_Enable
DG_Disable
DG_EnableArrays
DG_DisableArrays
DG_Arrays
DG_UnlockArrays
DG_Func
DG_NewTexture
DG_DeleteTextures
DG_TexImage
DG_TexParameter
DG_GetTexParameterv
DG_Palette
DG_Bind
DG_MatrixMode
DG_PushMatrix
DG_PopMatrix
DG_LoadIdentity
DG_Translatef
DG_Rotatef
DG_Scalef
DG_Ortho
DG_Perspective
DG_Color3ub
DG_Color3ubv
DG_Color4ub
DG_Color4ubv
DG_Color3f
DG_Color3fv
DG_Color4f
DG_Color4fv
DG_Begin
DG_End
DG_Vertex2f
DG_Vertex2fv
DG_Vertex3f
DG_Vertex3fv
DG_TexCoord2f
DG_TexCoord2fv
DG_MultiTexCoord2f
DG_MultiTexCoord2fv
DG_Vertices2ftv
DG_Vertices3ftv
DG_Vertices3fctv
DG_ArrayElement
DG_DrawElements
DG_Grab
DG_Fog
DG_Fogv
DG_Project
; DG_ReadPixels

0 comments on commit f4257ba

Please sign in to comment.