5 #include "EegeoWindowsGuard.h"
7 #include <EGL\eglplatform.h>
18 , m_requiresPBuffer(
false)
19 , m_oversampleScale(0.f)
23 inline static WindowsNativeState WindowsNativeState::Make(
const std::string& appName, HINSTANCE hinstance, EGLNativeWindowType nativeWindowType,
int width,
int height,
bool fullScreen,
bool requiresPBuffer,
float oversampleScale,
const std::string& deviceModel,
float deviceDpiconst,
const std::string& assetsPath = std::string(
""));
24 inline static WindowsNativeState* WindowsNativeState::Create(
const std::string& appName, HINSTANCE hinstance, EGLNativeWindowType nativeWindowType,
int width,
int height,
bool fullScreen,
bool requiresPBuffer,
float oversampleScale,
const std::string& deviceModel,
float deviceDpi);
26 std::string GetAppName()
const {
return m_appName; }
27 HINSTANCE GetHInstance()
const {
return m_hinstance; }
28 EGLNativeWindowType GetWindow()
const {
return m_window; }
29 int GetWidth()
const {
return m_width; }
30 int GetHeight()
const {
return m_height; }
31 bool IsFullScreen()
const {
return m_fullScreen; }
32 bool RequiresPBuffer()
const {
return m_requiresPBuffer; }
33 float GetOversampleScale()
const {
return m_oversampleScale; }
34 std::string GetDeviceModel()
const {
return m_deviceModel; }
35 const std::string& GetAssetsFolder()
const {
return m_assetsFolder; }
36 float GetDeviceDpi()
const {
return m_deviceDpi; }
38 void SetSize(
int width,
int height) { m_width = width, m_height = height; }
42 const std::string& appName,
44 EGLNativeWindowType window,
49 float oversampleScale,
50 const std::string& deviceModel,
52 const std::string& assetsFolder)
54 , m_hinstance(hinstance)
58 , m_fullScreen(fullScreen)
59 , m_requiresPBuffer(requiresPBuffer)
60 , m_oversampleScale(oversampleScale)
61 , m_deviceModel(deviceModel)
62 , m_deviceDpi(deviceDpi)
63 , m_assetsFolder(assetsFolder)
66 std::string m_assetsFolder;
67 std::string m_appName;
68 HINSTANCE m_hinstance;
69 EGLNativeWindowType m_window;
73 bool m_requiresPBuffer;
74 float m_oversampleScale;
75 std::string m_deviceModel;
80 inline WindowsNativeState WindowsNativeState::Make(
const std::string& appName, HINSTANCE hinstance, EGLNativeWindowType nativeWindowType,
int width,
int height,
bool fullScreen,
bool requiresPBuffer,
float oversampleScale,
const std::string& deviceModel,
float deviceDpi,
const std::string& assetsPath)
82 WindowsNativeState nativeState(appName, hinstance, nativeWindowType, width, height, fullScreen, requiresPBuffer, oversampleScale, deviceModel, deviceDpi, assetsPath);
87 inline WindowsNativeState* WindowsNativeState::Create(
const std::string& appName, HINSTANCE hinstance, EGLNativeWindowType nativeWindowType,
int width,
int height,
bool fullScreen,
bool requiresPBuffer,
float oversampleScale,
const std::string& deviceModel,
float deviceDpi)
89 return Eegeo_NEW(
WindowsNativeState)(appName, hinstance, nativeWindowType, width, height, fullScreen, requiresPBuffer, oversampleScale, deviceModel, deviceDpi,
"");