kolrabi's another Image Library  1.11.0
 All Files Functions Groups Pages
DirectX 9 Functionality

Contains all functions to convert/copy image data from the IL to Direct3D 9 textures and back. More...

Functions

ILboolean ILAPIENTRY ilutD3D9CubeTexFromFile (IDirect3DDevice9 *Device, ILconst_string FileName, IDirect3DCubeTexture9 **Texture)
 Load a cube texture image from a file and store it in Texture. More...
 
ILboolean ILAPIENTRY ilutD3D9CubeTexFromFileHandle (IDirect3DDevice9 *Device, ILHANDLE File, IDirect3DCubeTexture9 **Texture)
 Load cube texture from an opened file and store it in Texture. More...
 
ILboolean ILAPIENTRY ilutD3D9CubeTexFromFileInMemory (IDirect3DDevice9 *Device, void *Lump, ILuint Size, IDirect3DCubeTexture9 **Texture)
 Load a cube texture image from a file in memory and store it in Texture. More...
 
ILboolean ILAPIENTRY ilutD3D9CubeTexFromResource (IDirect3DDevice9 *Device, HMODULE SrcModule, ILconst_string SrcResource, IDirect3DCubeTexture9 **Texture)
 Load an cube map from a resource and store it in Texture. More...
 
IDirect3DCubeTexture9 *ILAPIENTRY ilutD3D9CubeTexture (IDirect3DDevice9 *Device)
 Convert the currently bound image into a IDirect3DCubeTexture9. More...
 
ILAPI ILboolean ILAPIENTRY ilutD3D9LoadSurface (IDirect3DDevice9 *Device, IDirect3DSurface9 *Surface)
 Copy a given Surface into the currently bound image. More...
 
ILboolean ILAPIENTRY ilutD3D9TexFromFile (IDirect3DDevice9 *Device, ILconst_string FileName, IDirect3DTexture9 **Texture)
 Load an image from a file and store it in Texture. More...
 
ILboolean ILAPIENTRY ilutD3D9TexFromFileHandle (IDirect3DDevice9 *Device, ILHANDLE File, IDirect3DTexture9 **Texture)
 Load an image from an opened file and store it in Texture. More...
 
ILboolean ILAPIENTRY ilutD3D9TexFromFileInMemory (IDirect3DDevice9 *Device, void *Lump, ILuint Size, IDirect3DTexture9 **Texture)
 Load an image from memory and store it in Texture. More...
 
ILboolean ILAPIENTRY ilutD3D9TexFromResource (IDirect3DDevice9 *Device, HMODULE SrcModule, ILconst_string SrcResource, IDirect3DTexture9 **Texture)
 Load an image from a resource and store it in Texture. More...
 
IDirect3DTexture9 *ILAPIENTRY ilutD3D9Texture (IDirect3DDevice9 *Device)
 Convert the currently bound image into a IDirect3DTexture9. More...
 
ILboolean ILAPIENTRY ilutD3D9VolTexFromFile (IDirect3DDevice9 *Device, ILconst_string FileName, IDirect3DVolumeTexture9 **Texture)
 Load a volume texture from a file and store it in Texture. More...
 
ILboolean ILAPIENTRY ilutD3D9VolTexFromFileHandle (IDirect3DDevice9 *Device, ILHANDLE File, IDirect3DVolumeTexture9 **Texture)
 Load volume texture from an opened file and store it in Texture. More...
 
ILboolean ILAPIENTRY ilutD3D9VolTexFromFileInMemory (IDirect3DDevice9 *Device, void *Lump, ILuint Size, IDirect3DVolumeTexture9 **Texture)
 Load volume texture from file in memory and store it in Texture. More...
 
ILboolean ILAPIENTRY ilutD3D9VolTexFromResource (IDirect3DDevice9 *Device, HMODULE SrcModule, ILconst_string SrcResource, IDirect3DVolumeTexture9 **Texture)
 Load volume texture from a resource and store it in Texture. More...
 
