VisuTwin Canvas
C++ 3D Engine — Metal Backend
Loading...
Searching...
No Matches
quadRender.h
Go to the documentation of this file.
1// SPDX-License-Identifier: Apache-2.0
2// Copyright 2025-2026 Arnis Lektauers
3//
4//
5#pragma once
6
7#include <memory>
8
9#include "core/math/vector4.h"
11
12namespace visutwin::canvas
13{
14 class Shader;
15
17 {
18 public:
19 explicit QuadRender(const std::shared_ptr<Shader>& shader);
20 ~QuadRender() = default;
21
22 void render(const Vector4* viewport = nullptr, const Vector4* scissor = nullptr) const;
23
24 private:
25 std::shared_ptr<Shader> _shader;
26 };
27}
void render(const Vector4 *viewport=nullptr, const Vector4 *scissor=nullptr) const
QuadRender(const std::shared_ptr< Shader > &shader)
4D vector for homogeneous coordinates, color values, and SIMD operations.
Definition vector4.h:20