I had never used OpenGL extensions before, but I found some good info about them at opengl.org. I lifted the
isExtensionSupported()
function to help me check for capabilities supported by the graphics driver/card and made a short macro to help me get function pointers with wglGetProcAddress()
. It seems clunky but with a bit of wrapping and macro/template magic I should be able to get something decent going. I found out about GLEW from NVidia's OpenGL SDK, but I've decided to handle extensions myself for the moment since it will force me to look into them a bit more closely and I figure I won't be using that many anyway. We'll see how my patience holds up.
No comments:
Post a Comment