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::IResource Class Referenceabstract

Base class of all Resource types. More...

#include <resource_database.hpp>

Inheritance diagram for ToyMaker::IResource:
ToyMaker::Resource< NineSlicePanel > ToyMaker::Resource< Framebuffer > ToyMaker::Resource< Material > ToyMaker::Resource< SceneNode > ToyMaker::Resource< ShaderProgram > ToyMaker::Resource< SimObject > ToyMaker::Resource< StaticMesh > ToyMaker::Resource< StaticModel > ToyMaker::Resource< TextFont > ToyMaker::Resource< Texture > ToyMaker::Resource< ViewportNode > ToyMaker::Resource< TDerived >

Public Member Functions

virtual ~IResource ()=default
 Destroy the IResource object.
 
virtual std::string getResourceTypeName_ () const =0
 Get the Resource Type string for this resource.
 

Protected Member Functions

 IResource ()=default
 Construct a new IResource object.
 

Static Protected Member Functions

template<typename TResource>
static void RegisterResource ()
 Registers this resource as a Resource type with the ResourceDatabase.
 

Detailed Description

Base class of all Resource types.

Member Function Documentation

◆ getResourceTypeName_()

◆ RegisterResource()

template<typename TResource>
void ToyMaker::IResource::RegisterResource ( )
staticprotected

Registers this resource as a Resource type with the ResourceDatabase.

Template Parameters
TResourceThe type of Resource being registered.

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