Author Topic: Opengl extensions  (Read 2265 times)

ToutEnMasm

  • Member
  • *****
  • Posts: 1189
    • EditMasm
Opengl extensions
« on: August 16, 2012, 12:36:15 AM »
Hello,
Here is the needed material to use the opengl extensions functions.
See the "opengl registry" site for more information.
The zip give a translate of glext.h.
The functions must be call dynamically.
So i have made a static lib who made this call like this:
Quote
glVertexAttribL4dv PROC un:DWORD,deux:DWORD
   .if ADRglVertexAttribL4dv   !=0
   invoke Dyna_glVertexAttribL4dv,un,deux
   .else
      mov eax,-1
   .endif
   ret
glVertexAttribL4dv   endp
usage is simple
Quote
   GL_GLEXT_PROTOTYPES equ
   include glext.inc
                .....
   includelib dyna_glext.lib
   glext_SearchAdresse PROTO

code:
Quote
      invoke glext_SearchAdresse ;made the dynamic load
                            ;then functions can be used
                               invoke glActiveTexture,GL_TEXTURE0
      ;This one is unsupported and return -1
      invoke glWeightbvARB,NULL,NULL
Fa is a musical note to play with CL