Final commit

This commit is contained in:
Reece Mackie 2019-04-26 20:55:47 +01:00
parent 0b503f4c98
commit 55ce36c531
4 changed files with 11 additions and 0 deletions

View File

@ -19,6 +19,8 @@ App::App()
{
//This does not work... need to fix this.
SetConfigFlags(0);
Setup(640, 480, "Hi");
}
static int posX = 100;

View File

@ -123,6 +123,13 @@ public:
virtual void Load(Platform::String^ entryPoint) {}
void Setup(int width, int height)
{
//Set dimensions
this->width = width;
this->height = height;
}
virtual void Run()
{
//Get display dimensions

View File

@ -808,6 +808,7 @@ void SetWindowIcon(Image image)
// Set title for window (only PLATFORM_DESKTOP)
void SetWindowTitle(const char *title)
{
windowTitle = title;
#if defined(PLATFORM_DESKTOP)
glfwSetWindowTitle(window, title);
#endif

View File

@ -222,6 +222,7 @@ UWPMessage* CreateUWPMessage(void)
msg->Int0 = 0;
msg->Int1 = 0;
msg->Char0 = 0;
msg->Str0 = "";
msg->Float0 = 0;
msg->Bool0 = false;
return msg;