Convert a box of pixel from one type to another. More...
#include <OgrePixelConversions.h>
Static Public Member Functions | |
static void | conversion (const Ogre::PixelBox &src, const Ogre::PixelBox &dst) |
Static Public Attributes | |
static const int | ID = U::ID |
Convert a box of pixel from one type to another.
Who needs automatic code generation when we have C++ templates and the policy design pattern.
U | Policy class to facilitate pixel-to-pixel conversion. This class has at least two typedefs: SrcType and DstType. SrcType is the source element type, dstType is the destination element type. It also has a static method, pixelConvert, that converts a srcType into a dstType. |
Definition at line 51 of file OgrePixelConversions.h.
static void PixelBoxConverter< U >::conversion | ( | const Ogre::PixelBox & | src, | |
const Ogre::PixelBox & | dst | |||
) | [static] |
Definition at line 54 of file OgrePixelConversions.h.
References Ogre::Box::back, Ogre::Box::bottom, Ogre::PixelBox::data, Ogre::Box::front, Ogre::PixelBox::getSliceSkip(), Ogre::Box::left, Ogre::Box::right, Ogre::PixelBox::rowPitch, Ogre::PixelBox::slicePitch, and Ogre::Box::top.
const int PixelBoxConverter< U >::ID = U::ID [static] |
Definition at line 53 of file OgrePixelConversions.h.
Copyright © 2012 Torus Knot Software Ltd
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.
Last modified Fri May 25 23:36:35 2012