This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifdef __linux__ | |
#include "Core/Input.h" | |
#include "Window.h" | |
#include <stdio.h> | |
#include <X11/Xlib.h> | |
#include <X11/Xutil.h> | |
#include <X11/keysymdef.h> | |
#include <GL/glx.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "Sponza Test", | |
"numentities": 7, | |
"entities": [ | |
{ | |
"components": [{ | |
"componentType": "COMPONENT_TRANSFORM", | |
"position": [0.0, 2.0, 0.0] | |
}, { | |
"componentType": "COMPONENT_CAMERA" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "Sponza Test", | |
"numentities": 7, | |
"skymaterial": "materials/skymain.gmat", | |
"entities": [ | |
{ | |
"components": [{ | |
"componentType": "COMPONENT_TRANSFORM", | |
"position": [0.0, 20.0, 0.0] | |
}, { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "lib.hpp" | |
#include <iostream> | |
Lib::Lib() { | |
std::cout << "Lib\n"; | |
} | |
void Lib::print() { | |
std::cout << "Print\n"; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bool prepareDockspace(const char *name) { | |
static ImGuiDockNodeFlags opt_flags = ImGuiDockNodeFlags_None; | |
ImGuiWindowFlags window_flags = ImGuiWindowFlags_MenuBar; | |
if (opt_flags & ImGuiDockNodeFlags_PassthruCentralNode) | |
window_flags |= ImGuiWindowFlags_NoBackground; | |
ImGui::PushStyleVar(ImGuiStyleVar_WindowPadding, ImVec2(0.0f, 0.0f)); | |
bool win_open = ImGui::Begin(name, nullptr, window_flags); | |
ImGui::PopStyleVar(); | |
if (win_open) { |