|
|
|
|
@ -134,11 +134,12 @@ typedef Containers::EnumSet<CubeFlag> CubeFlags;
|
|
|
|
|
CORRADE_ENUMSET_OPERATORS(CubeFlags) |
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
@brief Solid 3D cube |
|
|
|
|
@brief Solid cube |
|
|
|
|
|
|
|
|
|
2x2x2 cube, centered at origin. @ref MeshPrimitive::Triangles with |
|
|
|
|
@ref MeshIndexType::UnsignedShort indices, interleaved |
|
|
|
|
@ref VertexFormat::Vector3 positions, flat @ref VertexFormat::Vector3 normals, optional @ref VertexFormat::Vector4 tangents and optional |
|
|
|
|
@ref VertexFormat::Vector3 positions, flat @ref VertexFormat::Vector3 normals, |
|
|
|
|
optional @ref VertexFormat::Vector4 tangents and optional |
|
|
|
|
@ref VertexFormat::Vector2 texture coordinates. If no @p flags are passed, the |
|
|
|
|
returned instance references @ref Trade::DataFlag::Global data --- pass the |
|
|
|
|
mesh through @ref MeshTools::copy() to get a mutable copy, if needed. |
|
|
|
|
@ -162,7 +163,7 @@ MAGNUM_PRIMITIVES_EXPORT Trade::MeshData cubeSolid(CubeFlags flags);
|
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
@brief Solid 3D cube as a single strip |
|
|
|
|
@brief Solid cube as a single strip |
|
|
|
|
|
|
|
|
|
2x2x2 cube, centered at origin. Non-indexed @ref MeshPrimitive::TriangleStrip |
|
|
|
|
with @ref VertexFormat::Vector3 positions. No normals or anything else, use |
|
|
|
|
@ -181,7 +182,7 @@ adapted to exactly match the output of this function):
|
|
|
|
|
MAGNUM_PRIMITIVES_EXPORT Trade::MeshData cubeSolidStrip(); |
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
@brief Wireframe 3D cube |
|
|
|
|
@brief Wireframe cube |
|
|
|
|
|
|
|
|
|
2x2x2 cube, centered at origin. @ref MeshPrimitive::Lines with |
|
|
|
|
@ref MeshIndexType::UnsignedShort indices and @ref VertexFormat::Vector3 |
|
|
|
|
|