Gwork: 0.3.0Dev
Gwk::ResourceLoader Class Referenceabstract

#include <PlatformTypes.h>

Inheritance diagram for Gwk::ResourceLoader:
Gwk::Renderer::AllegroResourceLoader Gwk::Renderer::DirectX11ResourceLoader Gwk::Renderer::IrrlichtResourceLoader Gwk::Renderer::OpenGLResourceLoader Gwk::Renderer::OpenGLResourceLoader Gwk::Renderer::SDL2ResourceLoader Gwk::Renderer::SFML2ResourceLoader Gwk::Renderer::SoftwareResourceLoader

Public Types

enum  NotificationType {
  NotificationType::DeviceLost, NotificationType::DeviceAcquired, NotificationType::ReleaseResources, MaxMessages,
  UserMessageStart = 100
}
 Types of notification that the loader might want to know about. More...
 

Public Member Functions

virtual Font::Status LoadFont (Font &font)=0
 
virtual void FreeFont (Font &font)=0
 
virtual Texture::Status LoadTexture (Texture &texture)=0
 
virtual void FreeTexture (Texture &texture)=0
 
virtual void Notify (NotificationType msg)
 

Detailed Description

Base class for resource loaders.

These are used to load, create and destroy resource needed for Gwork.

Member Enumeration Documentation

◆ NotificationType

Types of notification that the loader might want to know about.

Enumerator
DeviceLost 

Device lost, perhaps release resources.

DeviceAcquired 

Device reappeared, perhaps reload resources.

ReleaseResources 

Release any resources held.

Member Function Documentation

◆ Notify()

virtual void Gwk::ResourceLoader::Notify ( NotificationType  msg)
inlinevirtual

Notification of certain events. May be platform specific. Loader can deal with the events accordingly.


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