Skip to content

Instantly share code, notes, and snippets.

View KarimIO's full-sized avatar
⚙️
Working on Grindstone

Karim Abdel Hamid KarimIO

⚙️
Working on Grindstone
View GitHub Profile
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) {
@KarimIO
KarimIO / lib.cpp
Created April 2, 2018 00:37
DLL Class Delete Issue
#include "lib.hpp"
#include <iostream>
Lib::Lib() {
std::cout << "Lib\n";
}
void Lib::print() {
std::cout << "Print\n";
}
@KarimIO
KarimIO / sponza.json
Last active February 24, 2018 10:38
Sponza Scene for Grindstone
{
"name": "Sponza Test",
"numentities": 7,
"skymaterial": "materials/skymain.gmat",
"entities": [
{
"components": [{
"componentType": "COMPONENT_TRANSFORM",
"position": [0.0, 20.0, 0.0]
}, {
@KarimIO
KarimIO / sponza.json
Created March 27, 2017 21:29
Sample Level
{
"name": "Sponza Test",
"numentities": 7,
"entities": [
{
"components": [{
"componentType": "COMPONENT_TRANSFORM",
"position": [0.0, 2.0, 0.0]
}, {
"componentType": "COMPONENT_CAMERA"
#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>