[Maybe a bit OT] Opengl GLSL on windows

Hello,

I found some thread on opengl 1.2+ on windows, but nothing up to date.

My question is simple, actually, I compile my game on macosx intel
and ppc.

To compile the windows version, I use mingw with the SDL include
files I found here:
http://www.libsdl.org/extras/win32/common/opengl-devel.tar.gz

But they seem to be outdated.

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?

I know those questinos are a bit OT, but as I dev with SDL, and as I
can compile my app on windows because I use SDL, I thought it would
be cool to have this discussion here as others might be helped.

Best regards–
Kuon
Programmer and sysadmin.

“Computers should not stop working when the users’ brain does.”

-------------- next part --------------
A non-text attachment was scrubbed…
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2434 bytes
Desc: not available
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20070108/cd742cec/attachment.bin

— “Kuon - Nicolas Goy - ??? (Goyman.com SA)”
wrote:

Hello,

I found some thread on opengl 1.2+ on windows, but nothing up to
date.

My question is simple, actually, I compile my game on macosx intel
and ppc.

This is the horror that is OpenGL on Windows.

Read http://www.gamedev.net/reference/programming/features/oglext/ it
seems to cover the basics (I learnt elsewhere).

“Duct tape is like the Force. It has a dark side, it has a
light side, and it holds the Universe together.”
-Carl Zwanig__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

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.

// MartinOn Mon, 8 Jan 2007, Kuon - Nicolas Goy - ??? (Goyman.com SA) wrote:

Hello Kuon,

Basically, MS haven’t updated the headers or ICD system since OpenGL
1.1. You have to get advanced features through extensions.

You might want to look at GLEW http://glew.sourceforge.net/ - this
will work cross-platform and should help.–
Best regards,
Peter mailto:@Peter_Mulholland

Hello Kuon,

Basically, MS haven’t updated the headers or ICD system since OpenGL
1.1. You have to get advanced features through extensions.

You might want to look at GLEW http://glew.sourceforge.net/ - this
will work cross-platform and should help.

Glew solved it. Thanks much.

RegardsOn Jan 8, 2007, at 2:49 AM, Peter Mulholland wrote:


Kuon
Programmer and sysadmin.

“Computers should not stop working when the users’ brain does.”

-------------- next part --------------
A non-text attachment was scrubbed…
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2434 bytes
Desc: not available
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20070108/25093596/attachment.bin