API Documentation
Loading...
Searching...
No Matches
GraphicsUpdater Class Reference

#include <GraphicsUpdater.h>

Inheritance diagram for GraphicsUpdater:
[legend]
Collaboration diagram for GraphicsUpdater:
[legend]

Public Member Functions

void addManager (const UUID &id, Renderer *renderer)
 
void addPipeline (GraphicsPipeline *pipline)
 
GraphicsUpdateArgumentsargs ()
 
CheckoutLock checkout (const UUID &id, bool wait_until_ready)
 
const DynamicPointer< GraphicsDevice > & device () const
 
 GraphicsUpdater (DesignObjectLookup *lookup, const DynamicPointer< GraphicsDevice > &device, ProgressInfo *log=nullptr)
 
bool hasManager (const UUID &id)
 
Time lastUpdateTime () const
 
void recreate ()
 
void removeManager (const UUID &id)
 
void removePipeline (GraphicsPipeline *pipline)
 
void setExceptionCallback (const std::function< void(const Exception &)> &callback)
 
void setIsGrabSetup (bool grab_setup)
 
void setLog (ProgressInfo *log)
 
void setLookup (DesignObjectLookup *lookup)
 
CheckoutLock tryCheckout (const UUID &id, bool wait_until_ready)
 
void update ()
 
void update (DesignObjectLookup *lookup, Time time) override
 
void update (GraphicsUpdateArguments &args)
 
 ~GraphicsUpdater ()
 
- Public Member Functions inherited from DesignObjectUpdateTarget

Static Public Member Functions

static GraphicsUpdaterDefaultUpdater (DesignObjectLookup *lookup, ProgressInfo *log, DynamicPointer< GraphicsDevice > device)
 

Protected Attributes

GraphicsUpdateArguments m_args
 
std::mutex m_critical_section
 
DynamicPointer< GraphicsDevicem_device
 
std::function< void(const Exception &)> m_exception_callback
 
bool m_grab_setup
 
Time m_last_update_time
 
Buffer< GraphicsPipeline * > m_pipelines
 
Dictionary< UUID, Renderer * > m_renderers
 
volatile uint04 m_total_checked_out_count
 
Dictionary< UUID, bool > needs_update
 

Friends

class CheckoutLock
 

Constructor & Destructor Documentation

◆ GraphicsUpdater()

GraphicsUpdater ( DesignObjectLookup * lookup,
const DynamicPointer< GraphicsDevice > & device,
ProgressInfo * log = nullptr )

◆ ~GraphicsUpdater()

Member Function Documentation

◆ addManager()

void addManager ( const UUID & id,
Renderer * renderer )

◆ addPipeline()

void addPipeline ( GraphicsPipeline * pipline)
inline

◆ args()

GraphicsUpdateArguments & args ( )
inline

◆ checkout()

CheckoutLock checkout ( const UUID & id,
bool wait_until_ready )

◆ DefaultUpdater()

static GraphicsUpdater * DefaultUpdater ( DesignObjectLookup * lookup,
ProgressInfo * log,
DynamicPointer< GraphicsDevice > device )
static

◆ device()

const DynamicPointer< GraphicsDevice > & device ( ) const
inline

◆ hasManager()

bool hasManager ( const UUID & id)

◆ lastUpdateTime()

Time lastUpdateTime ( ) const
inline

◆ recreate()

void recreate ( )

◆ removeManager()

void removeManager ( const UUID & id)

◆ removePipeline()

void removePipeline ( GraphicsPipeline * pipline)

◆ setExceptionCallback()

void setExceptionCallback ( const std::function< void(const Exception &)> & callback)
inline

◆ setIsGrabSetup()

void setIsGrabSetup ( bool grab_setup)

◆ setLog()

void setLog ( ProgressInfo * log)
inline

◆ setLookup()

void setLookup ( DesignObjectLookup * lookup)
inline

◆ tryCheckout()

CheckoutLock tryCheckout ( const UUID & id,
bool wait_until_ready )

◆ update() [1/3]

void update ( )

◆ update() [2/3]

void update ( DesignObjectLookup * lookup,
Time time )
overridevirtual

◆ update() [3/3]

void update ( GraphicsUpdateArguments & args)

Friends And Related Symbol Documentation

◆ CheckoutLock

friend class CheckoutLock
friend

Member Data Documentation

◆ m_args

GraphicsUpdateArguments m_args
protected

◆ m_critical_section

std::mutex m_critical_section
protected

◆ m_device

DynamicPointer<GraphicsDevice> m_device
protected

◆ m_exception_callback

std::function<void(const Exception&)> m_exception_callback
protected

◆ m_grab_setup

bool m_grab_setup
protected

◆ m_last_update_time

Time m_last_update_time
protected

◆ m_pipelines

Buffer<GraphicsPipeline*> m_pipelines
protected

◆ m_renderers

Dictionary<UUID, Renderer*> m_renderers
protected

◆ m_total_checked_out_count

volatile uint04 m_total_checked_out_count
protected

◆ needs_update

Dictionary<UUID, bool> needs_update
protected

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