-
Notifications
You must be signed in to change notification settings - Fork 3
/
README
executable file
·75 lines (74 loc) · 5.85 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
================================================================================
= COMPUTER GRAPHICS EXPLAINED =
================================================================================
= WEBPAGE: http://codrspace.com/madsy/ =
================================================================================
= LICENCE: BSD Clause-3 =
================================================================================
= AUTHOR : Mads Andreas Elvheim, Alias 'Madsy'/'Madsy9' =
================================================================================
= ABOUT: This is the source code examples for a series of articles I've =
= written about 2D/3D computer graphics theory. It's meant as a =
= starting point for people who want to know more about computer-=
= graphics, and what happens under the hood of OpenGL and DirectX=
= The future example for my "OpenGL Explained" will be found und-=
= er a second repo. =
================================================================================
= HOW TO BUILD: I've tried to make the build-process as idiot-proof as =
= possible. You will need CMake installed, libPNG 1.2 =
= and the SDL 1.2 library. =
= =
= ON WINDOWS: You will need either Visual Studio installed, =
= or MinGW with MSYS. =
= If you want to compile with Visual Studio's nmake, go to =
= the start menu and find the shortcut to the Visual Studio =
= XXXX Command prompt. It sets the needed environment vari- =
= ables for you. Enter the git directory and do: =
= =
= mkdir myBuild =
= cd myBuild =
= cmake .. =
= nmake =
= =
= If you want to use MinGW/MSYS, then make sure your git =
= repo is available under the MSYS root system. For example =
= in the home directory. Go into the git root directory and =
= type: =
= =
= mkdir myBuild =
= cd myBuild =
= cmake -G "MSYS Makefiles" .. =
= mingw32-make =
= =
= The dots '..' is a part of the command. =
= The -G flag chooses a generator for outputting MinGW =
= Makefiles. =
= =
= ON LINUX : It should work with just like the others: =
= =
= mkdir myBuild =
= cd myBuild =
= cmake .. =
= make =
= =
= ON OSX/MAC: I have no idea. I have no ways to test my build nor my =
= code for OSX. If you want to contribute, feel free. Send =
= me a patch for any files, including the CmakeLists.txt =
= build file if you bother. =
= =
= CROSS-COMPILING: As in doing a cross for another platform/arch than the =
= host. I haven't tried this yet, and the CMakeLists.txt =
= isn't made for this in mind. You can try however. =
= The include and lib paths for SDL can be set explicitly =
= with SDL_INCLUDE_DIR and SDL_LIBRARY =
================================================================================
= CONTACT : If you have any trouble with the code, I'm on the following =
= IRC channels on FreeNode: =
= - ##OpenGL =
= - #algorithms =
= - #stackoverflow =
= =
= Youtube channel: madsy9 =
= Skype : madsy9 =
= Steam : madsy =
================================================================================