Public Member Functions | Protected Attributes

cyber::renderer::Renderer Class Reference

#include <Renderer.h>

Inheritance diagram for cyber::renderer::Renderer:
cyber::renderer::BlockRenderer cyber::renderer::PrimitiveRenderer cyber::renderer::WorldRenderer

List of all members.

Public Member Functions

 Renderer (const ConfigRepository *cfg)
 ~Renderer (void)
const ConfigRepositoryget_cfg () const
world::Worldget_world () const
bool init (world::World *world)
bool shutdown ()
bool render ()
bool update (float time)

Protected Attributes

const ConfigRepository *const _cfg

Constructor & Destructor Documentation

cyber::renderer::Renderer::Renderer ( const ConfigRepository cfg  ) 

Explicit constructor.

cyber::renderer::Renderer::~Renderer ( void   ) 

Destructor.


Member Function Documentation

const ConfigRepository* cyber::renderer::Renderer::get_cfg (  )  const [inline]

Returns the configuration structure.

world::World* cyber::renderer::Renderer::get_world (  )  const [inline]

Returns the world object.

bool cyber::renderer::Renderer::init ( world::World world  ) 

Initializes the renderer.

bool cyber::renderer::Renderer::render (  ) 

Performs the rendering process.

bool cyber::renderer::Renderer::shutdown (  ) 

Releases all resources used by the renderer.

bool cyber::renderer::Renderer::update ( float  time  ) 

Will be called ones per frame.


Member Data Documentation

The configuration structure.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines