Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

Ogre::ILUtil Class Reference

#include <OgreILUtil.h>

List of all members.

Static Public Member Functions

PixelFormat ilFormat2OgreFormat (int ImageFormat, int ImageType)
 Get OGRE format to which a given IL format can be most optimally converted.

ILFormat OgreFormat2ilFormat (PixelFormat format)
 Get IL format that matches a given OGRE format exactly in memory.

void toOgre (const PixelBox &dst)
 Convert current IL image to an OGRE format.

void fromOgre (const PixelBox &src)
 Convert an OGRE format image to current IL image.


Member Function Documentation

void Ogre::ILUtil::fromOgre const PixelBox src  )  [static]
 

Convert an OGRE format image to current IL image.

Parameters:
src Pixelbox; encapsulates source pointer, width, height, depth and format

PixelFormat Ogre::ILUtil::ilFormat2OgreFormat int  ImageFormat,
int  ImageType
[static]
 

Get OGRE format to which a given IL format can be most optimally converted.

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.

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:
tar Target pointer
ogrefmt Ogre pixel format to employ


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

Copyright © 2000-2005 by The OGRE Team
Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 2.5 License.
Last modified Sun Mar 12 14:39:22 2006