IDirect3DVolumeTexture9 *ILAPIENTRY ilutD3D9VolumeTexture (IDirect3DDevice9 *Device)
 Convert the currently bound image into a IDirect3DVolumeTexture9. More...
 

Detailed Description

Contains all functions to convert/copy image data from the IL to Direct3D 9 textures and back.

Function Documentation

ILboolean ILAPIENTRY ilutD3D9CubeTexFromFile ( IDirect3DDevice9 *  Device,
ILconst_string  FileName,
IDirect3DCubeTexture9 **  Texture 
)

Load a cube texture image from a file and store it in Texture.

Parameters
DeviceDirect3D device to use
FileNameName of image file to load
Texturewhere to store the pointer to the Direct3D texture
Return values
IL_TRUEif successful
IL_FALSEif there was an error
ILboolean ILAPIENTRY ilutD3D9CubeTexFromFileHandle ( IDirect3DDevice9 *  Device,
ILHANDLE  File,
IDirect3DCubeTexture9 **  Texture 
)

Load cube texture from an opened file and store it in Texture.

Parameters
DeviceDirect3D device to use
FileHandle of open file to use. Must be compatible with currently active image IO routines, see ilSetRead.
TextureWhere to store the pointer to the loaded Direct3D texture
Return values
IL_TRUEif successful
IL_FALSEif there was an error
ILboolean ILAPIENTRY ilutD3D9CubeTexFromFileInMemory ( IDirect3DDevice9 *  Device,
void *  Lump,
ILuint  Size,
IDirect3DCubeTexture9 **  Texture 
)

Load a cube texture image from a file in memory and store it in Texture.

Parameters
DeviceDirect3D device to use
LumpPointer to image file in memory
SizeSize of image file in memory in bytes
Texturewhere to store the pointer to the Direct3D texture
Return values
IL_TRUEif successful
IL_FALSEif there was an error
ILboolean ILAPIENTRY ilutD3D9CubeTexFromResource ( IDirect3DDevice9 *  Device,
HMODULE  SrcModule,
ILconst_string  SrcResource,
IDirect3DCubeTexture9 **  Texture 
)

Load an cube map from a resource and store it in Texture.

Parameters
DeviceDirect3D device to use
SrcModuleLoaded module that contains the resource to load.
SrcResourceName of the resource to load.
TextureWhere to store the pointer to the loaded Direct3D texture
Return values
IL_TRUEif successful
IL_FALSEif there was an error
IDirect3DCubeTexture9* ILAPIENTRY ilutD3D9CubeTexture ( IDirect3DDevice9 *  Device)

Convert the currently bound image into a IDirect3DCubeTexture9.

Parameters
DeviceDirect3D device to use
Returns
A newly allocated Direct3D texture containing the image if succesful or NULL if there was an error.
ILAPI ILboolean ILAPIENTRY ilutD3D9LoadSurface ( IDirect3DDevice9 *  Device,
IDirect3DSurface9 *  Surface 
)

Copy a given Surface into the currently bound image.

Parameters
DeviceDirect3D device to use
SurfaceSurface to copy image frome
Return values
IL_TRUEif successful
IL_FALSEif there was an error
ILboolean ILAPIENTRY ilutD3D9TexFromFile ( IDirect3DDevice9 *  Device,
ILconst_string  FileName,
IDirect3DTexture9 **  Texture 
)

Load an image from a file and store it in Texture.

Parameters
DeviceDirect3D device to use
FileNameName of file to load
TextureWhere to store the pointer to the loaded texture.
Return values
IL_FALSEif there was an error.
IL_TRUEif successful.
ILboolean ILAPIENTRY ilutD3D9TexFromFileHandle ( IDirect3DDevice9 *  Device,
ILHANDLE  File,
IDirect3DTexture9 **  Texture 
)

Load an image from an opened file and store it in Texture.

Parameters
DeviceDirect3D device to use
FileHandle of open file to use. Must be compatible with currently active image IO routines, see ilSetRead.
TextureWhere to store the pointer to the loaded Direct3D texture
Return values
IL_TRUEif successful
IL_FALSEif there was an error
ILboolean ILAPIENTRY ilutD3D9TexFromFileInMemory ( IDirect3DDevice9 *  Device,
void *  Lump,
ILuint  Size,
IDirect3DTexture9 **  Texture 
)

Load an image from memory and store it in Texture.

Parameters
DeviceDirect3D device to use
LumpPointer to image file in memory
SizeSize of image file in memory in bytes
Texturewhere to store the pointer to the Direct3D texture
Return values
IL_TRUEif successful
IL_FALSEif there was an error
ILboolean ILAPIENTRY ilutD3D9TexFromResource ( IDirect3DDevice9 *  Device,
HMODULE  SrcModule,
ILconst_string  SrcResource,
IDirect3DTexture9 **  Texture 
)

Load an image from a resource and store it in Texture.

Parameters
DeviceDirect3D device to use
SrcModuleLoaded module that contains the resource to load.
SrcResourceName of the resource to load.
TextureWhere to store the pointer to the loaded Direct3D texture
Return values
IL_TRUEif successful
IL_FALSEif there was an error
IDirect3DTexture9* ILAPIENTRY ilutD3D9Texture ( IDirect3DDevice9 *  Device)

Convert the currently bound image into a IDirect3DTexture9.

Parameters
DeviceDirect3D device to use
Returns
A newly allocated Direct3D texture containing the image if succesful or NULL if there was an error.
ILboolean ILAPIENTRY ilutD3D9VolTexFromFile ( IDirect3DDevice9 *  Device,
ILconst_string  FileName,
IDirect3DVolumeTexture9 **  Texture 
)

Load a volume texture from a file and store it in Texture.

Parameters
DeviceDirect3D device to use
FileNameName of file to load
TextureWhere to store the pointer to the loaded texture.
Return values
IL_FALSEif there was an error.
IL_TRUEif successful.
ILboolean ILAPIENTRY ilutD3D9VolTexFromFileHandle ( IDirect3DDevice9 *  Device,
ILHANDLE  File,
IDirect3DVolumeTexture9 **  Texture 
)

Load volume texture from an opened file and store it in Texture.

Parameters
DeviceDirect3D device to use
FileHandle of open file to use. Must be compatible with currently active image IO routines, see ilSetRead.
TextureWhere to store the pointer to the loaded Direct3D texture
Return values
IL_TRUEif successful
IL_FALSEif there was an error
ILboolean ILAPIENTRY ilutD3D9VolTexFromFileInMemory ( IDirect3DDevice9 *  Device,
void *  Lump,
ILuint  Size,
IDirect3DVolumeTexture9 **  Texture 
)

Load volume texture from file in memory and store it in Texture.

Parameters
DeviceDirect3D device to use
LumpPointer to image file in memory
SizeSize of image file in memory in bytes
Texturewhere to store the pointer to the Direct3D texture
Return values
IL_TRUEif successful
IL_FALSEif there was an error
ILboolean ILAPIENTRY ilutD3D9VolTexFromResource ( IDirect3DDevice9 *  Device,
HMODULE  SrcModule,
ILconst_string  SrcResource,
IDirect3DVolumeTexture9 **  Texture 
)

Load volume texture from a resource and store it in Texture.

Parameters
DeviceDirect3D device to use
SrcModuleLoaded module that contains the resource to load.
SrcResourceName of the resource to load.
TextureWhere to store the pointer to the loaded Direct3D texture
Return values
IL_TRUEif successful
IL_FALSEif there was an error
IDirect3DVolumeTexture9* ILAPIENTRY ilutD3D9VolumeTexture ( IDirect3DDevice9 *  Device)

Convert the currently bound image into a IDirect3DVolumeTexture9.

Parameters
DeviceDirect3D device to use
Returns
A newly allocated Direct3D texture containing the image if succesful or NULL if there was an error.