1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 15:28:11 +00:00

LibGL: Introduce Texture base class for all texture types

This commit is contained in:
Stephan Unverwerth 2021-05-29 23:34:40 +02:00 committed by Linus Groh
parent 09233b9e41
commit fde0045ebe
7 changed files with 101 additions and 74 deletions

View file

@ -414,7 +414,7 @@ SoftwareRasterizer::SoftwareRasterizer(const Gfx::IntSize& min_size)
{
}
void SoftwareRasterizer::submit_triangle(const GLTriangle& triangle, const Texture& texture)
void SoftwareRasterizer::submit_triangle(const GLTriangle& triangle, const Texture2D& texture)
{
rasterize_triangle(m_options, *m_render_target, *m_depth_buffer, triangle, [&texture](const FloatVector2& uv, const FloatVector4& color) -> FloatVector4 {
// TODO: We'd do some kind of multitexturing/blending here