forked from jckarter/hello-gl-ch3
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME.SDL
20 lines (15 loc) · 819 Bytes
/
README.SDL
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
This is a SDL port, made by Daniel Skates, of chapter 3 from Joe Groff's OpenGL tutorial:
http://duriansoftware.com/joe/An-intro-to-modern-OpenGL.-Chapter-3:-3D-transformation-and-projection.html
SDL is a cross platform, multimedia, low level library (see http://www.libsdl.org for more information).
sdl.c contains the bulk of the interactions with SDL.
Download from the LibSDL website the following:
SDL-devel-1.2.14-mingw32.tar.gz (Mingw32)
Then add to your include directories:
SDL-devel-1.2.14-mingw32/SDL-1.2.14/include
And link with:
glew32s.lib
libopengl32.a
libmingw32.a
SDL-devel-1.2.14-mingw32/SDL-1.2.14/lib/libSDLmain.a
SDL-devel-1.2.14-mingw32/SDL-1.2.14/lib/libSDL.dll.a
A limitation of this is that you have to statically link glew, and use the glewIsSupported method instead.