mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-08 09:09:43 +00:00
LibGL: Introduce Texture base class for all texture types
This commit is contained in:
parent
09233b9e41
commit
fde0045ebe
Notes:
sideshowbarker
2024-07-18 17:11:24 +09:00
Author: https://github.com/sunverwerth
Commit: fde0045ebe
Pull-request: https://github.com/SerenityOS/serenity/pull/7573
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