Game of Ur 0.3.3
This is a computer adaptation of Game of Ur, written in C++ mainly using SDL and OpenGL.
Loading...
Searching...
No Matches
ToyMaker::FramebufferFromDescription Class Reference

Constructs a Framebuffer from its description in JSON. More...

#include <framebuffer.hpp>

Inheritance diagram for ToyMaker::FramebufferFromDescription:
ToyMaker::ResourceConstructor< Framebuffer, FramebufferFromDescription > ToyMaker::IResourceConstructor

Public Member Functions

 FramebufferFromDescription ()
 Constructs a new FramebufferFromDescription object.
 
- Public Member Functions inherited from ToyMaker::ResourceConstructor< Framebuffer, FramebufferFromDescription >
std::string getResourceConstructorName_ () const override
 Gets the resource constructor type string of the constructor.
 
- Public Member Functions inherited from ToyMaker::IResourceConstructor
virtual ~IResourceConstructor ()=default
 Destroys this resource constructor (when the application is terminated.)
 

Static Public Member Functions

static std::string getResourceConstructorName ()
 Get the resource constructor type string associated with this constructor.
 

Private Member Functions

std::shared_ptr< IResourcecreateResource (const nlohmann::json &methodParams) override
 The method actually responsible for the creation of a framebuffer with this constructor.
 

Additional Inherited Members

- Protected Member Functions inherited from ToyMaker::ResourceConstructor< Framebuffer, FramebufferFromDescription >
 ResourceConstructor (int explicitlyInitializeMe)
 Construct a new ResourceConstructor object.
 
- Protected Member Functions inherited from ToyMaker::IResourceConstructor
 IResourceConstructor ()=default
 Construct a new IResourceConstructor object.
 
- Static Protected Member Functions inherited from ToyMaker::IResourceConstructor
template<typename TResource, typename TResourceConstructor>
static void RegisterResourceConstructor ()
 Registers this resource constructor against its respective ResourceFactory during static initialization.
 

Detailed Description

Constructs a Framebuffer from its description in JSON.

Member Function Documentation

◆ createResource()

std::shared_ptr< IResource > FramebufferFromDescription::createResource ( const nlohmann::json & methodParams)
overrideprivatevirtual

The method actually responsible for the creation of a framebuffer with this constructor.

Parameters
methodParamsThe framebuffer parameters, in JSON.
Returns
std::shared_ptr<IResource> A reference to the framebuffer resource.

Implements ToyMaker::IResourceConstructor.

◆ getResourceConstructorName()

static std::string ToyMaker::FramebufferFromDescription::getResourceConstructorName ( )
inlinestatic

Get the resource constructor type string associated with this constructor.

Returns
std::string The resource constructor type string associated with this constructor.
See also
ResourceConstructor<TResource, TConstructor>

The documentation for this class was generated from the following files: