A converted model on the GPU: its meshes, its parts, and its animations.
More...
#include <scenerenderer.h>
A converted model on the GPU: its meshes, its parts, and its animations.
◆ ~RenderModel()
| coastline::RenderModel::~RenderModel |
( |
| ) |
|
Release model resources and its shared document reference before GPU device destruction.
◆ RenderModel()
| coastline::RenderModel::RenderModel |
( |
const RenderModel & | | ) |
|
|
delete |
Prevent copying model resources and animation progress.
◆ Load() [1/2]
Read a glTF document of the import and upload its images and vertices.
- Parameters
-
| renderer | The renderer that draws the model. |
| path | The glTF document. |
| options | What of the document the model takes, and how. |
- Returns
- The model, or nothing with the reason logged.
◆ Load() [2/2]
Take the parts of a document already read, painting the images of its materials in the colour of the options when no model of the document has taken that colour before.
- Parameters
-
| document | The document. |
| options | The node, the paint, the parts, whether the model may draw nothing, the cycle type, and whether the model draws the palette variants of the document. |
- Returns
- The model, or nothing with the reason logged.
◆ operator=()
Prevent assignment of model resources and animation progress.
◆ Animations()
- Returns
- The animations of the vertices of the model.
◆ Centre()
| std::array< float, 3 > coastline::RenderModel::Centre |
( |
| ) |
const |
- Returns
- The centre of what the model draws, in the units of its document.
◆ Radius()
| float coastline::RenderModel::Radius |
( |
| ) |
const |
- Returns
- The radius of what the model draws, in the units of its document.
◆ Positions()
- Returns
- The position of each vertex the first mesh of the model indexes, in the units of its document, where the meshes of a car share their vertices.
◆ SetVariant()
| void coastline::RenderModel::SetVariant |
( |
int | variant | ) |
|
Pick the palette variant the images with variants show in the draws of the model until the next call.
- Parameters
-
| variant | The variant, from 0 to the variants of the options of the model. |
◆ SceneRenderer
| friend class SceneRenderer |
|
friend |
The documentation for this class was generated from the following file: