#include <Device.h>
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::String & | getDataPath () |
static uint32 | getRealKey (uint32 input) |
static render::Render * | getRenderInstance () |
static Device * | getDeviceInstance () |
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 [] |
core::Device::Device | ( | ) |
Constructor
virtual core::Device::~Device | ( | ) | [virtual] |
Destructor
bool core::Device::createDevice | ( | DeviceConfig & | device | ) |
Create the main device
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
path | The data path |
static lang::String& core::Device::getDataPath | ( | ) | [static] |
Get 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] |
virtual bool core::Device::createWindow | ( | DeviceConfig & | device | ) | [protected, virtual] |
Create the window.
renderType | The type of render (e.g. RT_OPENGL). |
bool core::Device::createRender | ( | DeviceConfig & | device, | |
HWND | hWnd | |||
) | [protected] |
An auxiliar method to create the render.
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
render::Render* core::Device::_pRenderDevice [protected] |
The render device.