|
Game of Ur 0.3.3
This is a computer adaptation of Game of Ur, written in C++ mainly using SDL and OpenGL.
|
A resource constructor which loads a texture from a supported image file located via its file path. More...
#include <texture.hpp>
Static Public Member Functions | |
| static std::string | getResourceConstructorName () |
Private Member Functions | |
| std::shared_ptr< IResource > | createResource (const nlohmann::json &methodParameters) override |
| Creates a resource object using the parameters specified in methodParameters. | |
Additional Inherited Members | |
Public Member Functions inherited from ToyMaker::ResourceConstructor< Texture, TextureFromFile > | |
| 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.) | |
Protected Member Functions inherited from ToyMaker::ResourceConstructor< Texture, TextureFromFile > | |
| 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. | |
A resource constructor which loads a texture from a supported image file located via its file path.
An example JSON texture resource description.
|
overrideprivatevirtual |
Creates a resource object using the parameters specified in methodParameters.
| methodParameters | The parameters used to construct an object via this constructor. |
Implements ToyMaker::IResourceConstructor.