Skip to content

Commit

Permalink
Ready for release v0.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
widberg committed Jun 25, 2019
1 parent 07c79ec commit 91730a8
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
3 changes: 1 addition & 2 deletions engine/igneous/src/console/console.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -364,8 +364,7 @@ void Console::remove(const std::string& name)
void Console::render()
{
if (!*consoleVar) return;
static bool open;
if (!ImGui::Begin("Console", &open, ImVec2(ImGui::GetWindowSize().x * 0.5f, ImGui::GetWindowSize().y * 0.5f)) || ImGui::IsWindowAppearing())
if (!ImGui::Begin("Console", NULL, ImVec2(ImGui::GetWindowSize().x * 0.5f, ImGui::GetWindowSize().y * 0.5f)) || ImGui::IsWindowAppearing())
{
// Early out if the window is collapsed, as an optimization.
ImGui::End();
Expand Down
4 changes: 2 additions & 2 deletions engine/igneous/src/renderer/fpsCamera.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ void FPSCamera::update(const float dt)

//Rotate
glm::vec3 ro;
ro.x += dy * speed * dt;
ro.y += dx * speed * dt;
ro.x += (float)dy * dt;
ro.y += (float)dx * dt;

//Pitch
if (Input::keys[GLFW_KEY_UP]) ro.x -= speed * dt;
Expand Down
4 changes: 3 additions & 1 deletion samples/sandbox/src/sandbox.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class Sandbox : public Game
registry.assign<ModelComponent>(entity, barn, polyShader);
registry.assign<Transformation>(entity, glm::mat4());

camera = new FPSCamera();
camera = new FPSCamera(glm::vec3(0.0f, 5.0f, 15.0f));
}

void update(float dt)
Expand All @@ -33,6 +33,8 @@ class Sandbox : public Game
{
camera->use(Input::width, Input::height);
RendererSystem::render(registry, handle);

ImGui::ShowDemoWindow();
}

void shutdown()
Expand Down

0 comments on commit 91730a8

Please sign in to comment.