145 if (
nullptr !=
mNode)
154 if (
nullptr !=
mNode)
161 if (
nullptr !=
mNode)
189 float window_top = -(
210 float bottom = window_top;
216 float right = window_left;
218 float vertex_top = top;
219 float vertex_bottom = bottom;
220 bool texture_crop_height =
false;
222 if (vertex_top > real_top)
225 if (vertex_bottom > real_top)
230 vertex_top = real_top;
231 texture_crop_height =
true;
233 if (vertex_bottom < real_bottom)
236 if (vertex_top < real_bottom)
241 vertex_bottom = real_bottom;
242 texture_crop_height =
true;
250 float vertex_left = left;
251 float vertex_right = right;
252 bool texture_crop_width =
false;
255 if (vertex_left < real_left)
258 if (vertex_right < real_left)
263 vertex_left = real_left;
264 texture_crop_width =
true;
267 if (vertex_right > real_right)
270 if (vertex_left > real_right)
275 vertex_right = real_right;
276 texture_crop_width =
true;
286 if (texture_crop_height)
295 if (texture_crop_width)
355 if (
nullptr !=
mNode)
#define MYGUI_ASSERT(exp, dest)
int getAbsoluteLeft() const
bool _checkOutside() const
ICroppedRectangle * mCroppedParent
int getAbsoluteTop() const
int _getViewWidth() const
int _getViewHeight() const
virtual float getNodeDepth() const =0
virtual void outOfDate(RenderItem *_item)=0
virtual RenderItem * addToRenderItem(ITexture *_texture, bool _firstQueue, bool _separate)=0
Type * castType(bool _throw=true)
virtual const RenderTargetInfo & getInfo() const =0
void addDrawItem(ISubWidget *_item, size_t _count)
IRenderTarget * getRenderTarget()
void reallockDrawItem(ISubWidget *_item, size_t _count)
void removeDrawItem(ISubWidget *_item)
Vertex * getCurrentVertexBuffer() const
void setLastVertexCount(size_t _count)
virtual VertexColourType getVertexFormat() const =0
static RenderManager & getInstance()
void _setAlign(const IntSize &_oldsize) override
FloatRect mCurrentTexture
void _setUVSet(const FloatRect &_rect) override
void setVisible(bool _visible) override
void createDrawItem(ITexture *_texture, ILayerNode *_node) override
void _setColour(const Colour &_value) override
void setStateData(IStateInfo *_data) override
void _correctView() override
void setAlpha(float _alpha) override
VertexColourType mVertexFormat
void destroyDrawItem() override
void _updateView() override
const FloatRect & getRect() const
const IntSize & getTileSize() const
uint32 toNativeColour(const Colour &_colour, VertexColourType _format)
Convert Colour to 32-bit representation.
const size_t TILERECT_COUNT_VERTEX
void set(float _l, float _t, float _r, float _b, float _z, float _u1, float _v1, float _u2, float _v2, uint32 _colour)