Changeset 103
- Timestamp:
- 04/17/05 11:48:06 (4 years ago)
- Files:
-
- trunk/DerelictAL/README (modified) (2 diffs)
- trunk/DerelictGL/README (modified) (2 diffs)
- trunk/DerelictGLU/README (modified) (2 diffs)
- trunk/DerelictSDL/README (modified) (1 diff)
- trunk/docs/al.html (added)
- trunk/docs/gl.html (added)
- trunk/docs/index.html (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/DerelictAL/README
r74 r103 1 ================================================================================2 DerelictAL3 ================================================================================4 DerelictAL is a D package which allows you to use OpenAL in your D programs5 without the need to link to an import library. This gives you control over how6 to handle the case where the OpenAL shared library is not available on the7 user's machine.8 9 It should be noted that some functions have been omitted from the DerlictAL10 binding. This was done either because they are marked as unused or are marked to11 be removed in the future. Also, no bindings for the alut* were included at this12 time. The alu* functions are included, but they are only compiled into the13 Windows version of the OpenAL so will not be available on other platforms when14 DerelictAL is ported (unless newer versions of OpenAL are released which include15 said functions).16 17 Please note that the Linux version is not yet implemented. Anyone who would like18 to do so please let me know in the forum!19 20 --------------------------------------------------------------------------------21 USING22 --------------------------------------------------------------------------------23 You can use DerelictAL in your project by first adding the Derelict source path24 to your compile command line with the -I switch (-I<derelict_dir>/DerelictAL) and25 either by adding all the source/obj files to your makefile, or by building and26 linking with DerelictAL.lib (see the section entitled 'BUILDING' below for build27 instructions).28 29 In your code, you need to import the derelict.openal.al module.30 31 ++++++++++++++++++++++++++ CODE +++++++++++++++++++++++++++++++++++++++++++++32 33 import derelict.openal.al;34 35 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++36 37 Before calling any OpenAL functions, you need to make a call to DerelictAL_Load.38 This will load the shared library.39 40 ++++++++++++++++++++++++++ CODE +++++++++++++++++++++++++++++++++++++++++++++41 42 // load the shared library and all standard OpenAL functions via DerelictAL43 DerelictAL_Load();44 45 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++46 47 Because not all applications may wish to use the alu* functions, the loading48 of these functions has been separated from the rest of the OpenAL functions. This49 is so that DerelictAL_Load will not fail if any alu* functions are missing when50 you don't need them anyway. As such, you must make a call to DerelictAL_LoadALU51 in order to load the alu* functions.52 53 NOTE: This is available on Windows only until the alu* functions are implemented54 on other platforms by the OpenAL folks.55 56 ++++++++++++++++++++++++++ CODE +++++++++++++++++++++++++++++++++++++++++++++57 58 // load the alu functions via DerelictAL_LoadALU59 DerelictAL_LoadALU();60 61 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++62 63 1 -------------------------------------------------------------------------------- 64 2 BUILDING 65 3 -------------------------------------------------------------------------------- 66 4 5 -------------------------------------------------------------------------------- 67 6 To build DerelictAL on Windows: 68 7 … … 72 11 4) optionally type 'make clean' to delete all object files OR 73 12 optionally type 'make cleanall' to delete all object and lib files 13 14 -------------------------------------------------------------------------------- 15 To build DerelictAL on Linux: 16 17 1) ensure that both dmd and gcc are on your path 18 2) from a command prompt, cd to <derelict_dir>/DerelictAL 19 3) type 'make -fMakefule.linux' or 'make -fMakefule.linux all' to build libderelictAL.a 20 4) optionally type 'make -fMakefule.linux clean' to delete all object files OR 21 optionally type 'make -fMakefule.linux cleanall' to delete all object and lib files 22 23 -------------------------------------------------------------------------------- 24 USING 25 -------------------------------------------------------------------------------- 26 To learn how to use DerelictAL, please see the documentaion in derelict/docs/al.html. trunk/DerelictGL/README
r74 r103 1 ================================================================================2 DerelictGL3 ================================================================================4 DerelictGL is a D package which allows you to use OpenGL in your D programs5 without the need to link to an import library. This gives you control over how6 to handle the case where the OpenGL shared library is not available on the7 user's machine.8 9 Please note that the Linux version is not yet implemented. Anyone who would like10 to do so please let me know in the forum!11 12 --------------------------------------------------------------------------------13 USING14 --------------------------------------------------------------------------------15 You can use DerelictGL in your project by first adding the Derelict source path16 to your compile command line with the -I switch (-I<derelict_dir>/DerelictGL) and17 either by adding all the source/obj files to your makefile, or by building and18 linking with derelictGL.lib (see the section entitled 'BUILDING' below for build19 instructions).20 21 In your code, you need to import the derelict.opengl.gl module.22 23 ++++++++++++++++++++++++++ CODE +++++++++++++++++++++++++++++++++++++++++++++24 25 import derelict.opengl.gl; // core GL 1.1 functions26 27 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++28 29 Before calling any OpenGL functions, you need to make a call to DerelictGL_Load.30 This will load the shared library, platform-specific core gl functions31 (such as the wgl* functions on Windows), and all core GL 1.1 functions. If32 you only require OpenGL 1.1, then you are finished initializing DerelictGL and33 can go on about your business.34 35 36 ++++++++++++++++++++++++++ CODE +++++++++++++++++++++++++++++++++++++++++++++37 38 // load the shared library and Core 1.1 functions via DerelictGL39 DerelictGL_Load();40 41 // app-specific code to init an OpenGL context goes here42 ...43 44 45 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++46 47 48 1 -------------------------------------------------------------------------------- 49 2 BUILDING 50 3 -------------------------------------------------------------------------------- 51 4 5 -------------------------------------------------------------------------------- 52 6 To build DerelictGL on Windows: 53 7 … … 57 11 4) optionally type 'make clean' to delete all object files OR 58 12 optionally type 'make cleanall' to delete all object and lib files 13 14 -------------------------------------------------------------------------------- 15 To build DerelictGL on Linux: 59 16 17 1) ensure that both dmd and gcc are on your path 18 2) from a command prompt, cd to <derelict_dir>/DerelictFL 19 3) type 'make -fMakefule.linux' or 'make -fMakefule.linux all' to build libderelictGL.a 20 4) optionally type 'make -fMakefule.linux clean' to delete all object files OR 21 optionally type 'make -fMakefule.linux cleanall' to delete all object and lib files 22 23 -------------------------------------------------------------------------------- 24 USING 25 -------------------------------------------------------------------------------- 26 To learn how to use DerelictGL, please see the documentaion in derelict/docs/gl.html. trunk/DerelictGLU/README
r74 r103 51 51 -------------------------------------------------------------------------------- 52 52 53 -------------------------------------------------------------------------------- 53 54 To build DerelictGLU on Windows: 54 55 … … 58 59 4) optionally type 'make clean' to delete all object files OR 59 60 optionally type 'make cleanall' to delete all object, and lib files 61 62 -------------------------------------------------------------------------------- 63 To build DerelictGLU on Linux: 64 65 1) ensure that both dmd and gcc are on your path 66 2) from a command prompt, cd to <derelict_dir>/DerelictGLU 67 3) type 'make -fMakefule.linux' or 'make -fMakefule.linux all' to build libderelictGLU.a 68 4) optionally type 'make -fMakefule.linux clean' to delete all object files OR 69 optionally type 'make -fMakefule.linux cleanall' to delete all object and lib files trunk/DerelictSDL/README
r72 r103 66 66 optionally type 'make cleanall' to delete all object and lib files 67 67 68 --------------------------------------------------------------------------------68 -------------------------------------------------------------------------------- 69 69 To build DerelictSDL on Linux: 70 70 trunk/docs/index.html
r102 r103 93 93 <h3>Package Documentation</h3> 94 94 <ul> 95 <li> DerelictAL</li>96 <li> DerelictGL</li>95 <li><a href="al.html">DerelictAL</a></li> 96 <li><a href="gl.html">DerelictGL</a></li> 97 97 <li>DerelictGLFW</li> 98 98 <li>DerelictGLU</li>
