|
|
@@ -82,12 +82,15 @@ int main(int ROCKET_UNUSED_PARAMETER(argc), char** ROCKET_UNUSED_PARAMETER(argv)
|
|
|
DoAllocConsole();
|
|
|
#endif
|
|
|
|
|
|
+ int window_width = 1024;
|
|
|
+ int window_height = 768;
|
|
|
+
|
|
|
ShellRenderInterfaceOpenGL opengl_renderer;
|
|
|
shell_renderer = &opengl_renderer;
|
|
|
|
|
|
// Generic OS initialisation, creates a window and attaches OpenGL.
|
|
|
if (!Shell::Initialise(APP_PATH) ||
|
|
|
- !Shell::OpenWindow("Rocket Invaders from Mars", shell_renderer, 1024, 768, false))
|
|
|
+ !Shell::OpenWindow("Rocket Invaders from Mars", shell_renderer, window_width, window_height, false))
|
|
|
{
|
|
|
Shell::Shutdown();
|
|
|
return -1;
|
|
|
@@ -95,7 +98,7 @@ int main(int ROCKET_UNUSED_PARAMETER(argc), char** ROCKET_UNUSED_PARAMETER(argv)
|
|
|
|
|
|
// Rocket initialisation.
|
|
|
Rocket::Core::SetRenderInterface(&opengl_renderer);
|
|
|
- opengl_renderer.SetViewport(1024,768);
|
|
|
+ opengl_renderer.SetViewport(window_width, window_height);
|
|
|
|
|
|
ShellSystemInterface system_interface;
|
|
|
Rocket::Core::SetSystemInterface(&system_interface);
|
|
|
@@ -105,7 +108,7 @@ int main(int ROCKET_UNUSED_PARAMETER(argc), char** ROCKET_UNUSED_PARAMETER(argv)
|
|
|
Rocket::Controls::Initialise();
|
|
|
|
|
|
// Create the main Rocket context and set it on the shell's input layer.
|
|
|
- context = Rocket::Core::CreateContext("main", Rocket::Core::Vector2i(1024, 768));
|
|
|
+ context = Rocket::Core::CreateContext("main", Rocket::Core::Vector2i(window_width, window_height));
|
|
|
if (context == NULL)
|
|
|
{
|
|
|
Rocket::Core::Shutdown();
|