|
|
@@ -44,34 +44,30 @@ struct Mesh;
|
|
|
class RMLUICORE_API MeshUtilities {
|
|
|
public:
|
|
|
/// Generates a quad from a position, size and colour.
|
|
|
- /// @param[out] vertices An array of at least four vertices that the generated vertex data will be written into.
|
|
|
- /// @param[out] indices An array of at least six indices that the generated index data will be written into.
|
|
|
+ /// @param[out] mesh A mesh to append the generated vertices and indices into.
|
|
|
/// @param[in] origin The origin of the quad to generate.
|
|
|
/// @param[in] dimensions The dimensions of the quad to generate.
|
|
|
/// @param[in] colour The colour to be assigned to each of the quad's vertices.
|
|
|
- /// @param[in] index_offset The offset to be added to the generated indices; this should be the number of vertices already in the array.
|
|
|
static void GenerateQuad(Mesh& mesh, Vector2f origin, Vector2f dimensions, ColourbPremultiplied colour);
|
|
|
/// Generates a quad from a position, size, colour and texture coordinates.
|
|
|
- /// @param[out] vertices An array of at least four vertices that the generated vertex data will be written into.
|
|
|
- /// @param[out] indices An array of at least six indices that the generated index data will be written into.
|
|
|
+ /// @param[out] mesh A mesh to append the generated vertices and indices into.
|
|
|
/// @param[in] origin The origin of the quad to generate.
|
|
|
/// @param[in] dimensions The dimensions of the quad to generate.
|
|
|
/// @param[in] colour The colour to be assigned to each of the quad's vertices.
|
|
|
/// @param[in] top_left_texcoord The texture coordinates at the top-left of the quad.
|
|
|
/// @param[in] bottom_right_texcoord The texture coordinates at the bottom-right of the quad.
|
|
|
- /// @param[in] index_offset The offset to be added to the generated indices; this should be the number of vertices already in the array.
|
|
|
static void GenerateQuad(Mesh& mesh, Vector2f origin, Vector2f dimensions, ColourbPremultiplied colour, Vector2f top_left_texcoord,
|
|
|
Vector2f bottom_right_texcoord);
|
|
|
|
|
|
/// Generates the geometry required to render a line.
|
|
|
- /// @param[out] geometry The geometry to append the newly created geometry into.
|
|
|
+ /// @param[out] mesh A mesh to append the generated vertices and indices into.
|
|
|
/// @param[in] position The top-left position the line.
|
|
|
/// @param[in] position The size of the line.
|
|
|
/// @param[in] color The color to draw the line in.
|
|
|
static void GenerateLine(Mesh& mesh, Vector2f position, Vector2f size, ColourbPremultiplied color);
|
|
|
|
|
|
/// Generates the geometry for an element's background and border, with support for the border-radius property.
|
|
|
- /// @param[out] geometry The geometry to append the newly created vertices and indices into.
|
|
|
+ /// @param[out] mesh A mesh to append the generated vertices and indices into.
|
|
|
/// @param[in] box The box which determines the background and border geometry.
|
|
|
/// @param[in] offset Offset the position of the generated vertices.
|
|
|
/// @param[in] border_radius The border radius in pixel units in the following order: top-left, top-right, bottom-right, bottom-left.
|
|
|
@@ -82,7 +78,7 @@ public:
|
|
|
const ColourbPremultiplied border_colours[4]);
|
|
|
|
|
|
/// Generates the background geometry for an element's area, with support for border-radius.
|
|
|
- /// @param[out] geometry The geometry to append the newly created vertices and indices into.
|
|
|
+ /// @param[out] mesh A mesh to append the generated vertices and indices into.
|
|
|
/// @param[in] box The box which determines the background geometry.
|
|
|
/// @param[in] offset Offset the position of the generated vertices.
|
|
|
/// @param[in] border_radius The border radius in pixel units in the following order: top-left, top-right, bottom-right, bottom-left.
|