1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 23:57:34 +00:00

LibGL: Implement glGetTexImage

The plumbing was already there in LibGPU, so all that was left was to
implement the API :^)
This commit is contained in:
Jelle Raaijmakers 2022-09-01 13:30:24 +02:00 committed by Andreas Kling
parent 4f69022c32
commit 8ab410a536
6 changed files with 46 additions and 0 deletions

View file

@ -194,6 +194,7 @@ public:
void gl_light_model(GLenum pname, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
void gl_bitmap(GLsizei width, GLsizei height, GLfloat xorig, GLfloat yorig, GLfloat xmove, GLfloat ymove, GLubyte const* bitmap);
void gl_copy_tex_image_2d(GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border);
void gl_get_tex_image(GLenum target, GLint level, GLenum format, GLenum type, void* pixels);
void gl_get_tex_parameter_integerv(GLenum target, GLint level, GLenum pname, GLint* params);
void gl_rect(GLdouble x1, GLdouble y1, GLdouble x2, GLdouble y2);
void gl_tex_gen(GLenum coord, GLenum pname, GLint param);