Game of Ur 0.3.3
This is a computer adaptation of Game of Ur, written in C++ mainly using SDL and OpenGL.
|
Creates a static mesh based on its description in JSON. More...
#include <mesh.hpp>
Public Member Functions | |
StaticMeshFromDescription () | |
Creates this StaticMesh constructor. | |
![]() | |
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 constructor type string for this constructor. | |
Private Member Functions | |
std::shared_ptr< IResource > | createResource (const nlohmann::json &methodParameters) override |
The method responsible for actually creating a StaticMesh. | |
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. | |
Creates a static mesh based on its description in JSON.
Such a representation might look like:
|
overrideprivatevirtual |
The method responsible for actually creating a StaticMesh.
methodParameters | The StaticMesh's JSON description. |
Implements ToyMaker::IResourceConstructor.
|
inlinestatic |
Gets the constructor type string for this constructor.