mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 13:38:11 +00:00
LibGL: Track multiple current texture coordinates in GLContext
Previously we only had a single current texture coordinate, set by the glTexCoord family of functions. Since we now can have multiple texture coordinates we track a vector of current texture coordinates and set the requested one in glMultiTexCoord(). glTexCoord() Always sets the first texture coordinate.
This commit is contained in:
parent
a2c771a913
commit
9627576d9c
2 changed files with 10 additions and 5 deletions
|
@ -204,7 +204,7 @@ private:
|
|||
u8 m_clear_stencil { 0 };
|
||||
|
||||
FloatVector4 m_current_vertex_color = { 1.0f, 1.0f, 1.0f, 1.0f };
|
||||
FloatVector4 m_current_vertex_tex_coord = { 0.0f, 0.0f, 0.0f, 1.0f };
|
||||
Vector<FloatVector4> m_current_vertex_tex_coord;
|
||||
FloatVector3 m_current_vertex_normal = { 0.0f, 0.0f, 1.0f };
|
||||
|
||||
Vector<SoftGPU::Vertex> m_vertex_list;
|
||||
|
@ -262,7 +262,7 @@ private:
|
|||
// Texture objects
|
||||
TextureNameAllocator m_name_allocator;
|
||||
HashMap<GLuint, RefPtr<Texture>> m_allocated_textures;
|
||||
Vector<TextureUnit, 32> m_texture_units;
|
||||
Vector<TextureUnit> m_texture_units;
|
||||
TextureUnit* m_active_texture_unit;
|
||||
|
||||
// Texture coordinate generation state
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue