mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 05:47:35 +00:00
LibGL: Stub more API calls
These stubs are largely implemented the same: their API is exposed, but they print to the debug console and sometimes `TODO()`. These changes allow GLU and Tux Racer to build. Methods stubbed: * `glTexImage1D` * `glTexImage3D` * `glTexCoord2d(v)` * `glNormalPointer` * `glTexGen(d|f|i)` * `glTexGenfv`
This commit is contained in:
parent
abecff1766
commit
ccf6769d95
6 changed files with 139 additions and 2 deletions
|
@ -20,11 +20,23 @@ void glDeleteTextures(GLsizei n, const GLuint* textures)
|
|||
g_gl_context->gl_delete_textures(n, textures);
|
||||
}
|
||||
|
||||
void glTexImage1D(GLenum target, GLint level, GLint internalFormat, GLsizei width, GLint border, GLenum format, GLenum type, const GLvoid* data)
|
||||
{
|
||||
dbgln("glTexImage1D({:#x}, {}, {:#x}, {}, {}, {:#x}, {:#x}, {:p}): unimplemented", target, level, internalFormat, width, border, format, type, data);
|
||||
TODO();
|
||||
}
|
||||
|
||||
void glTexImage2D(GLenum target, GLint level, GLint internalFormat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const GLvoid* data)
|
||||
{
|
||||
g_gl_context->gl_tex_image_2d(target, level, internalFormat, width, height, border, format, type, data);
|
||||
}
|
||||
|
||||
void glTexImage3D(GLenum target, GLint level, GLint internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const GLvoid* data)
|
||||
{
|
||||
dbgln("glTexImage3D({:#x}, {}, {:#x}, {}, {}, {}, {}, {:#x}, {:#x}, {:p}): unimplemented", target, level, internalFormat, width, height, depth, border, format, type, data);
|
||||
TODO();
|
||||
}
|
||||
|
||||
void glTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid* data)
|
||||
{
|
||||
g_gl_context->gl_tex_sub_image_2d(target, level, xoffset, yoffset, width, height, format, type, data);
|
||||
|
@ -62,6 +74,26 @@ void glCopyTexImage2D(GLenum target, GLint level, GLenum internalformat, GLint x
|
|||
g_gl_context->gl_copy_tex_image_2d(target, level, internalformat, x, y, width, height, border);
|
||||
}
|
||||
|
||||
void glTexGend(GLenum coord, GLenum pname, GLdouble param)
|
||||
{
|
||||
g_gl_context->gl_tex_gen(coord, pname, param);
|
||||
}
|
||||
|
||||
void glTexGenf(GLenum coord, GLenum pname, GLfloat param)
|
||||
{
|
||||
g_gl_context->gl_tex_gen(coord, pname, param);
|
||||
}
|
||||
|
||||
void glTexGenfv(GLenum coord, GLenum pname, GLfloat const* params)
|
||||
{
|
||||
g_gl_context->gl_tex_gen_floatv(coord, pname, params);
|
||||
}
|
||||
|
||||
void glTexGeni(GLenum coord, GLenum pname, GLint param)
|
||||
{
|
||||
g_gl_context->gl_tex_gen(coord, pname, param);
|
||||
}
|
||||
|
||||
void glGetTexLevelParameteriv(GLenum target, GLint level, GLenum pname, GLint* params)
|
||||
{
|
||||
g_gl_context->gl_get_tex_parameter_integerv(target, level, pname, params);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue