Skip to content

Commit

Permalink
Made window fullscreen
Browse files Browse the repository at this point in the history
  • Loading branch information
willcassella committed May 5, 2016
1 parent 7ad3ad3 commit 34f0987
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Modules/Engine/source/Entity.cpp
Expand Up @@ -230,9 +230,9 @@ namespace willow
}
}

void Entity::set_rotation(const Quat&)
void Entity::set_rotation(const Quat& rot)
{
// TODO
_transform.rotation = rot;
}

void Entity::set_world_rotation(const Quat& rot)
Expand Down
2 changes: 1 addition & 1 deletion Runtimes/Client/source/Window.cpp
Expand Up @@ -59,7 +59,7 @@ Window::Window(CString name, uint32 width, uint32 height)
glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 3);

// Create the window
this->_window = glfwCreateWindow(width, height, name, nullptr, nullptr);
this->_window = glfwCreateWindow(width, height, name, glfwGetPrimaryMonitor(), nullptr);
if (!_window)
{
Console::WriteLine("GLFW failed to create window.");
Expand Down
2 changes: 1 addition & 1 deletion Runtimes/Client/source/main.cpp
Expand Up @@ -143,7 +143,7 @@ int main(int argc, char* argv[])

// Load up subsystems
Console::WriteLine("Initializing subsystems...");
Window window("Willow Engine", 1280, 720);
Window window("Willow Engine", 1920, 1080);
willow::GLRenderSystem renderer(window.get_width(), window.get_height());
world.add_system(renderer);

Expand Down

0 comments on commit 34f0987

Please sign in to comment.