More cleanup
This commit is contained in:
parent
7d9d80f07a
commit
81b5a7e789
2 changed files with 7 additions and 5 deletions
|
@ -2,6 +2,7 @@
|
||||||
|
|
||||||
#include <chrono>
|
#include <chrono>
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <thread>
|
#include <thread>
|
||||||
|
|
||||||
|
@ -20,7 +21,7 @@
|
||||||
|
|
||||||
BOOL bActive = TRUE;
|
BOOL bActive = TRUE;
|
||||||
|
|
||||||
extern GLFWwindow *window;
|
GLFWwindow *window;
|
||||||
|
|
||||||
static void KeyCallback(GLFWwindow *window, int key, int scancode, int action, int mods)
|
static void KeyCallback(GLFWwindow *window, int key, int scancode, int action, int mods)
|
||||||
{
|
{
|
||||||
|
@ -286,10 +287,11 @@ BOOL PlatformBackend_SystemTask(void)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
glfwPollEvents();
|
||||||
|
|
||||||
while (!bActive)
|
while (!bActive)
|
||||||
glfwWaitEvents();
|
glfwWaitEvents();
|
||||||
|
|
||||||
glfwPollEvents();
|
|
||||||
/*
|
/*
|
||||||
while (SDL_PollEvent(NULL) || !bActive)
|
while (SDL_PollEvent(NULL) || !bActive)
|
||||||
{
|
{
|
||||||
|
@ -318,7 +320,7 @@ BOOL PlatformBackend_SystemTask(void)
|
||||||
|
|
||||||
void PlatformBackend_ShowMessageBox(const char *title, const char *message)
|
void PlatformBackend_ShowMessageBox(const char *title, const char *message)
|
||||||
{
|
{
|
||||||
//SDL_ShowSimpleMessageBox(SDL_MESSAGEBOX_ERROR, title, message, NULL);
|
printf("ShowMessageBox - '%s' - '%s'\n", title, message);
|
||||||
}
|
}
|
||||||
|
|
||||||
unsigned long PlatformBackend_GetTicks(void)
|
unsigned long PlatformBackend_GetTicks(void)
|
||||||
|
|
|
@ -14,8 +14,8 @@
|
||||||
|
|
||||||
#include "../Platform.h"
|
#include "../Platform.h"
|
||||||
|
|
||||||
// Horrible hacks
|
// Horrible hack
|
||||||
GLFWwindow *window;
|
extern GLFWwindow *window;
|
||||||
|
|
||||||
BOOL WindowBackend_OpenGL_CreateWindow(const char *window_title, int *screen_width, int *screen_height, BOOL fullscreen)
|
BOOL WindowBackend_OpenGL_CreateWindow(const char *window_title, int *screen_width, int *screen_height, BOOL fullscreen)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue