root/trunk/docs/il.html

Revision 149, 1.6 kB (checked in by aldacron, 2 years ago)

* integrated h3r3tic's new loader interface
* added DerelictOGG and DerelictVorbis?
* added JoeCoder?'s style sheet for the docs
* updated, corrected, and rewrote large portions of the documentation
* added two placeholder doc pages - terms.html and derelictify.html
* added JoeCoder?'s Linux bug fixes to buildme.d
* removed example.d from all package directories
* added JoeCoder?'s vorbisfile_example.d to /examples

  • Property svn:mime-type set to text/html
  • Property svn:mim-type set to text/html
Line 
1 <html lang="en">
2 <head>
3     <title>DerelictIL</title>
4     <link rel="stylesheet" type="text/css" href="styles.css">
5 </head>
6 <body>
7 <hr>
8 <hr>
9 <h2 align="center">DerelictIL</h2>
10 <hr>
11 <hr>
12 <h3>Introduction</h3>
13 DerelictIL is a D binding to the <a href="http://openil.sourceforge.net/">DevIL</a>
14 library.
15
16 <h3>Using</h3>
17 <ol>
18 <li>Always make sure the DerelictIL source modules are available on your import
19 path.</li>
20 <li>In modules that make use of DerelictIL, you will need to import the derelict.devil.il
21 module.</li>
22 <li>Before calling any DevIL functions, you need to make a call to <tt>DerelictIL.load()</tt>.
23 This will load the shared library.</li>
24 </ol>
25
26 <p>
27 The following is a complete program that loads DerelictIL:
28 </p>
29
30 <pre>
31 import derelict.devil.il;
32
33 void main()
34 {
35     DerelictIL.load();
36    
37     // now you can call DevIL functions
38 }
39 </pre>
40
41 <p>
42 From this point on, you may call DevIL functions as normal.
43 </p>
44
45 <p>
46 As with other Derelict packages, DerelictIL will throw an exception if an error
47 occurs while loading the shared library. For more information on Derelict
48 exceptions, see the documentation for
49 <a href="loading.html">Loading/Unloading Shared Libraries</a>.</p>
50
51 <p>
52 Finally, the method <tt>DerelictIL.unload()</tt> is provided for convenience. In normal
53 practice you do not need to call this function, as Derelict will unload the library
54 automatically when the app exits. You generally should only use this function if
55 you need to unload DerelictIL while the application is running.
56 </p>
57
58 <h3>Dependencies</h3>
59 <a href="util.html">DerelictUtil</a>
60
61 </body>
62 </html>
Note: See TracBrowser for help on using the browser.