|
Sparkle 0.0.1
|
Helper used to build TextureMesh instances from primitives. More...
#include <spk_texture_painter.hpp>

Public Member Functions | |
| Builder ()=default | |
| Builds an empty builder. | |
| Builder & | clear () |
| Clears all stored polygons. | |
| Builder & | insertTriangle (const TextureVertex &p_a, const TextureVertex &p_b, const TextureVertex &p_c) |
| Inserts a textured triangle. | |
| Builder & | insertQuad (const TextureVertex &p_a, const TextureVertex &p_b, const TextureVertex &p_c, const TextureVertex &p_d, PolygonOrder p_order=PolygonOrder::TriangleFanFromFirst) |
| Inserts a textured quad. | |
| Builder & | insertRectangle (const Vector2Int &p_anchor, const Vector2UInt &p_size, const Vector2 &p_uvAnchor, const Vector2 &p_uvSize, PolygonOrder p_order=PolygonOrder::TriangleFanFromFirst) |
| Inserts a textured rectangle with explicit UVs. | |
| Builder & | insertRectangleFullUV (const Vector2Int &p_anchor, const Vector2UInt &p_size, PolygonOrder p_order=PolygonOrder::TriangleFanFromFirst) |
| Inserts a rectangle using full [0,1] UV range. | |
| Builder & | insertRectangleFullUV (const spk::Extend2D &p_extend, PolygonOrder p_order=PolygonOrder::TriangleFanFromFirst) |
| Inserts a rectangle from an extend using full UV range. | |
| TextureMesh | construct () |
| Builds a TextureMesh from stored polygons. | |
Helper used to build TextureMesh instances from primitives.
|
inline |
Clears all stored polygons.


|
inline |
Builds a TextureMesh from stored polygons.


|
inline |
Inserts a textured quad.
| p_a | First vertex. |
| p_b | Second vertex. |
| p_c | Third vertex. |
| p_d | Fourth vertex. |
| p_order | Triangulation order. |


|
inline |
Inserts a textured rectangle with explicit UVs.
| p_anchor | Rectangle anchor position. |
| p_size | Rectangle size. |
| p_uvAnchor | UV anchor. |
| p_uvSize | UV size. |
| p_order | Triangulation order. |


|
inline |
Inserts a rectangle from an extend using full UV range.
| p_extend | Rectangle extend. |
| p_order | Triangulation order. |

|
inline |
Inserts a rectangle using full [0,1] UV range.
| p_anchor | Rectangle anchor position. |
| p_size | Rectangle size. |
| p_order | Triangulation order. |

|
inline |
Inserts a textured triangle.
| p_a | First vertex. |
| p_b | Second vertex. |
| p_c | Third vertex. |
