[SDL] [Maybe a bit OT] Opengl GLSL on windows
Martin Storsjö
martin at martin.st
Sun Jan 7 16:33:23 PST 2007
On Mon, 8 Jan 2007, Kuon - Nicolas Goy - ???? (Goyman.com SA) wrote:
> Hello,
>
> Also, I downloaded the:
> w32api-3.6.tar.gz
> (actualy build-cross.sh did it)
> but it contains only 1.1 opengl implementation.
>
> So, I think I must find updated gl.h and glu.h, and also a lib with the
> function in them.
>
> So, to summarize:
> - Where to find those files?
> - What do you think of using opengl 2.0 on windows and GLSL?
If I remember correctly, OpenGL applications on windows are supposed to
only link to OpenGL 1.1-features, functions from newer OpenGL-versions
should be loaded as extensions.
This is mentioned in the comments in gl.h and glext.h from the w32api
package.
So, include gl/glext.h in order to get the necessary defines, and load the
symbols using SDL_GL_GetProcAddress.
// Martin
More information about the SDL
mailing list