mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-18 08:20:44 +00:00
LibGL: Implement glDrawPixels
and add stub for glBitmap
This commit is contained in:
parent
c2960e68a8
commit
401472c9a4
Notes:
sideshowbarker
2024-07-17 22:51:02 +09:00
Author: https://github.com/gmta
Commit: 401472c9a4
Pull-request: https://github.com/SerenityOS/serenity/pull/11154
Reviewed-by: https://github.com/sunverwerth ✅
7 changed files with 149 additions and 1 deletions
|
@ -9,6 +9,16 @@
|
|||
|
||||
extern GL::GLContext* g_gl_context;
|
||||
|
||||
void glBitmap(GLsizei width, GLsizei height, GLfloat xorig, GLfloat yorig, GLfloat xmove, GLfloat ymove, GLubyte const* bitmap)
|
||||
{
|
||||
g_gl_context->gl_bitmap(width, height, xorig, yorig, xmove, ymove, bitmap);
|
||||
}
|
||||
|
||||
void glDrawPixels(GLsizei width, GLsizei height, GLenum format, GLenum type, const void* data)
|
||||
{
|
||||
g_gl_context->gl_draw_pixels(width, height, format, type, data);
|
||||
}
|
||||
|
||||
void glLineWidth(GLfloat width)
|
||||
{
|
||||
g_gl_context->gl_line_width(width);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue