DevIL Documentation Home | Previous | Next

ilRegisterType

The ilRegisterType function registers the current image's datatype.


ILvoid ilRegisterType(
  ILenum Type
);

Parameters

Type
The datatype that the registered image uses. Accepted values are:
IL_BYTE
IL_UNSIGNED_BYTE
IL_SHORT
IL_UNSIGNED_SHORT
IL_INT
IL_UNSIGNED_INT
IL_FLOAT

Remarks

ilRegisterType tells OpenIL what datatype the current registered image uses. This function is to be used from within functions that have been registered via ilRegisterLoad.

Error Codes

None

See Also

ilRegisterLoad, ilRegisterFormat, ilRegisterOrigin, ilRegisterPal