Skip to content

Instantly share code, notes, and snippets.

View x3nx1a's full-sized avatar

Alper Bağdemir x3nx1a

  • Turkey
  • 18:13 (UTC +03:00)
View GitHub Profile
@x3nx1a
x3nx1a / imgui_node_graph_test.cpp
Created March 4, 2017 02:17 — forked from ocornut/imgui_node_graph_test.cpp
Node graph editor basic demo for ImGui
// Creating a node graph editor for ImGui
// Quick demo, not production code! This is more of a demo of how to use ImGui to create custom stuff.
// Better version by @daniel_collin here https://gist.github.com/emoon/b8ff4b4ce4f1b43e79f2
// See https://github.com/ocornut/imgui/issues/306
// v0.02
// Animated gif: https://cloud.githubusercontent.com/assets/8225057/9472357/c0263c04-4b4c-11e5-9fdf-2cd4f33f6582.gif
// NB: You can use math functions/operators on ImVec2 if you #define IMGUI_DEFINE_MATH_OPERATORS and #include "imgui_internal.h"
// Here we only declare simple +/- operators so others don't leak into the demo code.
static inline ImVec2 operator+(const ImVec2& lhs, const ImVec2& rhs) { return ImVec2(lhs.x+rhs.x, lhs.y+rhs.y); }
@x3nx1a
x3nx1a / ImguiMayaStyle.cpp
Created June 25, 2017 10:25 — forked from ongamex/ImguiMayaStyle.cpp
ImGui style that look like Maya
ImGuiStyle& style = ImGui::GetStyle();
style.ChildWindowRounding = 3.f;
style.GrabRounding = 0.f;
style.WindowRounding = 0.f;
style.ScrollbarRounding = 3.f;
style.FrameRounding = 3.f;
style.WindowTitleAlign = ImVec2(0.5f,0.5f);
style.Colors[ImGuiCol_Text] = ImVec4(0.73f, 0.73f, 0.73f, 1.00f);
#pragma once
#include "IconsFontAwesome.h" // from https://github.com/juliettef/IconFontCppHeaders
namespace ImGui
{
inline void SetupImGuiStyle( bool bStyleDark_, float alpha_ )
{
#include "../TerrainObject.h"
#include <vector>
#include <map>
#include <stdio.h>
#include <fstream>
#include <string>
#include <thread>
#include <bitset>
#include "../TerrainConfig.h"
#include "../TileTerrain\ShTlTerrainSceneNode.h"
#pragma once
#ifndef WE_H
#define WE_H
#include <irrlicht.h>
#include <vector>
#include <iostream>
#include <fstream>
#include "raytests.h"
//#include "ObjectNode.h"