mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 04:57:44 +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
|
@ -121,6 +121,7 @@ public:
|
|||
virtual void gl_stencil_func_separate(GLenum face, GLenum func, GLint ref, GLuint mask) override;
|
||||
virtual void gl_stencil_op_separate(GLenum face, GLenum sfail, GLenum dpfail, GLenum dppass) override;
|
||||
virtual void gl_normal(GLfloat nx, GLfloat ny, GLfloat nz) override;
|
||||
virtual void gl_normal_pointer(GLenum type, GLsizei stride, void const* pointer) override;
|
||||
virtual void gl_raster_pos(GLfloat x, GLfloat y, GLfloat z, GLfloat w) override;
|
||||
virtual void gl_materialv(GLenum face, GLenum pname, GLfloat const* params) override;
|
||||
virtual void gl_line_width(GLfloat width) override;
|
||||
|
@ -131,6 +132,8 @@ public:
|
|||
virtual void gl_copy_tex_image_2d(GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border) override;
|
||||
virtual void gl_get_tex_parameter_integerv(GLenum target, GLint level, GLenum pname, GLint* params) override;
|
||||
virtual void gl_rect(GLdouble x1, GLdouble y1, GLdouble x2, GLdouble y2) override;
|
||||
virtual void gl_tex_gen(GLenum coord, GLenum pname, GLdouble param) override;
|
||||
virtual void gl_tex_gen_floatv(GLenum coord, GLenum pname, GLfloat const* params) override;
|
||||
|
||||
virtual void present() override;
|
||||
|
||||
|
@ -316,7 +319,9 @@ private:
|
|||
decltype(&SoftwareGLContext::gl_light_model),
|
||||
decltype(&SoftwareGLContext::gl_bitmap),
|
||||
decltype(&SoftwareGLContext::gl_copy_tex_image_2d),
|
||||
decltype(&SoftwareGLContext::gl_rect)>;
|
||||
decltype(&SoftwareGLContext::gl_rect),
|
||||
decltype(&SoftwareGLContext::gl_tex_gen),
|
||||
decltype(&SoftwareGLContext::gl_tex_gen_floatv)>;
|
||||
|
||||
using ExtraSavedArguments = Variant<
|
||||
FloatMatrix4x4>;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue