Skip to main content

Line Struct

Basic Line Shape. More...

Declaration

struct helios::rendering::asset::shape::basic::Line { ... }

Base struct

structShape

Struct representing geometric primitives and indices for various shapes. provides immutable, shared access to vertices and indices of the represented geometric shape. More...

Public Constructors Index

Line ()

Public Member Functions Index

helios::rendering::mesh::PrimitiveTypeprimitiveType () const noexcept override

Returns the intended PrimitiveType for this Shape. More...

Description

Basic Line Shape.

Creates vertex and index data for a single diagonal line segment. By default, this shape defines a line spanning from (0, 0, 0) to the point (1, 1, 0).

Definition at line 26 of file Line.ixx.

Public Constructors

Line()

helios::rendering::asset::shape::basic::Line::Line ()
inline

Definition at line 28 of file Line.ixx.

29 std::vector<Vertex>{
30
31 {{ 0.0f, 0.0f, 0.0f}, { 0.0f, 0.0f, 0.0f}, {0.0f, 0.0f}},
32 {{ 1.0f, 1.0f, 0.0f}, { 0.0f, 0.0f, 0.0f}, {0.0f, 0.0f}},
33 },
34 std::vector<unsigned int>{
35 0, 1
36 }
37 ) {}

Reference helios::rendering::asset::shape::Shape::Shape.

Public Member Functions

primitiveType()

helios::rendering::mesh::PrimitiveType helios::rendering::asset::shape::basic::Line::primitiveType ()
inline nodiscard noexcept virtual

Returns the intended PrimitiveType for this Shape.

This method returns the intended PrimitiveType for the Shape represented by this instance. This information can be used to properly set up the MeshConfig wrapping this Shape.

Returns

The intended PrimitiveType of this Shape.

Definition at line 39 of file Line.ixx.

39 [[nodiscard]] helios::rendering::mesh::PrimitiveType primitiveType() const noexcept override {
41 }

Reference helios::rendering::mesh::Lines.


The documentation for this struct was generated from the following file:


Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.15.0.