mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 13:17:35 +00:00
LibGL: Add buffer API stubs
No implemented functionality, but this makes it easier to see if software is using this family of functions.
This commit is contained in:
parent
1c32d93a12
commit
03258f4c96
6 changed files with 80 additions and 1 deletions
|
@ -67,6 +67,11 @@ void glBegin(GLenum mode)
|
|||
g_gl_context->gl_begin(mode);
|
||||
}
|
||||
|
||||
void glBindBuffer(GLenum target, GLuint buffer)
|
||||
{
|
||||
g_gl_context->gl_bind_buffer(target, buffer);
|
||||
}
|
||||
|
||||
void glBindTexture(GLenum target, GLuint texture)
|
||||
{
|
||||
g_gl_context->gl_bind_texture(target, texture);
|
||||
|
@ -82,6 +87,16 @@ void glBlendFunc(GLenum sfactor, GLenum dfactor)
|
|||
return g_gl_context->gl_blend_func(sfactor, dfactor);
|
||||
}
|
||||
|
||||
void glBufferData(GLenum target, GLsizeiptr size, void const* data, GLenum usage)
|
||||
{
|
||||
g_gl_context->gl_buffer_data(target, size, data, usage);
|
||||
}
|
||||
|
||||
void glBufferSubData(GLenum target, GLintptr offset, GLsizeiptr size, void const* data)
|
||||
{
|
||||
g_gl_context->gl_buffer_sub_data(target, offset, size, data);
|
||||
}
|
||||
|
||||
void glCallList(GLuint list)
|
||||
{
|
||||
return g_gl_context->gl_call_list(list);
|
||||
|
@ -226,6 +241,11 @@ void glCullFace(GLenum mode)
|
|||
g_gl_context->gl_cull_face(mode);
|
||||
}
|
||||
|
||||
void glDeleteBuffers(GLsizei n, GLuint const* buffers)
|
||||
{
|
||||
g_gl_context->gl_delete_buffers(n, buffers);
|
||||
}
|
||||
|
||||
void glDepthFunc(GLenum func)
|
||||
{
|
||||
g_gl_context->gl_depth_func(func);
|
||||
|
@ -384,6 +404,11 @@ void glFrustum(GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLd
|
|||
g_gl_context->gl_frustum(left, right, bottom, top, nearVal, farVal);
|
||||
}
|
||||
|
||||
void glGenBuffers(GLsizei n, GLuint* buffers)
|
||||
{
|
||||
g_gl_context->gl_gen_buffers(n, buffers);
|
||||
}
|
||||
|
||||
GLuint glGenLists(GLsizei range)
|
||||
{
|
||||
return g_gl_context->gl_gen_lists(range);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue