Skip to content

Commit

Permalink
fix some naming and add necessary library for linux
Browse files Browse the repository at this point in the history
  • Loading branch information
ksadi3 committed Jan 2, 2024
1 parent 967087a commit a909bb0
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 13 deletions.
2 changes: 1 addition & 1 deletion src/engine/core/AppSettings.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@

#include <string>
#include <vector>
#include <cstdint>

namespace lei3d
{

class AppSettings
{
public:

static AppSettings& GetInstance();
~AppSettings() = default;

Expand Down
16 changes: 7 additions & 9 deletions src/engine/rendering/gui/screens/PauseMenuScreen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,13 @@
#include "SplashScreen.hpp"
#include "core/Application.hpp"
#include "rendering/gui/components/GuiTextBox.hpp"
#include "Logging/Log.hpp"
#include "logging/Log.hpp"
#include "rendering/gui/GuiManager.hpp"

namespace lei3d
{
PauseMenuScreen::PauseMenuScreen()
{

}

PauseMenuScreen::~PauseMenuScreen()
Expand All @@ -22,11 +21,10 @@ namespace lei3d
GuiScreen::Init();

AddComponent(new GuiRect(
GuiComponent::Anchor::TOP_LEFT,
{ GuiComponent::Space::NORMALIZED, { 0, 0 } },
{ GuiComponent::Space::NORMALIZED, { 1, 1 } },
{ 0, 0, 0, 0.5 }
));
GuiComponent::Anchor::TOP_LEFT,
{ GuiComponent::Space::NORMALIZED, { 0, 0 } },
{ GuiComponent::Space::NORMALIZED, { 1, 1 } },
{ 0, 0, 0, 0.5 }));

GuiTextBox* resumeButton = new GuiTextBox(
"Resume",
Expand Down Expand Up @@ -91,6 +89,6 @@ namespace lei3d

AddComponent(resumeButton);
AddComponent(restartButton);
AddComponent(exitButton);
AddComponent(exitButton);
}
}
} // namespace lei3d
2 changes: 1 addition & 1 deletion src/engine/scenes/SceneIntro.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ namespace lei3d
const std::string signPath = "data/models/leveldesignobj/sign/sign.gltf";
m_EnviromentModels.insert(std::make_pair("sign", std::make_unique<Model>(signPath)));

const std::string fishPath = "data/models/leveldesignobj/fish2/fish.obj";
const std::string fishPath = "data/models/leveldesignobj/fish2/Fish.obj";
m_EnviromentModels.insert(std::make_pair("fish", std::make_unique<Model>(fishPath)));

const std::string treePath = "data/models/environment/palm_tree.gltf";
Expand Down
2 changes: 1 addition & 1 deletion src/engine/scenes/SceneTitle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ namespace lei3d
const std::string signPath = "data/models/leveldesignobj/sign/sign.gltf";
m_EnviromentModels.insert(std::make_pair("sign", std::make_unique<Model>(signPath)));

const std::string fishPath = "data/models/leveldesignobj/fish2/fish.obj";
const std::string fishPath = "data/models/leveldesignobj/fish2/Fish.obj";
m_EnviromentModels["fish"] = (std::make_unique<Model>(fishPath));
m_EnviromentModels.insert(std::make_pair("fish", std::make_unique<Model>(fishPath)));

Expand Down
2 changes: 1 addition & 1 deletion src/engine/scenes/TestSceneKevin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ namespace lei3d
const std::string housePath = "data/models/leveldesignobj/house/house_texture.obj";
m_EnviromentModels.insert(std::make_pair("house", std::make_unique<Model>(housePath)));

const std::string fishPath = "data/models/leveldesignobj/fish2/fish.obj";
const std::string fishPath = "data/models/leveldesignobj/fish2/Fish.obj";
m_EnviromentModels.insert(std::make_pair("fish", std::make_unique<Model>(fishPath)));

const std::string treePath = "data/models/environment/palm_tree.gltf";
Expand Down

0 comments on commit a909bb0

Please sign in to comment.