does sdl help to settup ogl extensions?
i found some code:
#include <SDL/SDL_opengl.h>
PFNGLACTIVETEXTUREARBPROC glActiveTextureARB = 0;
glActiveTextureARB = (PFNGLACTIVETEXTUREARBPROC)
SDL_GL_GetProcAddress("glActiveTextureARB");
which i put into my code, but i get this error:
F:\SiphonGL\Engine\GLDevice.cpp(4) : error C2501:
‘PFNGLACTIVETEXTUREARBPROC’ : missing storage-class or type specifiers
any ideas how to fix this?-------------------------------
Fabian “SupaGu” Mathews
Help STOP SPAM with the new MSN 8 and get 2 months FREE*
http://join.msn.com/?page=features/junkmail
Fabian Mathews wrote:
does sdl help to settup ogl extensions?
i found some code:
which i put into my code, but i get this error:
F:\SiphonGL\Engine\GLDevice.cpp(4) : error C2501:
‘PFNGLACTIVETEXTUREARBPROC’ : missing storage-class or type specifiers
I would guess you need to #include <GL/gl_ext.h>
If you don’t have this file, get it from
http://oss.sgi.com/projects/ogl-sample/registry/
Regards,
\Mikkel Gjoel
does sdl help to settup ogl extensions?
i found some code:
#include <SDL/SDL_opengl.h>
PFNGLACTIVETEXTUREARBPROC glActiveTextureARB = 0;
glActiveTextureARB = (PFNGLACTIVETEXTUREARBPROC)
SDL_GL_GetProcAddress(“glActiveTextureARB”);
Try this with the CVS version of SDL:
http://www.libsdl.org/cvs.php
See ya,
-Sam Lantinga, Software Engineer, Blizzard Entertainment