Serialize Sky Component

This commit is contained in:
antopilo
2024-11-11 11:45:12 -05:00
parent 0311862b65
commit 0ac0934622
2 changed files with 6 additions and 5 deletions

View File

@@ -1,4 +1,6 @@
#include "SkyComponent.h"
#include "src/FileSystem/File.h"
#include "src/FileSystem/FileSystem.h"
using namespace Nuake;
@@ -6,13 +8,12 @@ using namespace Nuake;
json SkyComponent::Serialize()
{
BEGIN_SERIALIZE();
SERIALIZE_RES_FILE(SkyResourceFilePath);
END_SERIALIZE();
}
bool SkyComponent::Deserialize(const json& j)
{
DESERIALIZE_RES_FILE(SkyResourceFilePath);
return true;
}

View File

@@ -65,7 +65,7 @@ int Window::Init()
Logger::Log("Window creation failed", "window", CRITICAL);
return -1;
}
SetWindowIcon("resources/Images/nuake-logo.png");
glfwMakeContextCurrent(this->window);
SetVSync(false);
@@ -76,7 +76,7 @@ int Window::Init()
return -1;
}
Logger::Log("Driver detected " + std::string(((char*)glGetString(GL_VERSION))), "renderer");
Logger::Log("Driver detected " + std::string(((char*)glGetString(GL_VERSION))), "window");
if (glfwRawMouseMotionSupported())
glfwSetInputMode(this->window, GLFW_RAW_MOUSE_MOTION, GLFW_TRUE);