Compilation succesful on Linux Ubuntu

Probably broke a lot of things
This commit is contained in:
antopilo
2023-09-27 01:48:05 -04:00
parent ed89ca0b8c
commit c15bf532ae
53 changed files with 303 additions and 126 deletions

View File

@@ -44,7 +44,14 @@ bool PopupHelper::DefineTextDialog(const std::string& id, std::string& currentTe
char buffer[256];
memset(buffer, 0, sizeof(buffer));
#ifdef NK_WIN
std::strncpy(buffer, currentText.c_str(), sizeof(buffer));
#endif
#ifdef NK_LINUX
strncpy(buffer, currentText.c_str(), sizeof(buffer));
#endif
if (ImGui::InputText("##label", buffer, sizeof(buffer)))
{
currentText = std::string(buffer);

View File

@@ -3,7 +3,7 @@
#include <src/Vendors/glm/ext/matrix_clip_space.hpp>
#include <src/Rendering/SceneRenderer.h>
#include <src/Resource/ResourceLoader.h>
#include <GL\glew.h>
#include <GL/glew.h>
ThumbnailManager::ThumbnailManager()

View File

@@ -1,11 +1,5 @@
#include "WindowTheming.h"
#include <GLFW/glfw3.h>
#define GLFW_EXPOSE_NATIVE_WIN32
#include <GLFW/glfw3native.h>
#include <dwmapi.h>
namespace WindowTheming
{

View File

@@ -20,7 +20,7 @@
#include "src/Vendors/glm/gtx/matrix_decompose.hpp"
#include "src/Resource/FontAwesome5.h"
#include "Dependencies/GLEW/include/GL/glew.h"
#include "dependencies/GLEW/include/GL/glew.h"
#include "src/Scene/Scene.h"
#include "src/Scene/Components/Components.h"