ProtoZed  awesome branch
A simple but powerful game framework
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
PZ::Renderer Class Referenceabstract
Inheritance diagram for PZ::Renderer:
PZ::System PZ::NonCopyable PZ::EventHandler

Public Member Functions

 Renderer (const SystemType &type, Application &application)
 
virtual ~Renderer ()
 
virtual bool Start ()
 Starts the system.
 
virtual bool Stop ()
 Stops the system.
 
virtual void Update (float deltaTime)=0
 Runs an update.
 
void SetVideoMode (const VideoMode &newVideoMode)
 
const VideoModeGetVideMode () const
 
void SetTitle (const std::string &newTitle)
 
const std::string & GetTitle () const
 
- Public Member Functions inherited from PZ::System
 System (const SystemType &type, Application &application)
 
virtual ~System ()
 
const SystemTypeGetType () const
 Gets the type.
 
bool IsStarted () const
 
- Public Member Functions inherited from PZ::EventHandler
 EventHandler ()
 
virtual ~EventHandler ()
 
bool SubscribeTo (EventHandler &handler)
 
bool UnsubscribeTo (EventHandler &handler)
 
template<class T , class EventT >
bool RegisterEvent (T *obj, void(T::*memFn)(EventT &))
 
template<class T , class EventT >
bool UnregisterEvent (T *obj, void(T::*memFn)(EventT &))
 
void HandleEvent (const Event &e)
 
void EmitEvent (const Event &e) const
 

Protected Member Functions

virtual void videoModeUpdated ()
 
virtual void titleUpdated ()
 
virtual bool canChangeTitle () const
 
- Protected Member Functions inherited from PZ::System
ApplicationGetApplication () const
 
- Protected Member Functions inherited from PZ::NonCopyable
 NonCopyable ()
 

Protected Attributes

VideoMode videoMode
 
std::string title
 

Constructor & Destructor Documentation

PZ::Renderer::Renderer ( const SystemType type,
Application application 
)
virtual PZ::Renderer::~Renderer ( )
virtual

Member Function Documentation

virtual bool PZ::Renderer::canChangeTitle ( ) const
inlineprotectedvirtual
const std::string& PZ::Renderer::GetTitle ( ) const
inline
const VideoMode& PZ::Renderer::GetVideMode ( ) const
inline
void PZ::Renderer::SetTitle ( const std::string &  newTitle)
void PZ::Renderer::SetVideoMode ( const VideoMode newVideoMode)
virtual bool PZ::Renderer::Start ( )
virtual

Starts the system.

Returns
true if it succeeds, false if it fails.

Reimplemented from PZ::System.

virtual bool PZ::Renderer::Stop ( )
virtual

Stops the system.

Returns
true if it succeeds, false if it fails.

Reimplemented from PZ::System.

virtual void PZ::Renderer::titleUpdated ( )
inlineprotectedvirtual
virtual void PZ::Renderer::Update ( float  deltaTime)
pure virtual

Runs an update.

Parameters
deltaTimeTime since the last frame.

Implements PZ::System.

virtual void PZ::Renderer::videoModeUpdated ( )
inlineprotectedvirtual

Member Data Documentation

std::string PZ::Renderer::title
protected
VideoMode PZ::Renderer::videoMode
protected

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