Final commit
This commit is contained in:
parent
0b503f4c98
commit
55ce36c531
|
|
@ -19,6 +19,8 @@ App::App()
|
||||||
{
|
{
|
||||||
//This does not work... need to fix this.
|
//This does not work... need to fix this.
|
||||||
SetConfigFlags(0);
|
SetConfigFlags(0);
|
||||||
|
|
||||||
|
Setup(640, 480, "Hi");
|
||||||
}
|
}
|
||||||
|
|
||||||
static int posX = 100;
|
static int posX = 100;
|
||||||
|
|
|
||||||
|
|
@ -123,6 +123,13 @@ public:
|
||||||
|
|
||||||
virtual void Load(Platform::String^ entryPoint) {}
|
virtual void Load(Platform::String^ entryPoint) {}
|
||||||
|
|
||||||
|
void Setup(int width, int height)
|
||||||
|
{
|
||||||
|
//Set dimensions
|
||||||
|
this->width = width;
|
||||||
|
this->height = height;
|
||||||
|
}
|
||||||
|
|
||||||
virtual void Run()
|
virtual void Run()
|
||||||
{
|
{
|
||||||
//Get display dimensions
|
//Get display dimensions
|
||||||
|
|
|
||||||
|
|
@ -808,6 +808,7 @@ void SetWindowIcon(Image image)
|
||||||
// Set title for window (only PLATFORM_DESKTOP)
|
// Set title for window (only PLATFORM_DESKTOP)
|
||||||
void SetWindowTitle(const char *title)
|
void SetWindowTitle(const char *title)
|
||||||
{
|
{
|
||||||
|
windowTitle = title;
|
||||||
#if defined(PLATFORM_DESKTOP)
|
#if defined(PLATFORM_DESKTOP)
|
||||||
glfwSetWindowTitle(window, title);
|
glfwSetWindowTitle(window, title);
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
|
|
@ -222,6 +222,7 @@ UWPMessage* CreateUWPMessage(void)
|
||||||
msg->Int0 = 0;
|
msg->Int0 = 0;
|
||||||
msg->Int1 = 0;
|
msg->Int1 = 0;
|
||||||
msg->Char0 = 0;
|
msg->Char0 = 0;
|
||||||
|
msg->Str0 = "";
|
||||||
msg->Float0 = 0;
|
msg->Float0 = 0;
|
||||||
msg->Bool0 = false;
|
msg->Bool0 = false;
|
||||||
return msg;
|
return msg;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user