This file contains hidden or 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 "doctest.h" | |
#include <cinttypes> | |
#include <memory> | |
#include <vector> | |
#include "cista.h" | |
using namespace cista; | |
using namespace cista::raw; |
This file contains hidden or 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
//////////////////////////////////////////////////////////////////////////////// | |
//////////////////////////////////////////////////////////////////////////////// | |
//////////////////////////////////////////////////////////////////////////////// | |
struct TestStructure | |
{ | |
int number = 42; | |
}; | |
//////////////////////////////////////////////////////////////////////////////// |
This file contains hidden or 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
// https://playfulprogramming.blogspot.com/2016/12/serializing-structs-with-c17-structured.html | |
// https://codereview.stackexchange.com/questions/142804/get-n-th-data-member-of-a-struct | |
// https://stackoverflow.com/questions/39768517/structured-bindings-width | |
// https://stackoverflow.com/questions/35463646/arity-of-aggregate-in-logarithmic-time | |
// https://stackoverflow.com/questions/38393302/returning-variadic-aggregates-struct-and-syntax-for-c17-variadic-template-c | |
#pragma once | |
#include <type_traits> |
This file contains hidden or 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 "nodes.h" | |
namespace ImGui | |
{ | |
void ImGuiNodes::UpdateCanvasGeometry(ImDrawList* draw_list) | |
{ | |
const ImGuiIO& io = ImGui::GetIO(); | |
mouse_ = ImGui::GetMousePos(); |
This file contains hidden or 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
#pragma once | |
#include <stdlib.h> | |
#ifndef ImwList | |
#include <list> | |
#define ImwList std::list | |
#endif // ImwList | |
#ifndef ImwMap |
This file contains hidden or 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
// Prototype of standalone node graph editor for ImGui | |
// Thread: https://github.com/ocornut/imgui/issues/306 | |
// | |
// This is based on code by: | |
// @emoon https://gist.github.com/emoon/b8ff4b4ce4f1b43e79f2 | |
// @ocornut https://gist.github.com/ocornut/7e9b3ec566a333d725d4 | |
// @flix01 https://github.com/Flix01/imgui/blob/b248df2df98af13d4b7dbb70c92430afc47a038a/addons/imguinodegrapheditor/imguinodegrapheditor.cpp#L432 | |
#include "Nodes.h" |