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:
parent
09233b9e41
commit
fde0045ebe
7 changed files with 101 additions and 74 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue