gdk-graphics 0a0aef92e917cfbac53dffbc32c295e4de914093
Loading...
Searching...
No Matches
gdk::graphics::gltf_mesh Struct Referencefinal

one drawable piece of a glTF document: a primitive, as one node draws it More...

#include <gltf.h>

Collaboration diagram for gdk::graphics::gltf_mesh:

Public Attributes

model_data data
std::string mesh_name
 the name of the glTF mesh this came from, empty if it is unnamed
std::string node_name
 the name of the node that draws this mesh, empty if no node does
std::string parent_name
 the name of the parent node, empty if this is the root node
std::string material_name
 the name of the glTF material this primitive draws with, empty if it has none
int base_color_image = -1
 the image this primitive's material paints with, or -1 for none
std::array< float, 16 > local_transform
 this node's transform relative to its parent, row major, identity by default
std::vector< animation::vertex_weights > weights
 per-vertex influences, empty if the primitive is not skinned.
int skeleton = -1
 index into gltf_content::skeletons, or -1 when the primitive is not skinned

Detailed Description

one drawable piece of a glTF document: a primitive, as one node draws it

A mesh drawn by several nodes comes back once for each, with that node's name and transform; one no node draws comes back once, with neither. Triangle strips and fans come back as triangle lists.

Member Data Documentation

◆ local_transform

std::array<float, 16> gdk::graphics::gltf_mesh::local_transform
Initial value:
{
1, 0, 0, 0,
0, 1, 0, 0,
0, 0, 1, 0,
0, 0, 0, 1}

this node's transform relative to its parent, row major, identity by default


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