#include <OgreILUtil.h>
Classes | |
struct | ILFormat |
Structure that encapsulates a devIL image format definition. More... | |
Static Public Member Functions | |
static PixelFormat | ilFormat2OgreFormat (int ImageFormat, int ImageType) |
Get OGRE format to which a given IL format can be most optimally converted. | |
static ILFormat | OgreFormat2ilFormat (PixelFormat format) |
Get IL format that matches a given OGRE format exactly in memory. | |
static void | toOgre (const PixelBox &dst) |
Convert current IL image to an OGRE format. | |
static void | fromOgre (const PixelBox &src) |
Convert an OGRE format image to current IL image. |
Definition at line 40 of file OgreILUtil.h.
static void Ogre::ILUtil::fromOgre | ( | const PixelBox & | src | ) | [static] |
Convert an OGRE format image to current IL image.
src | Pixelbox; encapsulates source pointer, width, height, depth and format |
static PixelFormat Ogre::ILUtil::ilFormat2OgreFormat | ( | int | ImageFormat, |
int | ImageType | ||
) | [static] |
Get OGRE format to which a given IL format can be most optimally converted.
static ILFormat Ogre::ILUtil::OgreFormat2ilFormat | ( | PixelFormat | format | ) | [static] |
Get IL format that matches a given OGRE format exactly in memory.
static void Ogre::ILUtil::toOgre | ( | const PixelBox & | dst | ) | [static] |
Convert current IL image to an OGRE format.
The size of the target will be PixelUtil::getNumElemBytes(fmt) * ilGetInteger( IL_IMAGE_WIDTH ) * ilGetInteger( IL_IMAGE_HEIGHT ) * ilGetInteger( IL_IMAGE_DEPTH ) The IL image type must be IL(_UNSIGNED_)BYTE or IL_FLOAT. The IL image format must be IL_RGBA, IL_BGRA, IL_RGB, IL_BGR, IL_LUMINANCE or IL_LUMINANCE_ALPHA
tar | Target pointer |
ogrefmt | Ogre pixel format to employ |
Copyright © 2008 Torus Knot Software Ltd
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.
Last modified Sat Jan 14 2012 18:40:48