/* * Copyright (c) 2021, Jesse Buhagiar * Copyright (c) 2022, the SerenityOS developers. * * SPDX-License-Identifier: BSD-2-Clause */ #pragma once #include #include #include namespace SoftGPU { class Clipper final { public: enum class ClipPlane : u8 { LEFT = 0, RIGHT, TOP, BOTTOM, NEAR, FAR }; Clipper() = default; void clip_triangle_against_frustum(Vector& input_vecs); private: Vector list_a; Vector list_b; }; }