iv::GlSystem Class Reference

#include <GlSystem.hpp>

Public Member Functions

System control
 GlSystem (SystemContainer *sc, RenderTarget *rt, bool gl_enabled)
 
 ~GlSystem ()
 
void gl_enable ()
 
void gl_disable ()
 
void gl_drop ()
 
debug
virtual std::string debug_name () const override
 
client interface
void AddGlListener (GlListener *listener)
 
void RemoveGlListener (GlListener *listener)
 
bool GlIsEnabled () const
 
RenderTargetrender_target () const
 
- Public Member Functions inherited from iv::System
 System (SystemContainer *sc)
 
virtual ~System ()
 
virtual bool flushSystem ()
 
virtual void status (TextDebugView *view)
 
SystemContainersystem_container () const
 
void retain ()
 
void release ()
 
- Public Member Functions inherited from iv::Context
 Context ()
 
virtual ~Context ()
 
template<class ... Items>
void log (SrcInfo const &info, LogId id, Items const &... items) const
 
bool log_enabled (LogId id) const
 
template<class ... Items>
void warning (SrcInfo const &info, Items const &... items) const
 

Additional Inherited Members

- Protected Member Functions inherited from iv::System
virtual bool log_process_enabled (LogId id) const override final
 
virtual void log_process (SrcInfo const &info, LogId id, std::string const &message) const override final
 

Detailed Description

Definition at line 42 of file GlSystem.hpp.

Constructor & Destructor Documentation

◆ GlSystem()

iv::GlSystem::GlSystem ( SystemContainer sc,
RenderTarget rt,
bool  gl_enabled 
)

Definition at line 8 of file GlSystem.cpp.

◆ ~GlSystem()

iv::GlSystem::~GlSystem ( )

Definition at line 16 of file GlSystem.cpp.

Member Function Documentation

◆ gl_enable()

void iv::GlSystem::gl_enable ( )

Definition at line 25 of file GlSystem.cpp.

◆ gl_disable()

void iv::GlSystem::gl_disable ( )

Definition at line 38 of file GlSystem.cpp.

◆ gl_drop()

void iv::GlSystem::gl_drop ( )

Definition at line 51 of file GlSystem.cpp.

◆ debug_name()

virtual std::string iv::GlSystem::debug_name ( ) const
inlineoverridevirtual

Reimplemented from iv::System.

Definition at line 59 of file GlSystem.hpp.

◆ AddGlListener()

void iv::GlSystem::AddGlListener ( GlListener listener)

GlListener methods are called right before or right after the scene render (inside DisplaySystem::draw). This is used mainly on Android, on PC it may be used for some debugging or also for backgrounding. GlListeners should not be added or removed during the callback or during render - I expect the changes in instances to be done in reaction to data changes, not in reaction to rendering requests.

Definition at line 69 of file GlSystem.cpp.

◆ RemoveGlListener()

void iv::GlSystem::RemoveGlListener ( GlListener listener)

Definition at line 77 of file GlSystem.cpp.

◆ GlIsEnabled()

bool iv::GlSystem::GlIsEnabled ( ) const

Definition at line 64 of file GlSystem.cpp.

◆ render_target()

RenderTarget * iv::GlSystem::render_target ( ) const

Definition at line 20 of file GlSystem.cpp.


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