CeresEngine 0.2.0
A game development framework
Loading...
Searching...
No Matches
CeresEngine::MaterialGraph Class Reference

A graph that generates a rendering material shader. More...

#include <CeresEngine/Material/Graph/MaterialGraph.hpp>

Inheritance diagram for CeresEngine::MaterialGraph:
CeresEngine::Graph CeresEngine::RefCounted< Graph >

Public Member Functions

MaterialGraphOutputNodegetOutputNode ()
 
const MaterialGraphOutputNodegetOutputNode () const
 
- Public Member Functions inherited from CeresEngine::Graph
 Graph ()=default
 
virtual ~Graph () noexcept=default
 
GraphNodegetNode (StringView name) const
 
const Vector< GraphNodePtr > & getNodes () const noexcept
 
void addNode (GraphNode &node)
 
template<typename T , typename... Args>
requires (std::is_base_of_v<GraphNode, T>)
TaddNode (Args &&... args)
 
void removeNode (GraphNode &node)
 
GraphConnectionconnect (GraphSocket &outputSocket, GraphSocket &inputSocket)
 
GraphInstancePtr instantiate ()
 
- Public Member Functions inherited from CeresEngine::RefCounted< Graph >
 RefCounted (Args &&... args)
 Creates a new RefCounted object and constructs a new Deleter by forwarding Args to it.
 
void retain () noexcept
 Retains the object by increment it's reference count by one.
 
bool release () noexcept
 Relases the object by decrementing it's reference count by one.
 

Additional Inherited Members

- Public Attributes inherited from CeresEngine::Graph
Event< void()> onChange
 
Event< void(GraphNode &)> onNodeAdded
 
Event< void(GraphNode &)> onNodeRemoved
 

Detailed Description

A graph that generates a rendering material shader.

Member Function Documentation

◆ getOutputNode() [1/2]

MaterialGraphOutputNode * CeresEngine::MaterialGraph::getOutputNode ( )

◆ getOutputNode() [2/2]

const MaterialGraphOutputNode * CeresEngine::MaterialGraph::getOutputNode ( ) const

The documentation for this class was generated from the following file: