mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-02 08:22:55 +00:00
LibGL: Stub lots of map-related methods
This adds stubs for `glMap(1|2)(d|f)`, `glMapGrid(1|2)(d|f)`, `glEvalCoord(1|2)(d|f)`, `glEvalMesh(1|2)` and `glEvalPoint(1|2)`.
This commit is contained in:
parent
dae63352a3
commit
abecff1766
Notes:
sideshowbarker
2024-07-17 22:08:40 +09:00
Author: https://github.com/gmta
Commit: abecff1766
Pull-request: https://github.com/SerenityOS/serenity/pull/11397
3 changed files with 123 additions and 0 deletions
|
@ -6,6 +6,7 @@ set(SOURCES
|
|||
GLFog.cpp
|
||||
GLLights.cpp
|
||||
GLLists.cpp
|
||||
GLMap.cpp
|
||||
GLMat.cpp
|
||||
GLStencil.cpp
|
||||
GLTexture.cpp
|
||||
|
|
|
@ -578,6 +578,22 @@ GLAPI void glPushAttrib(GLbitfield mask);
|
|||
GLAPI void glPopAttrib();
|
||||
GLAPI void glBitmap(GLsizei width, GLsizei height, GLfloat xorig, GLfloat yorig, GLfloat xmove, GLfloat ymove, GLubyte const* bitmap);
|
||||
GLAPI void glCopyTexImage2D(GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border);
|
||||
GLAPI void glMap1d(GLenum target, GLdouble u1, GLdouble u2, GLint stride, GLint order, GLdouble const* points);
|
||||
GLAPI void glMap1f(GLenum target, GLfloat u1, GLfloat u2, GLint stride, GLint order, GLfloat const* points);
|
||||
GLAPI void glMap2d(GLenum target, GLdouble u1, GLdouble u2, GLint ustride, GLint uorder, GLdouble v1, GLdouble v2, GLint vstride, GLint vorder, GLdouble const* points);
|
||||
GLAPI void glMap2f(GLenum target, GLfloat u1, GLfloat u2, GLint ustride, GLint uorder, GLfloat v1, GLfloat v2, GLint vstride, GLint vorder, GLfloat const* points);
|
||||
GLAPI void glMapGrid1d(GLint un, GLdouble u1, GLdouble u2);
|
||||
GLAPI void glMapGrid1f(GLint un, GLfloat u1, GLfloat u2);
|
||||
GLAPI void glMapGrid2d(GLint un, GLdouble u1, GLdouble u2, GLint vn, GLdouble v1, GLdouble v2);
|
||||
GLAPI void glMapGrid2f(GLint un, GLfloat u1, GLfloat u2, GLint vn, GLfloat v1, GLfloat v2);
|
||||
GLAPI void glEvalCoord1d(GLdouble u);
|
||||
GLAPI void glEvalCoord1f(GLfloat u);
|
||||
GLAPI void glEvalCoord2d(GLdouble u, GLdouble v);
|
||||
GLAPI void glEvalCoord2f(GLfloat u, GLfloat v);
|
||||
GLAPI void glEvalMesh1(GLenum mode, GLint i1, GLint i2);
|
||||
GLAPI void glEvalMesh2(GLenum mode, GLint i1, GLint i2, GLint j1, GLint j2);
|
||||
GLAPI void glEvalPoint1(GLint i);
|
||||
GLAPI void glEvalPoint2(GLint i, GLint j);
|
||||
GLAPI void glRectf(GLfloat x1, GLfloat y1, GLfloat x2, GLfloat y2);
|
||||
GLAPI void glRecti(GLint x1, GLint y1, GLint x2, GLint y2);
|
||||
GLAPI void glGetTexLevelParameteriv(GLenum target, GLint level, GLenum pname, GLint* params);
|
||||
|
|
106
Userland/Libraries/LibGL/GLMap.cpp
Normal file
106
Userland/Libraries/LibGL/GLMap.cpp
Normal file
|
@ -0,0 +1,106 @@
|
|||
/*
|
||||
* Copyright (c) 2021, Jelle Raaijmakers <jelle@gmta.nl>
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
||||
#include "GL/gl.h"
|
||||
#include "GLContext.h"
|
||||
|
||||
extern GL::GLContext* g_gl_context;
|
||||
|
||||
void glMap1d(GLenum target, GLdouble u1, GLdouble u2, GLint stride, GLint order, GLdouble const* points)
|
||||
{
|
||||
dbgln("glMap1d({:#x}, {}, {}, {}, {}, {:p}): unimplemented", target, u1, u2, stride, order, points);
|
||||
TODO();
|
||||
}
|
||||
|
||||
void glMap1f(GLenum target, GLfloat u1, GLfloat u2, GLint stride, GLint order, GLfloat const* points)
|
||||
{
|
||||
dbgln("glMap1f({:#x}, {}, {}, {}, {}, {:p}): unimplemented", target, u1, u2, stride, order, points);
|
||||
TODO();
|
||||
}
|
||||
|
||||
void glMap2d(GLenum target, GLdouble u1, GLdouble u2, GLint ustride, GLint uorder, GLdouble v1, GLdouble v2, GLint vstride, GLint vorder, GLdouble const* points)
|
||||
{
|
||||
dbgln("glMap2d({:#x}, {}, {}, {}, {}, {}, {}, {}, {}, {:p}): unimplemented", target, u1, u2, ustride, uorder, v1, v2, vstride, vorder, points);
|
||||
TODO();
|
||||
}
|
||||
|
||||
void glMap2f(GLenum target, GLfloat u1, GLfloat u2, GLint ustride, GLint uorder, GLfloat v1, GLfloat v2, GLint vstride, GLint vorder, GLfloat const* points)
|
||||
{
|
||||
dbgln("glMap2f({:#x}, {}, {}, {}, {}, {}, {}, {}, {}, {:p}): unimplemented", target, u1, u2, ustride, uorder, v1, v2, vstride, vorder, points);
|
||||
TODO();
|
||||
}
|
||||
|
||||
void glMapGrid1d(GLint un, GLdouble u1, GLdouble u2)
|
||||
{
|
||||
dbgln("glMapGrid1d({}, {}, {}): unimplemented", un, u1, u2);
|
||||
TODO();
|
||||
}
|
||||
|
||||
void glMapGrid1f(GLint un, GLfloat u1, GLfloat u2)
|
||||
{
|
||||
dbgln("glMapGrid1f({}, {}, {}): unimplemented", un, u1, u2);
|
||||
TODO();
|
||||
}
|
||||
|
||||
void glMapGrid2d(GLint un, GLdouble u1, GLdouble u2, GLint vn, GLdouble v1, GLdouble v2)
|
||||
{
|
||||
dbgln("glMapGrid2d({}, {}, {}, {}, {}, {}): unimplemented", un, u1, u2, vn, v1, v2);
|
||||
TODO();
|
||||
}
|
||||
|
||||
void glMapGrid2f(GLint un, GLfloat u1, GLfloat u2, GLint vn, GLfloat v1, GLfloat v2)
|
||||
{
|
||||
dbgln("glMapGrid2f({}, {}, {}, {}, {}, {}): unimplemented", un, u1, u2, vn, v1, v2);
|
||||
TODO();
|
||||
}
|
||||
|
||||
void glEvalCoord1d(GLdouble u)
|
||||
{
|
||||
dbgln("glEvalCoord1d({}): unimplemented", u);
|
||||
TODO();
|
||||
}
|
||||
|
||||
void glEvalCoord1f(GLfloat u)
|
||||
{
|
||||
dbgln("glEvalCoord1f({}): unimplemented", u);
|
||||
TODO();
|
||||
}
|
||||
|
||||
void glEvalCoord2d(GLdouble u, GLdouble v)
|
||||
{
|
||||
dbgln("glEvalCoord2d({}, {}): unimplemented", u, v);
|
||||
TODO();
|
||||
}
|
||||
|
||||
void glEvalCoord2f(GLfloat u, GLfloat v)
|
||||
{
|
||||
dbgln("glEvalCoord2f({}, {}): unimplemented", u, v);
|
||||
TODO();
|
||||
}
|
||||
|
||||
void glEvalMesh1(GLenum mode, GLint i1, GLint i2)
|
||||
{
|
||||
dbgln("glEvalMesh1({:#x}, {}, {}): unimplemented", mode, i1, i2);
|
||||
TODO();
|
||||
}
|
||||
|
||||
void glEvalMesh2(GLenum mode, GLint i1, GLint i2, GLint j1, GLint j2)
|
||||
{
|
||||
dbgln("glEvalMesh2({:#x}, {}, {}, {}, {}): unimplemented", mode, i1, i2, j1, j2);
|
||||
TODO();
|
||||
}
|
||||
|
||||
void glEvalPoint1(GLint i)
|
||||
{
|
||||
dbgln("glEvalPoint1({}): unimplemented", i);
|
||||
TODO();
|
||||
}
|
||||
|
||||
void glEvalPoint2(GLint i, GLint j)
|
||||
{
|
||||
dbgln("glEvalPoint2({}, {}): unimplemented", i, j);
|
||||
TODO();
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue