Solving a few warnings
This commit is contained in:
parent
7343300dcb
commit
02e14aa8fa
@ -38,6 +38,6 @@ libdirs {
|
|||||||
}
|
}
|
||||||
|
|
||||||
files {
|
files {
|
||||||
"./src/*.h",
|
"./src/**.h",
|
||||||
"./src/*.cpp"
|
"./src/**.cpp"
|
||||||
}
|
}
|
||||||
|
@ -57,6 +57,7 @@ namespace YAML {
|
|||||||
return false;
|
return false;
|
||||||
rhs.setName(node["Project"].as<std::string>());
|
rhs.setName(node["Project"].as<std::string>());
|
||||||
rhs.setProjectDirectory(node["Directory"].as<std::string>());
|
rhs.setProjectDirectory(node["Directory"].as<std::string>());
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -47,17 +47,17 @@ void Inspector(entt::entity ent , Scene& scene) {
|
|||||||
ImGui::NewLine();
|
ImGui::NewLine();
|
||||||
|
|
||||||
auto component = entity.GetComponent<IdentifierComponent>();
|
auto component = entity.GetComponent<IdentifierComponent>();
|
||||||
char* buf = new char(component.name.length());
|
char* buf = new char(component.name.size());
|
||||||
strcpy(buf, component.name.c_str());
|
strcpy(buf, component.name.c_str());
|
||||||
ImGui::InputText("Name:",buf , IM_ARRAYSIZE(buf), ImGuiInputTextFlags_ReadOnly);
|
ImGui::InputText("Name:",buf , sizeof(buf), ImGuiInputTextFlags_ReadOnly);
|
||||||
|
|
||||||
|
|
||||||
if (entity.HasComponent<TransformComponent>()) {
|
if (entity.HasComponent<TransformComponent>()) {
|
||||||
auto& transform = entity.GetComponent<TransformComponent>();
|
auto& transform = entity.GetComponent<TransformComponent>();
|
||||||
if (ImGui::CollapsingHeader("Transform", ImGuiTreeNodeFlags_DefaultOpen)) {
|
if (ImGui::CollapsingHeader("Transform", ImGuiTreeNodeFlags_DefaultOpen)) {
|
||||||
ImGui::DragFloat3("Position", glm::value_ptr(transform.Position), 0.01);
|
ImGui::DragFloat3("Position", glm::value_ptr(transform.Position), 0.01f);
|
||||||
ImGui::DragFloat3("Rotation", glm::value_ptr(transform.Rotation), 0.01);
|
ImGui::DragFloat3("Rotation", glm::value_ptr(transform.Rotation), 0.01f);
|
||||||
ImGui::DragFloat3("Scale", glm::value_ptr(transform.Scale), 0.01, 0);
|
ImGui::DragFloat3("Scale", glm::value_ptr(transform.Scale), 0.01f, 0.0f);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -2,6 +2,11 @@ project "YoggieEngine"
|
|||||||
kind "StaticLib"
|
kind "StaticLib"
|
||||||
|
|
||||||
buildmessage "Building Yoggie Engine"
|
buildmessage "Building Yoggie Engine"
|
||||||
|
disablewarnings{
|
||||||
|
"4099" -- Ignore the missing debug signals for GLFW warning
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
includedirs {
|
includedirs {
|
||||||
"../libs/spdlog/include",
|
"../libs/spdlog/include",
|
||||||
|
@ -7,9 +7,6 @@
|
|||||||
#include "graphics/Renderable.h"
|
#include "graphics/Renderable.h"
|
||||||
#include "Graphics/Renderer.h"
|
#include "Graphics/Renderer.h"
|
||||||
#include "Graphics/Primitives/Material.h"
|
#include "Graphics/Primitives/Material.h"
|
||||||
|
|
||||||
#include "spdlog/spdlog.h"
|
|
||||||
|
|
||||||
#include "Input/InputManager.h"
|
#include "Input/InputManager.h"
|
||||||
#include "Graphics/Renderer.h"
|
#include "Graphics/Renderer.h"
|
||||||
#include "GUI/GUIManager.h"
|
#include "GUI/GUIManager.h"
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#include "RenderSurface.h";
|
#include "RenderSurface.h"
|
||||||
namespace YoggieEngine {
|
namespace YoggieEngine {
|
||||||
RenderSurface::RenderSurface() {
|
RenderSurface::RenderSurface() {
|
||||||
shader = new Shader("build/SandboxAppliction/Debug/renderSuface.vs", "build/SandboxApplication/Debug/renderSurface.fs");
|
shader = new Shader("build/SandboxAppliction/Debug/renderSuface.vs", "build/SandboxApplication/Debug/renderSurface.fs");
|
||||||
|
@ -13,6 +13,11 @@ workspace "Yoggie GameEngine"
|
|||||||
|
|
||||||
startproject("Editor")
|
startproject("Editor")
|
||||||
|
|
||||||
|
|
||||||
|
defines{
|
||||||
|
" _CRT_SECURE_NO_WARNINGS",
|
||||||
|
}
|
||||||
|
|
||||||
filter "configurations:Debug"
|
filter "configurations:Debug"
|
||||||
defines {"DEBUG"}
|
defines {"DEBUG"}
|
||||||
symbols "On"
|
symbols "On"
|
||||||
|
Loading…
Reference in New Issue
Block a user