mirror of
https://github.com/RGBCube/serenity
synced 2025-06-01 10:28:13 +00:00
LibGL: Implement glTexParameter{i,f}
This currently only implements a subset of this function. Namely setting wrap, mag and min modes for the GL_TETXURE_2D target.
This commit is contained in:
parent
e0fef60241
commit
b9523e15df
6 changed files with 95 additions and 2 deletions
|
@ -68,6 +68,7 @@ public:
|
|||
virtual void gl_read_buffer(GLenum mode) override;
|
||||
virtual void gl_read_pixels(GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid* pixels) override;
|
||||
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) override;
|
||||
virtual void gl_tex_parameter(GLenum target, GLenum pname, GLfloat param) override;
|
||||
virtual void gl_tex_coord(GLfloat s, GLfloat t, GLfloat r, GLfloat q) override;
|
||||
virtual void gl_bind_texture(GLenum target, GLuint texture) override;
|
||||
virtual void gl_active_texture(GLenum texture) override;
|
||||
|
@ -194,7 +195,8 @@ private:
|
|||
decltype(&SoftwareGLContext::gl_shade_model),
|
||||
decltype(&SoftwareGLContext::gl_alpha_func),
|
||||
decltype(&SoftwareGLContext::gl_hint),
|
||||
decltype(&SoftwareGLContext::gl_read_buffer)>;
|
||||
decltype(&SoftwareGLContext::gl_read_buffer),
|
||||
decltype(&SoftwareGLContext::gl_tex_parameter)>;
|
||||
|
||||
using ExtraSavedArguments = Variant<
|
||||
FloatMatrix4x4>;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue