Eidolon
Public Member Functions | Private Attributes | List of all members
OgreImage Class Reference

#include <OgreRenderTypes.h>

Inheritance diagram for OgreImage:
Inheritance graph
Collaboration diagram for OgreImage:
Collaboration graph

Public Member Functions

 OgreImage (const Ogre::Image &i)
 
virtual ~OgreImage ()
 
virtual TextureFormat getFormat () const
 Get the loaded data's format. More...
 
virtual sval getWidth () const
 Get the image width. More...
 
virtual sval getHeight () const
 Get the image height. More...
 
virtual sval getDepth () const
 Get the image depth. More...
 
virtual size_t getDataSize () const
 Get the image data size in bytes. More...
 
virtual u8getData ()
 Get a pointer to the internal data buffer. More...
 
virtual std::string encode (const std::string &format)
 Encode the image data as the byte stream for a file, the format of which is given by `format' (eg. png, jpg) More...
 
virtual void fillRealMatrix (RealMatrix *mat) throw (IndexException)
 Transfer the image data into the given matrix. More...
 
virtual void fillColorMatrix (ColorMatrix *mat) throw (IndexException)
 Transfer the image data into the given matrix. More...
 
- Public Member Functions inherited from Image
virtual ~Image ()
 

Private Attributes

Ogre::Image img
 

Constructor & Destructor Documentation

◆ OgreImage()

OgreImage ( const Ogre::Image &  i)
inline

◆ ~OgreImage()

virtual ~OgreImage ( )
inlinevirtual

Member Function Documentation

◆ encode()

virtual std::string encode ( const std::string &  format)
inlinevirtual

Encode the image data as the byte stream for a file, the format of which is given by `format' (eg. png, jpg)

Reimplemented from Image.

◆ fillColorMatrix()

virtual void fillColorMatrix ( ColorMatrix mat)
throw (IndexException
)
inlinevirtual

Transfer the image data into the given matrix.

Reimplemented from Image.

◆ fillRealMatrix()

virtual void fillRealMatrix ( RealMatrix mat)
throw (IndexException
)
inlinevirtual

Transfer the image data into the given matrix.

Reimplemented from Image.

Here is the call graph for this function:

◆ getData()

virtual u8* getData ( )
inlinevirtual

Get a pointer to the internal data buffer.

Reimplemented from Image.

◆ getDataSize()

virtual size_t getDataSize ( ) const
inlinevirtual

Get the image data size in bytes.

Reimplemented from Image.

◆ getDepth()

virtual sval getDepth ( ) const
inlinevirtual

Get the image depth.

Reimplemented from Image.

◆ getFormat()

virtual TextureFormat getFormat ( ) const
inlinevirtual

Get the loaded data's format.

Reimplemented from Image.

Here is the call graph for this function:

◆ getHeight()

virtual sval getHeight ( ) const
inlinevirtual

Get the image height.

Reimplemented from Image.

◆ getWidth()

virtual sval getWidth ( ) const
inlinevirtual

Get the image width.

Reimplemented from Image.

Member Data Documentation

◆ img

Ogre::Image img
private

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