Crimson Engine 1.0.0
A high-performance C++20 game engine prototype showcasing a custom ECS, Vulkan renderer, and ImGui editor.
Loading...
Searching...
No Matches
NodeGraphFramework.cpp File Reference
#include "editor/NodeGraphFramework.hpp"
#include <sstream>
#include <algorithm>
#include <cmath>
#include <iostream>

Namespaces

namespace  Engine

Functions

static ImVec2 Engine::getPinScreenPos (const NodePin &pin, const ImVec2 &canvasPos, const ImVec2 &pan, const std::vector< Node > &nodes)

Variables

static const NodePinType Engine::PIN_TYPE_FLOW = { "flow", IM_COL32(255, 255, 255, 255) }
static const NodePinType Engine::PIN_TYPE_FLOAT = { "float", IM_COL32(156, 220, 80, 255) }
static const NodePinType Engine::PIN_TYPE_INT = { "int", IM_COL32( 67, 198, 255, 255) }
static const NodePinType Engine::PIN_TYPE_BOOL = { "bool", IM_COL32(220, 100, 80, 255) }
static const NodePinType Engine::PIN_TYPE_STRING = { "string", IM_COL32(255, 200, 80, 255) }
static const NodePinType Engine::PIN_TYPE_VEC3 = { "Vec3", IM_COL32(120, 100, 220, 255) }
static const NodePinType Engine::PIN_TYPE_DIALOGUE = { "dialogue", IM_COL32(200, 80, 220, 255) }
static const NodePinType Engine::PIN_TYPE_STATE = { "state", IM_COL32(255, 165, 80, 255) }