| 1 |
<html lang="en"> |
|---|
| 2 |
<head> |
|---|
| 3 |
<title>DerelictILUT</title> |
|---|
| 4 |
<link rel="stylesheet" type="text/css" href="styles.css"> |
|---|
| 5 |
</head> |
|---|
| 6 |
<body> |
|---|
| 7 |
<hr> |
|---|
| 8 |
<hr> |
|---|
| 9 |
<h2 align="center">DerelictILUT</h2> |
|---|
| 10 |
<hr> |
|---|
| 11 |
<hr> |
|---|
| 12 |
<h3>Introduction</h3> |
|---|
| 13 |
DerelictILUT is a D binding to the <a href="http://openil.sourceforge.net/">ILUT</a> |
|---|
| 14 |
library, part of the DevIL project. |
|---|
| 15 |
|
|---|
| 16 |
<h3>Using</h3> |
|---|
| 17 |
<ol> |
|---|
| 18 |
<li>Always make sure the DerelictILUT source modules are available on your import |
|---|
| 19 |
path.</li> |
|---|
| 20 |
<li>In modules that make use of DerelictILUT, you will need to import the derelict.ilut.ilut |
|---|
| 21 |
module.</li> |
|---|
| 22 |
<li>Before calling any ILUT functions, you need to make a call to <tt>DerelictILUT.load()</tt>. |
|---|
| 23 |
This will load the shared library.</li> |
|---|
| 24 |
</ol> |
|---|
| 25 |
|
|---|
| 26 |
<p> |
|---|
| 27 |
The following is a complete program that loads DerelictILUT: |
|---|
| 28 |
</p> |
|---|
| 29 |
|
|---|
| 30 |
<pre> |
|---|
| 31 |
import derelict.ilut.ilut; |
|---|
| 32 |
|
|---|
| 33 |
void main() |
|---|
| 34 |
{ |
|---|
| 35 |
DerelictILUT.load(); |
|---|
| 36 |
|
|---|
| 37 |
// now you can call ILUT functions |
|---|
| 38 |
} |
|---|
| 39 |
</pre> |
|---|
| 40 |
|
|---|
| 41 |
<p> |
|---|
| 42 |
From this point on, you may call ILUT functions as normal. |
|---|
| 43 |
</p> |
|---|
| 44 |
|
|---|
| 45 |
<p> |
|---|
| 46 |
As with other Derelict packages, DerelictILUT 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>DerelictILUT_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 DerelictILUT while the application is running. |
|---|
| 56 |
|
|---|
| 57 |
<h3>Dependencies</h3> |
|---|
| 58 |
<a href="util.html">DerelictUtil</a> |
|---|
| 59 |
<br /><a href="il.html">DerelictIL</a> |
|---|
| 60 |
<br /><a href="gl.html">DerelictGL</a> |
|---|
| 61 |
|
|---|
| 62 |
|
|---|
| 63 |
</body> |
|---|
| 64 |
</html> |
|---|