OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | Private Attributes | List of all members
osgMyGUI::OSGTexture Class Reference

#include <myguitexture.hpp>

Inheritance diagram for osgMyGUI::OSGTexture:
Collaboration diagram for osgMyGUI::OSGTexture:

Public Member Functions

 OSGTexture (const std::string &name, Resource::ImageManager *imageManager)
 
 OSGTexture (osg::Texture2D *texture)
 
virtual ~OSGTexture ()
 
virtual const std::string & getName () const
 
virtual void createManual (int width, int height, MyGUI::TextureUsage usage, MyGUI::PixelFormat format)
 
virtual void loadFromFile (const std::string &fname)
 
virtual void saveToFile (const std::string &fname)
 
virtual void destroy ()
 
virtual void * lock (MyGUI::TextureUsage access)
 
virtual void unlock ()
 
virtual bool isLocked ()
 
virtual int getWidth ()
 
virtual int getHeight ()
 
virtual MyGUI::PixelFormat getFormat ()
 
virtual MyGUI::TextureUsage getUsage ()
 
virtual size_t getNumElemBytes ()
 
virtual MyGUI::IRenderTarget * getRenderTarget ()
 
osg::Texture2D * getTexture () const
 

Private Attributes

std::string mName
 
Resource::ImageManagermImageManager
 
osg::ref_ptr< osg::Image > mLockedImage
 
osg::ref_ptr< osg::Texture2D > mTexture
 
MyGUI::PixelFormat mFormat
 
MyGUI::TextureUsage mUsage
 
size_t mNumElemBytes
 

Constructor & Destructor Documentation

osgMyGUI::OSGTexture::OSGTexture ( const std::string &  name,
Resource::ImageManager imageManager 
)
osgMyGUI::OSGTexture::OSGTexture ( osg::Texture2D *  texture)
osgMyGUI::OSGTexture::~OSGTexture ( )
virtual

Member Function Documentation

void osgMyGUI::OSGTexture::createManual ( int  width,
int  height,
MyGUI::TextureUsage  usage,
MyGUI::PixelFormat  format 
)
virtual
void osgMyGUI::OSGTexture::destroy ( )
virtual
virtual MyGUI::PixelFormat osgMyGUI::OSGTexture::getFormat ( )
inlinevirtual
int osgMyGUI::OSGTexture::getHeight ( )
virtual

Here is the caller graph for this function:

virtual const std::string& osgMyGUI::OSGTexture::getName ( ) const
inlinevirtual
virtual size_t osgMyGUI::OSGTexture::getNumElemBytes ( )
inlinevirtual
MyGUI::IRenderTarget * osgMyGUI::OSGTexture::getRenderTarget ( )
virtual
osg::Texture2D* osgMyGUI::OSGTexture::getTexture ( ) const
inline
virtual MyGUI::TextureUsage osgMyGUI::OSGTexture::getUsage ( )
inlinevirtual
int osgMyGUI::OSGTexture::getWidth ( )
virtual

Here is the caller graph for this function:

bool osgMyGUI::OSGTexture::isLocked ( )
virtual
void osgMyGUI::OSGTexture::loadFromFile ( const std::string &  fname)
virtual

Here is the call graph for this function:

void * osgMyGUI::OSGTexture::lock ( MyGUI::TextureUsage  access)
virtual
void osgMyGUI::OSGTexture::saveToFile ( const std::string &  fname)
virtual
void osgMyGUI::OSGTexture::unlock ( )
virtual

Here is the call graph for this function:

Member Data Documentation

MyGUI::PixelFormat osgMyGUI::OSGTexture::mFormat
private
Resource::ImageManager* osgMyGUI::OSGTexture::mImageManager
private
osg::ref_ptr<osg::Image> osgMyGUI::OSGTexture::mLockedImage
private
std::string osgMyGUI::OSGTexture::mName
private
size_t osgMyGUI::OSGTexture::mNumElemBytes
private
osg::ref_ptr<osg::Texture2D> osgMyGUI::OSGTexture::mTexture
private
MyGUI::TextureUsage osgMyGUI::OSGTexture::mUsage
private

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