mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 17:17:44 +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
|
@ -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