mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 20:57:44 +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
42
Userland/Libraries/LibGL/Buffer.cpp
Normal file
42
Userland/Libraries/LibGL/Buffer.cpp
Normal file
|
@ -0,0 +1,42 @@
|
|||
/*
|
||||
* Copyright (c) 2022, Jelle Raaijmakers <jelle@gmta.nl>
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
||||
#include <AK/Debug.h>
|
||||
#include <LibGL/GLContext.h>
|
||||
|
||||
namespace GL {
|
||||
|
||||
void GLContext::gl_bind_buffer(GLenum target, GLuint buffer)
|
||||
{
|
||||
// FIXME: implement me
|
||||
dbgln_if(GL_DEBUG, "{}({:#x}, {})): unimplemented", __FUNCTION__, target, buffer);
|
||||
}
|
||||
|
||||
void GLContext::gl_buffer_data(GLenum target, GLsizeiptr size, void const* data, GLenum usage)
|
||||
{
|
||||
// FIXME: implement me
|
||||
dbgln_if(GL_DEBUG, "{}({:#x}, {}, {:p}, {:#x}): unimplemented", __FUNCTION__, target, size, data, usage);
|
||||
}
|
||||
|
||||
void GLContext::gl_buffer_sub_data(GLenum target, GLintptr offset, GLsizeiptr size, void const* data)
|
||||
{
|
||||
// FIXME: implement me
|
||||
dbgln_if(GL_DEBUG, "{}({:#x}, {}, {}, {:p}): unimplemented", __FUNCTION__, target, offset, size, data);
|
||||
}
|
||||
|
||||
void GLContext::gl_delete_buffers(GLsizei n, GLuint const* buffers)
|
||||
{
|
||||
// FIXME: implement me
|
||||
dbgln_if(GL_DEBUG, "{}({}, {:p}): unimplemented", __FUNCTION__, n, buffers);
|
||||
}
|
||||
|
||||
void GLContext::gl_gen_buffers(GLsizei n, GLuint* buffers)
|
||||
{
|
||||
// FIXME: implement me
|
||||
dbgln_if(GL_DEBUG, "{}({}, {:p}): unimplemented", __FUNCTION__, n, buffers);
|
||||
}
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue