1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-06-01 08:18:12 +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

@ -9,7 +9,7 @@
#include "DepthBuffer.h"
#include "GL/gl.h"
#include "GLStruct.h"
#include "Tex/Texture.h"
#include "Tex/Texture2D.h"
#include <AK/OwnPtr.h>
#include <LibGfx/Bitmap.h>
#include <LibGfx/Vector4.h>
@ -31,7 +31,7 @@ class SoftwareRasterizer final {
public:
SoftwareRasterizer(const Gfx::IntSize& min_size);
void submit_triangle(const GLTriangle& triangle, const Texture& texture);
void submit_triangle(const GLTriangle& triangle, const Texture2D& texture);
void resize(const Gfx::IntSize& min_size);
void clear_color(const FloatVector4&);
void clear_depth(float);