#include <Platform.h>
Public Member Functions | |
virtual void | DestroyWindow ()=0 |
virtual void | Exit (int exitcode)=0 |
Application * | GetApp () |
double | GetAppTime () const |
virtual String | GetContentDirectory () const |
virtual Render::DisplayId | GetDisplay (int screen) |
virtual int | GetDisplayCount () |
GamepadManager * | GetGamepadManager () const |
RenderDevice * | GetRenderer () const |
virtual void | GetWindowSize (int *w, int *h) const =0 |
PlatformCore (Application *app) | |
virtual void | PlayMusicFile (const char *fileName) |
virtual bool | SetFullscreen (const Render::RendererParams &rp, int fullscreen) |
virtual void | SetMouseMode (MouseMode mm) |
virtual RenderDevice * | SetupGraphics (const SetupGraphicsDeviceSet &setupGraphicsDesc, const char *gtype, const Render::RendererParams &rp)=0 |
virtual bool | SetupWindow (int w, int h)=0 |
virtual void | SetWindowTitle (const char *title)=0 |
virtual void | ShowWindow (bool visible)=0 |
virtual | ~PlatformCore () |
Protected Attributes | |
Application * | pApp |
Ptr< GamepadManager > | pGamepadManager |
Ptr< RenderDevice > | pRender |
UInt64 | StartupTicks |
Definition at line 108 of file Platform.h.
Reimplemented in OVR::Platform::Linux::PlatformCore.
Definition at line 51 of file Platform.cpp.
virtual OVR::Platform::PlatformCore::~PlatformCore | ( | ) | [inline, virtual] |
Reimplemented in OVR::Platform::Linux::PlatformCore, OVR::Platform::Win32::PlatformCore, and OVR::Platform::OSX::PlatformCore.
Definition at line 118 of file Platform.h.
virtual void OVR::Platform::PlatformCore::DestroyWindow | ( | ) | [pure virtual] |
virtual void OVR::Platform::PlatformCore::Exit | ( | int | exitcode | ) | [pure virtual] |
Application* OVR::Platform::PlatformCore::GetApp | ( | ) | [inline] |
Definition at line 119 of file Platform.h.
double OVR::Platform::PlatformCore::GetAppTime | ( | ) | const |
Definition at line 58 of file Platform.cpp.
virtual String OVR::Platform::PlatformCore::GetContentDirectory | ( | ) | const [inline, virtual] |
Reimplemented in OVR::Platform::OSX::PlatformCore.
Definition at line 149 of file Platform.h.
Render::DisplayId OVR::Platform::PlatformCore::GetDisplay | ( | int | screen | ) | [virtual] |
Reimplemented in OVR::Platform::Win32::PlatformCore, and OVR::Platform::OSX::PlatformCore.
Definition at line 70 of file Platform.cpp.
virtual int OVR::Platform::PlatformCore::GetDisplayCount | ( | ) | [inline, virtual] |
Reimplemented in OVR::Platform::Win32::PlatformCore, and OVR::Platform::OSX::PlatformCore.
Definition at line 143 of file Platform.h.
GamepadManager* OVR::Platform::PlatformCore::GetGamepadManager | ( | ) | const [inline] |
Definition at line 121 of file Platform.h.
RenderDevice* OVR::Platform::PlatformCore::GetRenderer | ( | ) | const [inline] |
Definition at line 120 of file Platform.h.
virtual void OVR::Platform::PlatformCore::GetWindowSize | ( | int * | w, |
int * | h | ||
) | const [pure virtual] |
virtual void OVR::Platform::PlatformCore::PlayMusicFile | ( | const char * | fileName | ) | [inline, virtual] |
Reimplemented in OVR::Platform::Win32::PlatformCore.
Definition at line 142 of file Platform.h.
bool OVR::Platform::PlatformCore::SetFullscreen | ( | const Render::RendererParams & | rp, |
int | fullscreen | ||
) | [virtual] |
Reimplemented in OVR::Platform::Linux::PlatformCore, and OVR::Platform::OSX::PlatformCore.
Definition at line 63 of file Platform.cpp.
virtual void OVR::Platform::PlatformCore::SetMouseMode | ( | MouseMode | mm | ) | [inline, virtual] |
Reimplemented in OVR::Platform::Linux::PlatformCore, OVR::Platform::Win32::PlatformCore, and OVR::Platform::OSX::PlatformCore.
Definition at line 137 of file Platform.h.
virtual RenderDevice* OVR::Platform::PlatformCore::SetupGraphics | ( | const SetupGraphicsDeviceSet & | setupGraphicsDesc, |
const char * | gtype, | ||
const Render::RendererParams & | rp | ||
) | [pure virtual] |
virtual bool OVR::Platform::PlatformCore::SetupWindow | ( | int | w, |
int | h | ||
) | [pure virtual] |
virtual void OVR::Platform::PlatformCore::SetWindowTitle | ( | const char * | title | ) | [pure virtual] |
virtual void OVR::Platform::PlatformCore::ShowWindow | ( | bool | visible | ) | [pure virtual] |
Application* OVR::Platform::PlatformCore::pApp [protected] |
Definition at line 111 of file Platform.h.
Definition at line 113 of file Platform.h.
Ptr<RenderDevice> OVR::Platform::PlatformCore::pRender [protected] |
Definition at line 112 of file Platform.h.
UInt64 OVR::Platform::PlatformCore::StartupTicks [protected] |
Definition at line 114 of file Platform.h.