diff options
author | Jelle Raaijmakers <jelle@gmta.nl> | 2022-05-08 01:41:30 +0200 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2022-05-09 21:49:48 +0200 |
commit | 0dcb23ee9640e2b6dbab660b224633b8303e939d (patch) | |
tree | bb70106f6c2df29d25e372e3109acf1f14afc0f1 /Userland/Libraries/LibGL/GLContext.h | |
parent | ac3e46b97d30e6aab0ff2cad1883c8854f511a13 (diff) | |
download | serenity-0dcb23ee9640e2b6dbab660b224633b8303e939d.zip |
LibGL+LibGPU: Implement `glPointSize`
Diffstat (limited to 'Userland/Libraries/LibGL/GLContext.h')
-rw-r--r-- | Userland/Libraries/LibGL/GLContext.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/Userland/Libraries/LibGL/GLContext.h b/Userland/Libraries/LibGL/GLContext.h index 8ed5b14ee6..9093a414be 100644 --- a/Userland/Libraries/LibGL/GLContext.h +++ b/Userland/Libraries/LibGL/GLContext.h @@ -199,6 +199,7 @@ public: void gl_clip_plane(GLenum plane, GLdouble const* equation); void gl_array_element(GLint i); void gl_copy_tex_sub_image_2d(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height); + void gl_point_size(GLfloat size); private: void sync_device_config(); @@ -442,7 +443,8 @@ private: decltype(&GLContext::gl_get_light), decltype(&GLContext::gl_clip_plane), decltype(&GLContext::gl_array_element), - decltype(&GLContext::gl_copy_tex_sub_image_2d)>; + decltype(&GLContext::gl_copy_tex_sub_image_2d), + decltype(&GLContext::gl_point_size)>; using ExtraSavedArguments = Variant< FloatMatrix4x4>; @@ -481,7 +483,11 @@ private: GLsizei m_unpack_row_length { 0 }; u8 m_unpack_alignment { 4 }; - float m_line_width { 1.0f }; + // Point drawing configuration + float m_point_size { 1.f }; + + // Line drawing configuration + float m_line_width { 1.f }; // Lighting configuration bool m_lighting_enabled { false }; |