|
MyGUI 3.5.3
|
Enumerations | |
| enum | Side { Left , Right , Top , Bottom } |
Functions | |
| VectorFloatPoint | cropPolygon (const FloatPoint *_baseVerticiesPos, size_t _size, const IntCoord &_cropRectangle) |
| void | cropPolygonSide (VectorFloatPoint &_verticies, int _sideCoord, Side _side) |
| FloatPoint | toRenderTarget (FloatPoint _point, const RenderTargetInfo &_info, IntPoint _origin={}) |
| FloatRect | toRenderTarget (const FloatRect &_rect, const RenderTargetInfo &_info, IntPoint _origin={}) |
| FloatRect | toRenderTarget (const IntCoord &_coord, const RenderTargetInfo &_info, IntPoint _origin={}) |
| void | toRenderTargetInPlace (FloatPoint *_points, size_t _count, const RenderTargetInfo &_info, IntPoint _origin={}) |
| template<size_t N> | |
| void | toRenderTargetInPlace (FloatPoint(&_points)[N], const RenderTargetInfo &_info, IntPoint _origin={}) |
| template<size_t N> | |
| void | toRenderTargetInPlace (std::array< FloatPoint, N > &_points, const RenderTargetInfo &_info, IntPoint _origin={}) |
| void | toRenderTargetInPlace (VectorFloatPoint &_points, const RenderTargetInfo &_info, IntPoint _origin={}) |
| FloatPoint | fromRenderTarget (FloatPoint _point, const RenderTargetInfo &_info, IntPoint _origin={}) |
| FloatPoint | getPositionInsideRect (const FloatPoint &_point, const FloatPoint &_corner0, const FloatPoint &_corner1, const FloatPoint &_corner2) |
| FloatPoint | getUVFromPositionInsideRect (const FloatPoint &_point, const FloatPoint &_v0, const FloatPoint &_v1, const FloatPoint &_baseUV) |
| Enumerator | |
|---|---|
| Left | |
| Right | |
| Top | |
| Bottom | |
Definition at line 25 of file MyGUI_GeometryUtility.h.
| VectorFloatPoint MyGUI::geometry_utility::cropPolygon | ( | const FloatPoint * | _baseVerticiesPos, |
| size_t | _size, | ||
| const IntCoord & | _cropRectangle ) |
Definition at line 13 of file MyGUI_GeometryUtility.cpp.
| void MyGUI::geometry_utility::cropPolygonSide | ( | VectorFloatPoint & | _verticies, |
| int | _sideCoord, | ||
| Side | _side ) |
Definition at line 30 of file MyGUI_GeometryUtility.cpp.
| FloatPoint MyGUI::geometry_utility::fromRenderTarget | ( | FloatPoint | _point, |
| const RenderTargetInfo & | _info, | ||
| IntPoint | _origin = {} ) |
Convert render coordinates to pixels relative to _origin. Pixel scales must be nonzero.
Definition at line 83 of file MyGUI_GeometryUtility.cpp.
| FloatPoint MyGUI::geometry_utility::getPositionInsideRect | ( | const FloatPoint & | _point, |
| const FloatPoint & | _corner0, | ||
| const FloatPoint & | _corner1, | ||
| const FloatPoint & | _corner2 ) |
Definition at line 90 of file MyGUI_GeometryUtility.cpp.
| FloatPoint MyGUI::geometry_utility::getUVFromPositionInsideRect | ( | const FloatPoint & | _point, |
| const FloatPoint & | _v0, | ||
| const FloatPoint & | _v1, | ||
| const FloatPoint & | _baseUV ) |
Definition at line 108 of file MyGUI_GeometryUtility.cpp.
| FloatRect MyGUI::geometry_utility::toRenderTarget | ( | const FloatRect & | _rect, |
| const RenderTargetInfo & | _info, | ||
| IntPoint | _origin = {} ) |
Convert rectangle edges without reordering them: top may be greater than bottom in the result.
Definition at line 65 of file MyGUI_GeometryUtility.cpp.
|
inline |
Convert an integer rectangle without a temporary point buffer, preserving the floating-point edge calculation.
Definition at line 43 of file MyGUI_GeometryUtility.h.
| FloatPoint MyGUI::geometry_utility::toRenderTarget | ( | FloatPoint | _point, |
| const RenderTargetInfo & | _info, | ||
| IntPoint | _origin = {} ) |
Convert local pixels to render coordinates, accounting for target offsets and reversing Y. _origin is the absolute pixel position of the local origin; zero means absolute input coordinates.
Definition at line 59 of file MyGUI_GeometryUtility.cpp.
| void MyGUI::geometry_utility::toRenderTargetInPlace | ( | FloatPoint * | _points, |
| size_t | _count, | ||
| const RenderTargetInfo & | _info, | ||
| IntPoint | _origin = {} ) |
Convert a point buffer in place using the same pixel coordinates and origin as toRenderTarget.
Definition at line 72 of file MyGUI_GeometryUtility.cpp.
| void MyGUI::geometry_utility::toRenderTargetInPlace | ( | FloatPoint(&) | _points[N], |
| const RenderTargetInfo & | _info, | ||
| IntPoint | _origin = {} ) |
Definition at line 62 of file MyGUI_GeometryUtility.h.
| void MyGUI::geometry_utility::toRenderTargetInPlace | ( | std::array< FloatPoint, N > & | _points, |
| const RenderTargetInfo & | _info, | ||
| IntPoint | _origin = {} ) |
Definition at line 68 of file MyGUI_GeometryUtility.h.
|
inline |
Definition at line 76 of file MyGUI_GeometryUtility.h.