Labyrinth
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends
Public Types | Public Member Functions | Protected Attributes | List of all members
LxS::CoreGraphics::Renderable Class Referenceabstract

basic class for most of implementations of IRenderable interface. More...

#include <renderable.hpp>

Inheritance diagram for LxS::CoreGraphics::Renderable:
Inheritance graph
Collaboration diagram for LxS::CoreGraphics::Renderable:
Collaboration graph

Public Types

enum  Rendermode { ForReal, ForCoords3D, ForCoordsGame }
 purpose of rendering. ForReal is "to display", ForCoords3D is "to determine where user has clicked" More...
 

Public Member Functions

float GetInitializedPercentage ()
 0= uninitialized; 100=ready; other? for progress bars
 
virtual void RefreshAssets ()
 To facilitate refreshing app after switching OpenGL Context (as in Android lifecycle)
 
virtual void Initialize ()=0
 set up resources. (this is to facilitate late (delayed) initialization.
 
virtual void Render (Rendermode mode)=0
 render something
 
virtual void UnloadResources ()=0
 free up consumed resources while (possibly temporarily) object is not critical
 
virtual void Animate (float dt)=0
 move contents dt=delta time in seconds since last call to animate;
 
virtual unsigned long GetTexelsCount ()=0
 sum of dimensionsxdepths of all textures
 
virtual unsigned long GetFacesCount ()=0
 all 3D faces
 

Protected Attributes

float initialized_percentage
 0-100; 0- just constructed; 100 - redy to render; 0-100 - for progressbar
 

Detailed Description

basic class for most of implementations of IRenderable interface.

Member Enumeration Documentation

purpose of rendering. ForReal is "to display", ForCoords3D is "to determine where user has clicked"

Enumerator
ForReal 

proper rendering for display

ForCoords3D 

rendering for coordinate detection

ForCoordsGame 

for detection of ingame coordinate system - unused


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