1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 05:47:34 +00:00

LibGL+LibSoftGPU: Move primitive assembly and clipping into LibSoftGPU

This commit is contained in:
Stephan Unverwerth 2021-12-16 21:26:15 +01:00 committed by Brian Gianforcaro
parent 2f35135743
commit 73ba208ee7
4 changed files with 176 additions and 161 deletions

View file

@ -176,10 +176,7 @@ private:
FloatVector4 m_current_vertex_tex_coord = { 0.0f, 0.0f, 0.0f, 1.0f };
FloatVector3 m_current_vertex_normal = { 0.0f, 0.0f, 1.0f };
Vector<GLVertex, 96> vertex_list;
Vector<GLTriangle, 32> triangle_list;
Vector<GLTriangle, 32> processed_triangles;
Vector<GLVertex> m_clipped_vertices;
Vector<GLVertex, 96> m_vertex_list;
GLenum m_error = GL_NO_ERROR;
bool m_in_draw_state = false;
@ -229,8 +226,6 @@ private:
NonnullRefPtr<Gfx::Bitmap> m_frontbuffer;
SoftGPU::Clipper m_clipper;
// Texture objects
TextureNameAllocator m_name_allocator;
HashMap<GLuint, RefPtr<Texture>> m_allocated_textures;