PixelBoxConverter< U > Struct Template Reference
[Image]

Convert a box of pixel from one type to another. More...

#include <OgrePixelConversions.h>

List of all members.

Static Public Member Functions

static void conversion (const Ogre::PixelBox &src, const Ogre::PixelBox &dst)

Static Public Attributes

static const int ID = U::ID

Detailed Description

template<class U>
struct PixelBoxConverter< U >

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.

Parameters:
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.


Member Function Documentation

template<class U >
static void PixelBoxConverter< U >::conversion ( const Ogre::PixelBox src,
const Ogre::PixelBox dst 
) [static]

Member Data Documentation

template<class U >
const int PixelBoxConverter< U >::ID = U::ID [static]

Definition at line 53 of file OgrePixelConversions.h.


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

Copyright © 2012 Torus Knot Software Ltd
Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.
Last modified Fri May 25 23:36:35 2012