Game of Ur 0.3.3
This is a computer adaptation of Game of Ur, written in C++ mainly using SDL and OpenGL.
|
A constructor method for StaticModels that loads such a model from its model file (w/ extensions such as .fbx, .obj, .gltf, and so on) More...
#include <model.hpp>
Public Member Functions | |
StaticModelFromFile () | |
Creates a StaticModelFromFile object. | |
![]() | |
std::string | getResourceConstructorName_ () const override |
Gets the resource constructor type string of the constructor. | |
![]() | |
virtual | ~IResourceConstructor ()=default |
Destroys this resource constructor (when the application is terminated.) | |
Static Public Member Functions | |
static std::string | getResourceConstructorName () |
Gets the resource constructor type string for this constructor. | |
Private Member Functions | |
std::shared_ptr< IResource > | createResource (const nlohmann::json &methodParameters) override |
Creates a StaticModel resource based on its parameters. | |
Additional Inherited Members | |
![]() | |
ResourceConstructor (int explicitlyInitializeMe) | |
Construct a new ResourceConstructor object. | |
![]() | |
IResourceConstructor ()=default | |
Construct a new IResourceConstructor object. | |
![]() | |
template<typename TResource, typename TResourceConstructor> | |
static void | RegisterResourceConstructor () |
Registers this resource constructor against its respective ResourceFactory during static initialization. | |
A constructor method for StaticModels that loads such a model from its model file (w/ extensions such as .fbx, .obj, .gltf, and so on)
Such a resource's description in JSON might look like:
Where the path
property is required and the material_overrides
property may be left unspecified. The number next to each material override represents the index of the mesh whose material is being overridden.
|
overrideprivatevirtual |
Creates a StaticModel resource based on its parameters.
methodParameters | The parameters associated with this model object. |
Implements ToyMaker::IResourceConstructor.
|
inlinestatic |
Gets the resource constructor type string for this constructor.