Magnum/Primitives/Capsule.h file

Function Magnum::Primitives::capsule2DWireframe(), Magnum::Primitives::capsule3DSolid(), Magnum::Primitives::capsule3DWireframe()

Namespaces

namespace Magnum
Root namespace.
namespace Magnum::Primitives
Primitive library.

Enums

enum class CapsuleFlag: UnsignedByte { TextureCoordinates = 1 << 0, Tangents = 1 << 1 new in 2020.06 } new in 2020.06
Capsule flag.
enum class CapsuleTextureCoords: UnsignedByte { DontGenerate, Generate } deprecated in 2020.06
Whether to generate capsule texture coordinates.

Typedefs

using CapsuleFlags = Containers::EnumSet<CapsuleFlag> new in 2020.06
Capsule flags.

Functions

auto capsule2DWireframe(UnsignedInt hemisphereRings, UnsignedInt cylinderRings, Float halfLength) -> Trade::MeshData
Wireframe 2D capsule.
auto capsule3DSolid(UnsignedInt hemisphereRings, UnsignedInt cylinderRings, UnsignedInt segments, Float halfLength, CapsuleFlags flags = {}) -> Trade::MeshData new in 2020.06
Solid 3D capsule.
auto capsule3DSolid(UnsignedInt hemisphereRings, UnsignedInt cylinderRings, UnsignedInt segments, Float halfLength, CapsuleTextureCoords textureCoords) -> Trade::MeshData deprecated in 2020.06
Solid 3D capsule.
auto capsule3DWireframe(UnsignedInt hemisphereRings, UnsignedInt cylinderRings, UnsignedInt segments, Float halfLength) -> Trade::MeshData
Wireframe 3D capsule.