Grid.ixx File
Basic grid shape for rendering. More...
Included Headers
#include <stdexcept>
#include <vector>
#include <helios.rendering.mesh.PrimitiveType>
#include <helios.rendering.Vertex>
#include <helios.math.types>
#include <helios.rendering.asset.shape.Shape>
Namespaces Index
| namespace | helios |
| namespace | rendering |
|
Graphics rendering infrastructure. More... | |
| namespace | asset |
|
Rendering asset management. More... | |
| namespace | shape |
|
Geometric shape definitions. More... | |
| namespace | basic |
|
Basic primitive shapes. More... | |
Classes Index
| struct | Grid |
|
A configurable grid shape for rendering reference lines in 3D space. More... | |
Description
Basic grid shape for rendering.
File Listing
The file content with the documentation metadata removed is:
18using namespace helios::rendering;
20export namespace helios::rendering::asset::shape::basic {
74 std::vector<Vertex> vertices;
75 std::vector<unsigned int> indices;
77 vertices.reserve((segmentsX + 1) * (segmentsY + 1));
88 vertices.push_back({
100 indices.push_back(idx);
101 indices.push_back(idx +1);
106 indices.push_back(idx);
107 indices.push_back(idx + 1 + segmentsY);
124 explicit Grid(std::pair<std::vector<Vertex>, std::vector<unsigned int>> data) :
125 Shape(std::move(data.first), std::move(data.second))
159 [[nodiscard]] helios::rendering::mesh::PrimitiveType primitiveType() const noexcept override {
160 return mesh::PrimitiveType::Lines;
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.15.0.