model
FreeBodyEngine.graphics.model
#
Model(meshes, material_map, materials)
#
A loaded, renderer-agnostic 3D model: a set of named Meshes, each mapped by name to the name of the Material it should draw with - resolved this way rather than storing a direct Mesh->Material reference so multiple meshes can cheaply share one Material instance.
Stores the given meshes/material map/materials directly - see the class docstring.
animations = None
instance-attribute
#
material_map = material_map
instance-attribute
#
materials = materials
instance-attribute
#
meshes = meshes
instance-attribute
#
skeleton = None
instance-attribute
#
from_data()
classmethod
#
Creates a model object from the data generated by the "to_data" function.
to_data()
#
Meant to serialize this Model to a plain dict for from_data() to reconstruct later. Not yet implemented (a stub - always returns None).