mirror of https://github.com/bjornbytes/lovr.git
Make Windows platform functions more private;
This commit is contained in:
parent
1ca7aeb94e
commit
f364fe030b
|
@ -163,8 +163,3 @@ void lovrPlatformGetMousePosition(double* x, double* y);
|
||||||
void lovrPlatformSetMouseMode(MouseMode mode);
|
void lovrPlatformSetMouseMode(MouseMode mode);
|
||||||
bool lovrPlatformIsMouseDown(MouseButton button);
|
bool lovrPlatformIsMouseDown(MouseButton button);
|
||||||
bool lovrPlatformIsKeyDown(KeyCode key);
|
bool lovrPlatformIsKeyDown(KeyCode key);
|
||||||
#ifdef _WIN32
|
|
||||||
#include <windows.h>
|
|
||||||
HANDLE lovrPlatformGetWindow(void);
|
|
||||||
HGLRC lovrPlatformGetContext(void);
|
|
||||||
#endif
|
|
||||||
|
|
|
@ -10,18 +10,21 @@
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
|
|
||||||
#if defined(_WIN32)
|
#if defined(_WIN32)
|
||||||
|
#include <windows.h>
|
||||||
|
HANDLE lovrPlatformGetWindow(void);
|
||||||
|
HGLRC lovrPlatformGetContext(void);
|
||||||
#define XR_USE_GRAPHICS_API_OPENGL
|
#define XR_USE_GRAPHICS_API_OPENGL
|
||||||
#define XR_USE_PLATFORM_WIN32
|
#define XR_USE_PLATFORM_WIN32
|
||||||
#define SWAPCHAIN_TYPE XrSwapchainImageOpenGLKHR
|
#define SWAPCHAIN_TYPE XrSwapchainImageOpenGLKHR
|
||||||
#elif defined(__ANDROID__)
|
#elif defined(__ANDROID__)
|
||||||
#include <EGL/egl.h>
|
#include <EGL/egl.h>
|
||||||
#include <jni.h>
|
#include <jni.h>
|
||||||
#define XR_USE_GRAPHICS_API_OPENGL_ES
|
|
||||||
#define XR_USE_PLATFORM_ANDROID
|
|
||||||
#define SWAPCHAIN_TYPE XrSwapchainImageOpenGLESKHR
|
|
||||||
EGLDisplay lovrPlatformGetEGLDisplay();
|
EGLDisplay lovrPlatformGetEGLDisplay();
|
||||||
EGLContext lovrPlatformGetEGLContext();
|
EGLContext lovrPlatformGetEGLContext();
|
||||||
EGLConfig lovrPlatformGetEGLConfig();
|
EGLConfig lovrPlatformGetEGLConfig();
|
||||||
|
#define XR_USE_GRAPHICS_API_OPENGL_ES
|
||||||
|
#define XR_USE_PLATFORM_ANDROID
|
||||||
|
#define SWAPCHAIN_TYPE XrSwapchainImageOpenGLESKHR
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <openxr/openxr.h>
|
#include <openxr/openxr.h>
|
||||||
|
|
Loading…
Reference in New Issue