Loading...
Searching...
No Matches
ModelDisplayNode.hpp
1#pragma once
2
3#include <Gfx/Graph/Node.hpp>
4
5#include <QFont>
6#include <QPen>
7
8// clang-format off
9#if defined(_MSC_VER)
10#if !defined(WIN32_LEAN_AND_MEAN)
11#define WIN32_LEAN_AND_MEAN
12#endif
13#if !defined(NOMINMAX)
14#define NOMINMAX
15#endif
16#if !defined(UNICODE)
17#define UNICODE 1
18#endif
19#if !defined(_UNICODE)
20#define _UNICODE 1
21#endif
22#include <windows.h>
23#include <winsock2.h>
24#include <ws2tcpip.h>
25#include <inaddr.h>
26#include <in6addr.h>
27#include <mswsock.h>
28#endif
29
30#if defined(near)
31#undef near
32#undef far
33#endif
34// clang-format on
35
36namespace score::gfx
37{
42{
43public:
44 explicit ModelDisplayNode();
45 virtual ~ModelDisplayNode();
46
48
49 void process(Message&& msg) override;
50 class Renderer;
52
53 ossia::vec3f position, center;
54 float fov{90.f}, near{0.001f}, far{10000.f};
55
56 int texture_projection{};
57 int draw_mode{};
58 int camera_mode{};
59};
60
61}
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
Definition score-plugin-gfx/Gfx/Graph/Node.hpp:51
UBO shared across all entities shown with the same camera.
Definition CommonUBOs.hpp:31
A node that renders a model to screen.
Definition ModelDisplayNode.hpp:42
void process(Message &&msg) override
Process a message from the execution engine.
score::gfx::NodeRenderer * createRenderer(RenderList &r) const noexcept override
Create a renderer in a given context for this node.