24 mCurrentColour(0xFFFFFFFF),
27 mCountVertex(TILERECT_COUNT_VERTEX),
70 bool need_update =
true;
169 if (
nullptr !=
mNode)
178 if (
nullptr !=
mNode)
185 if (
nullptr !=
mNode)
219 float left = window_left;
220 float right = window_left;
221 float top = window_top;
222 float bottom = window_top;
230 float vertex_top = top;
231 float vertex_bottom = bottom;
232 bool texture_crop_height =
false;
234 if (vertex_top > real_top)
237 if (vertex_bottom > real_top)
242 vertex_top = real_top;
243 texture_crop_height =
true;
245 if (vertex_bottom < real_bottom)
248 if (vertex_top < real_bottom)
253 vertex_bottom = real_bottom;
254 texture_crop_height =
true;
262 float vertex_left = left;
263 float vertex_right = right;
264 bool texture_crop_width =
false;
267 if (vertex_left < real_left)
270 if (vertex_right < real_left)
275 vertex_left = real_left;
276 texture_crop_width =
true;
279 if (vertex_right > real_right)
282 if (vertex_left > real_right)
287 vertex_right = real_right;
288 texture_crop_width =
true;
298 if (texture_crop_height)
307 if (texture_crop_width)
368 if (
nullptr !=
mNode)
virtual void setVisible(bool _visible)
virtual void setAlpha(float _alpha)
virtual void setStateData(IStateInfo *_data)
virtual void _setColour(const Colour &_value)
virtual void outOfDate(RenderItem *_item)=0
void removeDrawItem(ISubWidget *_item)
void addDrawItem(ISubWidget *_item, size_t _count)
IRenderTarget * getRenderTarget()
__inline void convertColour(uint32 &_colour, VertexColourType _format)
static RenderManager & getInstance()
virtual float getNodeDepth()=0
const size_t TILERECT_COUNT_VERTEX
ICroppedRectangle * mCroppedParent
virtual VertexColourType getVertexFormat()=0
const IntSize & getTileSize() const
void set(float _l, float _t, float _r, float _b, float _z, float _u1, float _v1, float _u2, float _v2, uint32 _colour)
int getAbsoluteTop() const
virtual void _correctView()
FloatRect mCurrentTexture
virtual void _updateView()
int _getViewWidth() const
virtual RenderItem * addToRenderItem(ITexture *_texture, bool _firstQueue, bool _separate)=0
virtual void createDrawItem(ITexture *_texture, ILayerNode *_node)
const FloatRect & getRect() const
Vertex * getCurrentVertexBuffer() const
int getAbsoluteLeft() const
void reallockDrawItem(ISubWidget *_item, size_t _count)
#define MYGUI_ASSERT(exp, dest)
virtual void _setAlign(const IntSize &_oldsize)
virtual const RenderTargetInfo & getInfo()=0
uint32 toColourARGB(const Colour &_colour)
Type * castType(bool _throw=true)
bool _checkOutside() const
virtual void destroyDrawItem()
int _getViewHeight() const
virtual void _setUVSet(const FloatRect &_rect)
void setLastVertexCount(size_t _count)
VertexColourType mVertexFormat