1 #ifndef OPENMW_COMPONENTS_MYGUIPLATFORM_MYGUITEXTURE_H
2 #define OPENMW_COMPONENTS_MYGUIPLATFORM_MYGUITEXTURE_H
4 #include <MyGUI_ITexture.h>
39 virtual void createManual(
int width,
int height, MyGUI::TextureUsage usage, MyGUI::PixelFormat format);
41 virtual void saveToFile(
const std::string &fname);
45 virtual void*
lock(MyGUI::TextureUsage access);
MyGUI::TextureUsage mUsage
Definition: myguitexture.hpp:29
virtual ~OSGTexture()
Definition: myguitexture.cpp:31
Resource::ImageManager * mImageManager
Definition: myguitexture.hpp:24
virtual int getHeight()
Definition: myguitexture.cpp:116
osg::ref_ptr< osg::Texture2D > mTexture
Definition: myguitexture.hpp:27
Handles loading/caching of Images.
Definition: imagemanager.hpp:23
MyGUI::PixelFormat mFormat
Definition: myguitexture.hpp:28
virtual void saveToFile(const std::string &fname)
Definition: myguitexture.cpp:104
virtual MyGUI::TextureUsage getUsage()
Definition: myguitexture.hpp:53
virtual void destroy()
Definition: myguitexture.cpp:76
osg::ref_ptr< osg::Image > mLockedImage
Definition: myguitexture.hpp:26
Definition: myguitexture.hpp:22
virtual MyGUI::IRenderTarget * getRenderTarget()
Definition: myguitexture.cpp:171
virtual void loadFromFile(const std::string &fname)
Definition: myguitexture.cpp:84
virtual void unlock()
Definition: myguitexture.cpp:139
std::string mName
Definition: myguitexture.hpp:23
virtual void createManual(int width, int height, MyGUI::TextureUsage usage, MyGUI::PixelFormat format)
Definition: myguitexture.cpp:35
virtual MyGUI::PixelFormat getFormat()
Definition: myguitexture.hpp:52
virtual size_t getNumElemBytes()
Definition: myguitexture.hpp:54
virtual int getWidth()
Definition: myguitexture.cpp:109
virtual void * lock(MyGUI::TextureUsage access)
Definition: myguitexture.cpp:123
virtual const std::string & getName() const
Definition: myguitexture.hpp:37
size_t mNumElemBytes
Definition: myguitexture.hpp:30
virtual bool isLocked()
Definition: myguitexture.cpp:165
OSGTexture(const std::string &name, Resource::ImageManager *imageManager)
Definition: myguitexture.cpp:13
osg::Texture2D * getTexture() const
Definition: myguitexture.hpp:59
const char * name
Definition: crashcatcher.cpp:59