LibGL: Implement glDrawPixels and add stub for glBitmap

This commit is contained in:
Jelle Raaijmakers 2021-12-01 17:19:22 +01:00 committed by Andreas Kling
commit 401472c9a4
Notes: sideshowbarker 2024-07-17 22:51:02 +09:00
7 changed files with 149 additions and 1 deletions

View file

@ -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);