OGRE  1.7
Object-Oriented Graphics Rendering Engine
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Ogre::ILUtil Class Reference

#include <OgreILUtil.h>

Classes

struct  ILFormat
 Structure that encapsulates a devIL image format definition. More...
 

Static Public Member Functions

static void fromOgre (const PixelBox &src)
 Convert an OGRE format image to current IL image. More...
 
static PixelFormat ilFormat2OgreFormat (int ImageFormat, int ImageType)
 Get OGRE format to which a given IL format can be most optimally converted. More...
 
static ILFormat OgreFormat2ilFormat (PixelFormat format)
 Get IL format that matches a given OGRE format exactly in memory. More...
 
static void toOgre (const PixelBox &dst)
 Convert current IL image to an OGRE format. More...
 

Detailed Description

Definition at line 40 of file OgreILUtil.h.

Member Function Documentation

static void Ogre::ILUtil::fromOgre ( const PixelBox src)
static

Convert an OGRE format image to current IL image.

Parameters
srcPixelbox; 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.

Remarks
Returns an invalid ILFormat (.isValid()==false) when there is no IL format that matches this.
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

Parameters
tarTarget pointer
ogrefmtOgre pixel format to employ

The documentation for this class was generated from the following file: