#include <boxframemesh.h>
Predefined box frame line mesh for objects to aid in visual debugging (e.g. nap::RenderFrustumComponent
). Consists of a single position vertex attribute and is rendered as a line only using EPolygonMode::Line.
◆ BoxFrameMesh()
◆ getMeshInstance() [1/2]
- Returns
- the mesh instance that can be rendered to screen
Implements IMesh.
◆ getMeshInstance() [2/2]
- Returns
- the mesh instance that can be rendered to screen
Implements IMesh.
◆ getNormalizedLineBox()
const std::vector<glm::vec3>& getNormalizedLineBox |
( |
| ) |
|
- Returns
- the normalized line box from (-1, -1, -1) to (1, 1, 1)
◆ getUnitLineBox()
const std::vector<glm::vec3>& getUnitLineBox |
( |
| ) |
|
- Returns
- the unit line box from (-0.5, -0.5, -0.5) to (0.5, 0.5, 0.5)
◆ init()
Sets up and initializes the box as a mesh based on the provided parameters.
- Parameters
-
errorState | contains the error message if the mesh could not be created. |
- Returns
- if the mesh was successfully created and initialized.
Reimplemented from Object.
◆ setup() [1/2]
Creates and prepares the mesh but doesn't initialize it. Call this when you want to prepare a box without creating the GPU representation. You have to manually call init() on the mesh instance afterwards.
◆ setup() [2/2]
Creates and prepares the mesh but doesn't initialize it. Call this when you want to prepare a box without creating the GPU representation. You have to manually call init() on the mesh instance afterwards.
◆ mMeshInstance
◆ mRenderService
◆ mUnit
Property: 'Extent' Extent of the box (0.5)
◆ mUsage
Property: 'Usage' If the mesh is uploaded once or frequently updated.