Eidolon
Public Member Functions | Protected Attributes | List of all members
OgreTexture Class Reference

#include <OgreRenderTypes.h>

Inheritance diagram for OgreTexture:
Inheritance graph
Collaboration diagram for OgreTexture:
Collaboration graph

Public Member Functions

 OgreTexture (Ogre::TexturePtr ptr, const char *filename, OgreRenderScene *scene)
 
virtual ~OgreTexture ()
 
virtual void commit ()
 
virtual Ogre::PixelBox getPixelBuffer ()
 
virtual const char * getFilename () const
 
virtual const char * getName () const
 
virtual sval getWidth () const
 
virtual sval getHeight () const
 
virtual sval getDepth () const
 
virtual bool hasAlpha () const
 
virtual TextureFormat getFormat () const
 
virtual void fillBlack ()
 
virtual void fillColor (color col)
 
virtual void fillColor (const ColorMatrix *mat, indexval depth)
 
virtual void fillColor (const RealMatrix *mat, indexval depth, real minval=0.0, real maxval=1.0, const Material *colormat=NULL, const RealMatrix *alphamat=NULL, bool mulAlpha=true)
 
- Public Member Functions inherited from Texture
 Texture ()
 
virtual ~Texture ()
 

Protected Attributes

OgreRenderScenescene
 The root scene which renders this object. More...
 
std::string filename
 
Ogre::TexturePtr ptr
 
u8buffer
 
size_t sizeBytes
 

Detailed Description

This adapts Ogre::Texture objects to the renderer interface. It uses an internal data buffer to fill with pixel data which is written to the actual texture only at render type using a CommitOp object.

Constructor & Destructor Documentation

◆ OgreTexture()

OgreTexture ( Ogre::TexturePtr  ptr,
const char *  filename,
OgreRenderScene scene 
)
inline

◆ ~OgreTexture()

~OgreTexture ( )
virtual
Here is the call graph for this function:

Member Function Documentation

◆ commit()

void commit ( )
virtual

◆ fillBlack()

void fillBlack ( )
virtual

Reimplemented from Texture.

Here is the call graph for this function:

◆ fillColor() [1/3]

void fillColor ( color  col)
virtual

Reimplemented from Texture.

Here is the call graph for this function:

◆ fillColor() [2/3]

void fillColor ( const ColorMatrix mat,
indexval  depth 
)
virtual

Reimplemented from Texture.

Here is the call graph for this function:

◆ fillColor() [3/3]

void fillColor ( const RealMatrix mat,
indexval  depth,
real  minval = 0.0,
real  maxval = 1.0,
const Material colormat = NULL,
const RealMatrix alphamat = NULL,
bool  mulAlpha = true 
)
virtual

Reimplemented from Texture.

Here is the call graph for this function:

◆ getDepth()

virtual sval getDepth ( ) const
inlinevirtual

Reimplemented from Texture.

◆ getFilename()

virtual const char* getFilename ( ) const
inlinevirtual

Reimplemented from Texture.

◆ getFormat()

virtual TextureFormat getFormat ( ) const
inlinevirtual

Reimplemented from Texture.

◆ getHeight()

virtual sval getHeight ( ) const
inlinevirtual

Reimplemented from Texture.

◆ getName()

virtual const char* getName ( ) const
inlinevirtual

Reimplemented from Texture.

Here is the caller graph for this function:

◆ getPixelBuffer()

virtual Ogre::PixelBox getPixelBuffer ( )
inlinevirtual

◆ getWidth()

virtual sval getWidth ( ) const
inlinevirtual

Reimplemented from Texture.

◆ hasAlpha()

virtual bool hasAlpha ( ) const
inlinevirtual

Reimplemented from Texture.

Member Data Documentation

◆ buffer

u8* buffer
protected

◆ filename

std::string filename
protected

◆ ptr

Ogre::TexturePtr ptr
protected

◆ scene

OgreRenderScene* scene
protected

The root scene which renders this object.

◆ sizeBytes

size_t sizeBytes
protected

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