mirror of
https://github.com/antopilo/Nuake.git
synced 2026-09-09 20:08:57 +03:00
Serialize Sky Component
This commit is contained in:
@@ -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;
|
||||
}
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user