Polyphase Game Engine
Loading...
Searching...
No Matches
GraphTypes.h
Go to the documentation of this file.
1#pragma once
2
3#include "Datum.h"
4
5#include <cstdint>
6
7typedef uint32_t GraphNodeId;
8typedef uint32_t GraphPinId;
9typedef uint32_t GraphLinkId;
10
14
15enum class GraphPinDirection : uint8_t
16{
17 Input,
18 Output
19};
20
21bool AreGraphPinTypesCompatible(DatumType outputType, DatumType inputType);
22
23const char* GetDatumTypeName(DatumType type);
24glm::vec4 GetDatumTypeColor(DatumType type);
DatumType
Definition Datum.h:28
constexpr GraphLinkId INVALID_GRAPH_LINK_ID
Definition GraphTypes.h:13
bool AreGraphPinTypesCompatible(DatumType outputType, DatumType inputType)
Definition GraphTypes.cpp:3
uint32_t GraphLinkId
Definition GraphTypes.h:9
const char * GetDatumTypeName(DatumType type)
Definition GraphTypes.cpp:122
constexpr GraphPinId INVALID_GRAPH_PIN_ID
Definition GraphTypes.h:12
uint32_t GraphPinId
Definition GraphTypes.h:8
glm::vec4 GetDatumTypeColor(DatumType type)
Definition GraphTypes.cpp:182
constexpr GraphNodeId INVALID_GRAPH_NODE_ID
Definition GraphTypes.h:11
GraphPinDirection
Definition GraphTypes.h:16
uint32_t GraphNodeId
Definition GraphTypes.h:7