AireEngine
A 3D Open-World Game Engine
Loading...
Searching...
No Matches
Public Member Functions | Protected Attributes | List of all members
Aire::Resource Class Referenceabstract

A base resource class. More...

#include <resource.h>

Inheritance diagram for Aire::Resource:
Inheritance graph
[legend]

Public Member Functions

 Resource ()
 Default constructor.
 
virtual ~Resource ()
 Default destructor.
 
virtual uint32_t getSize ()=0
 
bool isLoadToGpu ()
 
ResourceState getState ()
 
void setState (ResourceState state)
 

Protected Attributes

ResourceState resourceState
 

Detailed Description

A base resource class.

Member Function Documentation

◆ getSize()

virtual uint32_t Aire::Resource::getSize ( )
pure virtual
Returns
The resource size in memory (in Bytes)

Implemented in Aire::Texture, Aire::Material, Aire::Mesh, and Aire::Model.

◆ getState()

ResourceState Resource::getState ( )
Returns
The current state of the resource

◆ isLoadToGpu()

bool Resource::isLoadToGpu ( )
Returns
True if the resource is loaded on GPU

◆ setState()

void Resource::setState ( ResourceState state)

Set the current state of the resource

Parameters
stateThe state to set

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