Loading...
Searching...
No Matches
PhongNode.hpp
1#pragma once
2#include <Gfx/Graph/Mesh.hpp>
3#include <Gfx/Graph/Node.hpp>
4#include <Gfx/Graph/RenderList.hpp>
5
6namespace score::gfx
7{
8
10{
11 PhongNode(const Mesh* mesh);
12
13 virtual ~PhongNode();
14 const Mesh& mesh() const noexcept;
15
16 score::gfx::NodeRenderer* createRenderer(RenderList& r) const noexcept override;
17
18private:
19 const Mesh* m_mesh{};
20};
21
22}
Common base class for most single-pass, simple nodes.
Definition score-plugin-gfx/Gfx/Graph/Node.hpp:181
Renderer for a given node.
Definition NodeRenderer.hpp:11
List of nodes to be rendered to an output.
Definition RenderList.hpp:19
Graphics rendering pipeline for ossia score.
Definition Filter/PreviewWidget.hpp:12
Data model for meshes.
Definition Mesh.hpp:23
Definition PhongNode.hpp:10
score::gfx::NodeRenderer * createRenderer(RenderList &r) const noexcept override
Create a renderer in a given context for this node.
Definition PhongNode.cpp:109