mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 02:37:36 +00:00
LibGL: Implement glDrawPixels
and add stub for glBitmap
This commit is contained in:
parent
c2960e68a8
commit
401472c9a4
7 changed files with 149 additions and 1 deletions
|
@ -90,6 +90,7 @@ public:
|
|||
virtual void gl_tex_coord_pointer(GLint size, GLenum type, GLsizei stride, const void* pointer) override;
|
||||
virtual void gl_draw_arrays(GLenum mode, GLint first, GLsizei count) override;
|
||||
virtual void gl_draw_elements(GLenum mode, GLsizei count, GLenum type, const void* indices) override;
|
||||
virtual void gl_draw_pixels(GLsizei width, GLsizei height, GLenum format, GLenum type, const void* data) override;
|
||||
virtual void gl_color_mask(GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha) override;
|
||||
virtual void gl_get_booleanv(GLenum pname, GLboolean* data) override;
|
||||
virtual void gl_get_doublev(GLenum pname, GLdouble* params) override;
|
||||
|
@ -113,6 +114,7 @@ public:
|
|||
virtual void gl_push_attrib(GLbitfield mask) override;
|
||||
virtual void gl_pop_attrib() override;
|
||||
virtual void gl_light_model(GLenum pname, GLfloat x, GLfloat y, GLfloat z, GLfloat w) override;
|
||||
virtual void gl_bitmap(GLsizei width, GLsizei height, GLfloat xorig, GLfloat yorig, GLfloat xmove, GLfloat ymove, GLubyte const* bitmap) override;
|
||||
virtual void present() override;
|
||||
|
||||
private:
|
||||
|
@ -275,6 +277,7 @@ private:
|
|||
decltype(&SoftwareGLContext::gl_depth_mask),
|
||||
decltype(&SoftwareGLContext::gl_draw_arrays),
|
||||
decltype(&SoftwareGLContext::gl_draw_elements),
|
||||
decltype(&SoftwareGLContext::gl_draw_pixels),
|
||||
decltype(&SoftwareGLContext::gl_depth_range),
|
||||
decltype(&SoftwareGLContext::gl_polygon_offset),
|
||||
decltype(&SoftwareGLContext::gl_scissor),
|
||||
|
@ -286,7 +289,8 @@ private:
|
|||
decltype(&SoftwareGLContext::gl_line_width),
|
||||
decltype(&SoftwareGLContext::gl_push_attrib),
|
||||
decltype(&SoftwareGLContext::gl_pop_attrib),
|
||||
decltype(&SoftwareGLContext::gl_light_model)>;
|
||||
decltype(&SoftwareGLContext::gl_light_model),
|
||||
decltype(&SoftwareGLContext::gl_bitmap)>;
|
||||
|
||||
using ExtraSavedArguments = Variant<
|
||||
FloatMatrix4x4>;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue