DerelictILUT



Introduction

DerelictILUT is a D binding to the ILUT library, part of the DevIL project.

Using

  1. Always make sure the DerelictILUT source modules are available on your import path.
  2. In modules that make use of DerelictILUT, you will need to import the derelict.ilut.ilut module.
  3. Before calling any ILUT functions, you need to make a call to DerelictILUT.load(). This will load the shared library.

The following is a complete program that loads DerelictILUT:

import derelict.ilut.ilut;

void main()
{
	DerelictILUT.load();
	
	// now you can call ILUT functions
}

From this point on, you may call ILUT functions as normal.

As with other Derelict packages, DerelictILUT will throw an exception if an error occurs while loading the shared library. For more information on Derelict exceptions, see the documentation for Loading/Unloading Shared Libraries.

Finally, the method DerelictILUT_Unload() is provided for convenience. In normal practice you do not need to call this function, as Derelict will unload the library automatically when the app exits. You generally should only use this function if you need to unload DerelictILUT while the application is running.

Dependencies

DerelictUtil
DerelictIL
DerelictGL