This commit is contained in:
2025-05-13 02:46:21 +03:00
parent 143e16692e
commit 86914b7fcc
610 changed files with 92343 additions and 2 deletions
+36
View File
@@ -0,0 +1,36 @@
#ifndef IShaderGraphNode_h__
#define IShaderGraphNode_h__
#include <LString.h>
#include "IShaderTypes.h"
#include <vector>
#include "IPropertyHolder.h"
#include <delegate/Delegate.h>
#include "shaders/IShaderGraphNodePort.h"
namespace LifeGraphics
{
class IShaderGraphNode : public LifeCore::IPropertyHolder
{
public:
int resource_id;
ShaderNodeType NodeType;
String Name;
bool checked;
int id;
typedef std::vector<IShaderGraphNodePort*> PortCollection;
typedef std::vector<IShaderGraphNodePort*>::iterator PortCollectionItr;
PortCollection Inputs;
PortCollection Outputs;
IShaderGraphNode();
IShaderGraphNodePort* GetInputPortByName(const String& name);
IShaderGraphNodePort* GetInputPort(size_t id);
IShaderGraphNodePort* GetOutputPortByName(const String& name);
IShaderGraphNodePort* GetOutputPortByID(size_t id);
bool Serialize(LifeCore::IMemoryStream* stm);
bool Deserialize(LifeCore::IMemoryStream* stm);
size_t GetOutputID(IShaderGraphNodePort* port);
};
}
#endif // IShaderGraphNode_h__