12#ifndef FOOLSENGINE_SHAPEGEN_H
13#define FOOLSENGINE_SHAPEGEN_H
16#include <nlohmann/json.hpp>
47 StaticMeshSphereLatLong():
50 inline static std::string getResourceConstructorName() {
return "sphereLatLong"; }
52 std::shared_ptr<IResource>
createResource(
const nlohmann::json& methodParameters)
override;
75 class StaticMeshRectangleDimensions:
public ResourceConstructor<StaticMesh, StaticMeshRectangleDimensions> {
77 StaticMeshRectangleDimensions():
80 inline static std::string getResourceConstructorName() {
return "rectangleDimensions"; }
82 std::shared_ptr<IResource>
createResource(
const nlohmann::json& methodParameters)
override;
110 StaticMeshCuboidDimensions():
113 inline static std::string getResourceConstructorName() {
return "cuboidDimensions"; }
115 std::shared_ptr<IResource>
createResource(
const nlohmann::json& methodParameters)
override;
127 StaticModelSphereLatLong():
130 inline static std::string getResourceConstructorName() {
return "sphereLatLong"; }
132 std::shared_ptr<IResource>
createResource(
const nlohmann::json& methodParameters)
override;
143 class StaticModelRectangleDimensions:
public ResourceConstructor<StaticModel, StaticModelRectangleDimensions> {
145 StaticModelRectangleDimensions():
148 inline static std::string getResourceConstructorName() {
return "rectangleDimensions"; }
150 std::shared_ptr<IResource>
createResource(
const nlohmann::json& methodParameters)
override;
162 StaticModelCuboidDimensions():
165 inline static std::string getResourceConstructorName() {
return "cuboidDimensions"; }
167 std::shared_ptr<IResource>
createResource(
const nlohmann::json& methodParameters)
override;
ResourceConstructor(int explicitlyInitializeMe)
Definition resource_database.hpp:491
std::shared_ptr< IResource > createResource(const nlohmann::json &methodParameters) override
Creates a resource object using the parameters specified in methodParameters.
Definition shapegen.cpp:39
std::shared_ptr< IResource > createResource(const nlohmann::json &methodParameters) override
Creates a resource object using the parameters specified in methodParameters.
Definition shapegen.cpp:31
std::shared_ptr< IResource > createResource(const nlohmann::json &methodParameters) override
Creates a resource object using the parameters specified in methodParameters.
Definition shapegen.cpp:23
std::shared_ptr< IResource > createResource(const nlohmann::json &methodParameters) override
Creates a resource object using the parameters specified in methodParameters.
Definition shapegen.cpp:110
std::shared_ptr< IResource > createResource(const nlohmann::json &methodParameters) override
Creates a resource object using the parameters specified in methodParameters.
Definition shapegen.cpp:82
std::shared_ptr< IResource > createResource(const nlohmann::json &methodParameters) override
Creates a resource object using the parameters specified in methodParameters.
Definition shapegen.cpp:53
Classes, constructors for this engine's representation of 3D models.
A file containing the ToyMaker::StaticMesh class and related structures.
Namespace containing all class definitions and functions related to the ToyMaker engine.
Definition camera_system.hpp:20
Headers relating to resources and their management for a given project.