32 Event(
bool _textureChanged,
bool _widgetResized,
bool _requested ) :
33 textureChanged( _textureChanged ),
34 widgetResized( _widgetResized ),
35 requested( _requested )
93 void createTexture(TextureResizeMode _resizeMode,
TextureUsage _usage = getDefaultTextureUsage(),
PixelFormat _format = getDefaultTextureFormat());
96 void createTexture(
int _width,
int _height, TextureResizeMode _resizeMode,
TextureUsage _usage = getDefaultTextureUsage(),
PixelFormat _format = getDefaultTextureFormat());
99 void createTexture(
const IntSize& _size, TextureResizeMode _resizeMode,
TextureUsage _usage = getDefaultTextureUsage(),
PixelFormat _format = getDefaultTextureFormat());
102 void destroyTexture();
105 void updateTexture();
114 bool isLocked()
const;
117 int getTextureRealWidth()
const;
120 int getTextureRealHeight()
const;
123 IntSize getTextureRealSize()
const;
126 int getTextureSrcWidth()
const;
129 int getTextureSrcHeight()
const;
132 IntSize getTextureSrcSize()
const;
138 const std::string& getTextureName()
const;
141 void setSize(
const IntSize& _value)
override;
143 void setCoord(
const IntCoord& _value)
override;
150 TextureResizeMode getResizeMode()
const;
153 void setResizeMode(TextureResizeMode _value);
156 bool isTextureSrcSize()
const;
159 bool isTextureCreated()
const;
162 bool isTextureManaged()
const;
168 void setTextureManaged(
bool _value);
191 void shutdownOverride()
override;
192 void initialiseOverride()
override;
195 void _destroyTexture(
bool _sendEvent);
204 bool checkCreate(
int _width,
int _height)
const;
207 void resize(
const IntSize& _size);
213 void frameAdvise(
bool _advise);
216 void frameEntered(
float _time);
218 void textureInvalidate(
ITexture* _texture)
override;
#define MYGUI_RTTI_DERIVED(DerivedType)
wrapper over Texture - shows the texture. Implemented: resizing of texture (see TextureResizeMode); r...
IntSize mReqTexSize
Requested bu user sizes.
bool mFrameAdvise
For updating once per frame. True state means updating before next frame starts.
EventHandle_CanvasPtrEvent requestUpdateCanvas
bool mTexManaged
true if we own the texture (can delete it or replace by another instance), otherwise false
TextureResizeMode mTexResizeMode
Texture resize mode.
uint8 * mTexData
Saved pointer from last calling lock.
delegates::CMultiDelegate1< Canvas * > EventHandle_CanvasPtr
delegates::CDelegate2< Canvas *, Event > EventHandle_CanvasPtrEvent
ITexture * mTexture
Current texture.
EventHandle_CanvasPtr eventPreTextureChanges
std::string mGenTexName
Generated texture name.
Event(bool _textureChanged, bool _widgetResized, bool _requested)
bool requested
This update was caused by calling updateTexture();.