core::Device Class Reference

This is an abstract class, where all the specific device context need to extend. More...

#include <Device.h>

Inheritance diagram for core::Device:

Inheritance graph
[legend]
Collaboration diagram for core::Device:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 Device ()
virtual ~Device ()
bool createDevice (DeviceConfig &device)
virtual bool run ()
virtual float32 getTimeInSeconds ()
const char * toString ()

Static Public Member Functions

static void setDataPath (lang::String path)
static lang::StringgetDataPath ()
static uint32 getRealKey (uint32 input)
static render::RendergetRenderInstance ()
static DevicegetDeviceInstance ()

Static Public Attributes

static float32 windowWidth
static float32 windowHeight

Protected Member Functions

virtual bool createWindow (DeviceConfig &device)
bool createRender (DeviceConfig &device, HWND hWnd)

Protected Attributes

render::Render_pRenderDevice

Static Protected Attributes

static const int32 keyMap []


Detailed Description

This is an abstract class, where all the specific device context need to extend.

Note:
All the device classes need to extend from this class.

Constructor & Destructor Documentation

core::Device::Device (  ) 

Constructor

virtual core::Device::~Device (  )  [virtual]

Destructor


Member Function Documentation

bool core::Device::createDevice ( DeviceConfig device  ) 

Create the main device

Parameters:
device The device configuration

virtual bool core::Device::run (  )  [virtual]

Initialize the render

virtual float32 core::Device::getTimeInSeconds (  )  [inline, virtual]

Return the time in seconds

static void core::Device::setDataPath ( lang::String  path  )  [static]

Set the data path

Parameters:
path The data path

static lang::String& core::Device::getDataPath (  )  [static]

Get the data path

Returns:
The data path

static uint32 core::Device::getRealKey ( uint32  input  )  [static]

An auxiliar method to get the real key.

static render::Render* core::Device::getRenderInstance (  )  [static]

Return the render object instance

static Device* core::Device::getDeviceInstance (  )  [static]

Return the device object instance

const char* core::Device::toString (  )  [inline, virtual]

See also:
Object::toString()

Implements Object.

virtual bool core::Device::createWindow ( DeviceConfig device  )  [protected, virtual]

Create the window.

Parameters:
renderType The type of render (e.g. RT_OPENGL).
Returns:
Returns true if success.

bool core::Device::createRender ( DeviceConfig device,
HWND  hWnd 
) [protected]

An auxiliar method to create the render.


Member Data Documentation

float32 core::Device::windowWidth [static]

Window width

float32 core::Device::windowHeight [static]

Window height

const int32 core::Device::keyMap[] [static, protected]

The platform specific key map

The render device.


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

Generated on Mon Mar 3 10:53:09 2008 for Aika by  doxygen 1.5.5