mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 10:37:45 +00:00
LibGL: Implement gl_tex_parameterfv
This is the vectorized version of `gl_tex_parameter`, which sets the parameters of a texture's sampler. We currently only support one single pname, `GL_TEXTURE_BORDER_COLOR`, which sets the border color of a texel for if it is sampled outside of a mip-map's range.
This commit is contained in:
parent
c509e0c73c
commit
85985e2cf4
3 changed files with 31 additions and 0 deletions
|
@ -101,6 +101,7 @@ public:
|
|||
void gl_tex_image_2d(GLenum target, GLint level, GLint internal_format, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, GLvoid const* data);
|
||||
void gl_tex_sub_image_2d(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid const* data);
|
||||
void gl_tex_parameter(GLenum target, GLenum pname, GLfloat param);
|
||||
void gl_tex_parameterfv(GLenum target, GLenum pname, GLfloat const* params);
|
||||
void gl_tex_coord(GLfloat s, GLfloat t, GLfloat r, GLfloat q);
|
||||
void gl_multi_tex_coord(GLenum target, GLfloat s, GLfloat t, GLfloat r, GLfloat q);
|
||||
void gl_tex_env(GLenum target, GLenum pname, GLfloat param);
|
||||
|
@ -366,6 +367,7 @@ private:
|
|||
decltype(&GLContext::gl_hint),
|
||||
decltype(&GLContext::gl_read_buffer),
|
||||
decltype(&GLContext::gl_tex_parameter),
|
||||
decltype(&GLContext::gl_tex_parameterfv),
|
||||
decltype(&GLContext::gl_depth_mask),
|
||||
decltype(&GLContext::gl_draw_arrays),
|
||||
decltype(&GLContext::gl_draw_elements),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue