mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 08:37:46 +00:00
LibGL+LibSoftGPU: Move Vertex and Triangle structs to LibSoftGPU
This commit is contained in:
parent
73ba208ee7
commit
251f3c007f
9 changed files with 68 additions and 36 deletions
|
@ -7,8 +7,8 @@
|
|||
#pragma once
|
||||
|
||||
#include <AK/Vector.h>
|
||||
#include <LibGL/GLStruct.h>
|
||||
#include <LibGfx/Vector4.h>
|
||||
#include <LibSoftGPU/Vertex.h>
|
||||
|
||||
namespace SoftGPU {
|
||||
|
||||
|
@ -46,13 +46,13 @@ class Clipper final {
|
|||
public:
|
||||
Clipper() { }
|
||||
|
||||
void clip_triangle_against_frustum(Vector<GL::GLVertex>& input_vecs);
|
||||
void clip_triangle_against_frustum(Vector<Vertex>& input_vecs);
|
||||
|
||||
private:
|
||||
bool point_within_clip_plane(const FloatVector4& vertex, ClipPlane plane);
|
||||
GL::GLVertex clip_intersection_point(const GL::GLVertex& vec, const GL::GLVertex& prev_vec, ClipPlane plane_index);
|
||||
Vector<GL::GLVertex> list_a;
|
||||
Vector<GL::GLVertex> list_b;
|
||||
Vertex clip_intersection_point(const Vertex& vec, const Vertex& prev_vec, ClipPlane plane_index);
|
||||
Vector<Vertex> list_a;
|
||||
Vector<Vertex> list_b;
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue