1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 02:37:36 +00:00

LibGL: Implement Texture State Management

Some very primitive Texture State management. Data can now be
uploaded to textures.
This commit is contained in:
Jesse Buhagiar 2021-05-13 22:18:17 +10:00 committed by Ali Mohammad Pur
parent 21dff6d40b
commit 4f324ba4d7
8 changed files with 309 additions and 0 deletions

View file

@ -57,6 +57,7 @@ public:
virtual void gl_hint(GLenum target, GLenum mode) = 0;
virtual void gl_read_buffer(GLenum mode) = 0;
virtual void gl_read_pixels(GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid* pixels) = 0;
virtual void gl_tex_image_2d(GLenum target, GLint level, GLint internal_format, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const GLvoid* data) = 0;
virtual void present() = 0;
};