OpenGL: Difference between revisions
Jump to navigation
Jump to search
Levidsmith (talk | contribs) (Created page with 'I am attempting to integrate OpenGL into the code, so that the game uses hardware graphics acceleration. Hopefully, this will improve some of the framerate issues. I can compil…') |
Levidsmith (talk | contribs) No edit summary |
||
Line 6: | Line 6: | ||
http://www.libsdl.org/extras/win32/cygwin/ | http://www.libsdl.org/extras/win32/cygwin/ | ||
Found out that I was using the wrong parameters to compile. I should have been using this: | |||
gcc test.c `sdl-config --libs --cflags` -lglut32 -lglu32 -lopengl32 | |||
I got a simple square to display in OpenGL: |
Revision as of 21:28, 7 February 2010
I am attempting to integrate OpenGL into the code, so that the game uses hardware graphics acceleration. Hopefully, this will improve some of the framerate issues.
I can compile a program using #include "SDL_opengl.h", but I am getting errors about missing functions when an OpenGL method is called.
Installing these files may help
http://www.libsdl.org/extras/win32/cygwin/
Found out that I was using the wrong parameters to compile. I should have been using this:
gcc test.c `sdl-config --libs --cflags` -lglut32 -lglu32 -lopengl32
I got a simple square to display in OpenGL: