mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-11 18:20:43 +09:00
LibGL+LibGPU: Implement glPointSize
This commit is contained in:
parent
ac3e46b97d
commit
0dcb23ee96
Notes:
sideshowbarker
2024-07-17 11:06:51 +09:00
Author: https://github.com/gmta
Commit: 0dcb23ee96
Pull-request: https://github.com/SerenityOS/serenity/pull/13970
Reviewed-by: https://github.com/alimpfard
Reviewed-by: https://github.com/linusg
Reviewed-by: https://github.com/sunverwerth ✅
6 changed files with 25 additions and 4 deletions
|
@ -1192,6 +1192,18 @@ void GLContext::gl_rect(GLdouble x1, GLdouble y1, GLdouble x2, GLdouble y2)
|
|||
gl_end();
|
||||
}
|
||||
|
||||
void GLContext::gl_point_size(GLfloat size)
|
||||
{
|
||||
APPEND_TO_CALL_LIST_AND_RETURN_IF_NEEDED(gl_point_size, size);
|
||||
RETURN_WITH_ERROR_IF(size <= 0.f, GL_INVALID_VALUE);
|
||||
|
||||
m_point_size = size;
|
||||
|
||||
auto rasterizer_options = m_rasterizer->options();
|
||||
rasterizer_options.point_size = size;
|
||||
m_rasterizer->set_options(rasterizer_options);
|
||||
}
|
||||
|
||||
void GLContext::present()
|
||||
{
|
||||
m_rasterizer->blit_color_buffer_to(*m_frontbuffer);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue