root/tags/Release_0_1/DerelictGLU/README

Revision 23, 2.2 kB (checked in by aldacron, 5 years ago)

* added GLee.lib
* corrected some errors in the GLU/SDL READMEs

Line 
1 ================================================================================
2 DerelictGLU
3 ================================================================================
4 DerelictGLU is a D package which allows you to use glu in your D programs
5 without the need to link to an import library. This gives you control over how
6 to handle the case where the glu shared library is not available on the
7 user's machine.
8
9 Please note that the Linux version is not yet implemented. Anyone who would like
10 to do so please let me know in the forum!
11
12 --------------------------------------------------------------------------------
13 USING
14 --------------------------------------------------------------------------------
15 You can use DerelictGLU in your project by first adding the Derelict source path
16 to your compile command line with the -I switch (-I<derelict_dir>/DerelictGLU) and
17 either by adding all the source/obj files to your makefile, or by building and
18 linking with derelictGLU.lib (see the section entitled 'BUILDING' below for build
19 instructions).
20
21 In your code, you need to import the derelict.glu.glu module.
22
23 ++++++++++++++++++++++++++   CODE  +++++++++++++++++++++++++++++++++++++++++++++
24
25 import derelict.glu.glu;
26
27 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
28
29 During initialization of your application, you need to make a call to
30 dgluLoad. This will load the shared library.
31
32 ++++++++++++++++++++++++++   CODE  +++++++++++++++++++++++++++++++++++++++++++++
33
34 // load the shared library
35 dgluLoad();
36
37 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
38
39 From that point you can call glu functions as normal.
40
41
42 --------------------------------------------------------------------------------
43 BUILDING
44 --------------------------------------------------------------------------------
45
46 To build DerelictGLU on Windows:
47
48 1) ensure that both dmd\bin and dm\bin are on your path
49 2) from a command prompt, cd to <derelict_dir>\src\derelict\glu
50 3) type 'make' or 'make lib' to build derelictGLU.lib   
51 4) optionally type 'make clean' to delete all object files OR
52    optionally type 'make cleanall' to delete all object, lib and bak files
Note: See TracBrowser for help on using the browser.