Constructs a Framebuffer from its description in JSON.
More...
#include <framebuffer.hpp>
|
| FramebufferFromDescription () |
| Constructs a new FramebufferFromDescription 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.)
|
|
|
std::shared_ptr< IResource > | createResource (const nlohmann::json &methodParams) override |
| The method actually responsible for the creation of a framebuffer with this constructor.
|
|
Constructs a Framebuffer from its description in JSON.
◆ 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
-
methodParams | The 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 |
The documentation for this class was generated from the following files: