Base of every event the game passes between a MsgSource and a MsgSink.
Definition message.h:41
Relay that stores a copy of every message it accepts and forwards to its own sinks.
Definition msgqueue.h:34
Receiver of engine messages.
Definition msgsink.h:37
Sink that forwards every message it receives to one other sink.
Definition rendererbase.h:43
MsgSink * mTarget
The sink every message is handed to.
Definition rendererbase.h:79
virtual void DispatchPriv(Message *pMsg)
Receive a message directly, which this class ignores.
virtual void Dispatch(Message *pMsg)
Forward the message to the target sink.
virtual void Start()
Start the renderer running.
virtual void PollMessages()
Deliver every queued message.
virtual void Update()=0
Advance the renderer by one frame.
RendererBase()
Start the queue with the router as its one sink.
virtual void UpdateSimple()
Advance the renderer by one frame without the full update.
virtual void DrawSimple()
Draw the frame without the full draw.
virtual void Stop()
Stop the renderer running.
virtual void Draw()=0
Draw the frame.
virtual ~RendererBase()
Release the queue and the router.
virtual void Dispatch(Message *pMsg)
Accept a message into the queue.