PDA

View Full Version : Opengl 3.2 core profile on MVC++ 2008



nashouston
03-18-2010, 02:15 AM
Hello Everybody
I want to create an opengl 3.2 context core profile only but I didn't. I use SDL 1.3
This is my steps :

1- Download gl3.h on Opengl.org/registry

2- Download the latest version of glew (1.5.3) for using the libs only

3- Compile my project with gl3.h only and link it with glew32.lib
,glew32s.lib and opengl32.lib

First time I didn't link because the declared functions in gl3.h didn't match with those in glew32.lib.
Then I add some lines in gl3.h.
Now I link successfully but my SDL window crash....I do anything to get it work without success.....
If somebody know how to get it work please help me.....
Thanks

nashouston
03-18-2010, 06:56 AM
I think that the Opengl community is very interdependent but.....
still no answer....

ZbuffeR
03-18-2010, 07:06 AM
Come on, how impatient you are.

Did you read and follow this :
OpenGL official wiki (http://www.opengl.org/wiki/Tutorial1:_Creating_a_Cross_Platform_OpenGL_3.2_Co ntext_in_SDL_%28C_/_SDL%29)

Run it with the debugger, to pinpoint the exact place of the crash.

How is your code ?

nashouston
03-18-2010, 07:29 AM
my code is the same you mentionned above...
I'm using it to test opengl 3.2 and create an opengl 3.2 core profile.
I'm not at home so I can't run it now...I will do it later..
Do you try to run this code too ??

V-man
03-26-2010, 06:48 AM
You should only link with glew32.lib which contains the link definition so your program will also need glew32.dll
glew32s.lib is for static linking.
Link with one or the other. Not both!

Also, whoever wrote that tutorial should integrate GLEW into it.

Even this one doesn't use GLEW
http://www.opengl.org/wiki/Tutorial:_OpenGL_3.0_Context_Creation_%28GLX%29

This one does use it
http://www.opengl.org/wiki/Tutorial:_OpenGL_3.1_The_First_Triangle_%28C%2B%2B/Win%29