A glTF document of the import on the GPU, read and decoded once for every RenderModel of its parts: its vertices, its animations, and the images no paint colours.
More...
#include <scenerenderer.h>
A glTF document of the import on the GPU, read and decoded once for every RenderModel of its parts: its vertices, its animations, and the images no paint colours.
The images of materials are painted and uploaded for a colour the first time a model of the document takes it, and each later model in that colour shares them.
◆ ~RenderDocument()
| coastline::RenderDocument::~RenderDocument |
( |
| ) |
|
Release shared document storage and GPU resources before the GPU device is destroyed.
◆ RenderDocument()
| coastline::RenderDocument::RenderDocument |
( |
const RenderDocument & | | ) |
|
|
delete |
Prevent copying uploaded document resources.
◆ Load()
Read a glTF document of the import, upload its vertices and the images no paint colours, and decode the images of its materials.
- Parameters
-
| renderer | The renderer that draws the models of the document. |
| path | The glTF document. |
| options | The images, the palette variants, and the damage of the document. |
- Returns
- The document, or nothing with the reason logged.
◆ operator=()
Prevent assignment of uploaded document resources.
◆ PaintCount()
| std::size_t coastline::RenderDocument::PaintCount |
( |
| ) |
const |
- Returns
- The number of paints whose images the document has uploaded.
◆ RenderModel
The documentation for this class was generated from the following file: