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
commit fde0045ebe
Notes: sideshowbarker 2024-07-18 17:11:24 +09:00
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