Skip to content

Commit

Permalink
Add glFogi, glFogiv and glReadBuffer.
Browse files Browse the repository at this point in the history
  • Loading branch information
Wolf3s committed Feb 21, 2024
1 parent 1d26bd8 commit d9ae844
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
21 changes: 21 additions & 0 deletions src/drawcontext.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -786,6 +786,13 @@ void glDrawBuffer(GLenum mode)
mNotImplemented();
}

void glReadBuffer(GLenum mode)
{
GL_FUNC_DEBUG("%s(0x%x)\n", __FUNCTION__, mode);

mNotImplemented();
}

void glClipPlane(GLenum plane, const GLdouble* equation)
{
GL_FUNC_DEBUG("%s(0x%x,%f)\n", __FUNCTION__, plane, equation);
Expand Down Expand Up @@ -885,6 +892,20 @@ void glPolygonMode(GLenum face, GLenum mode)
drawContext.SetPolygonMode(mode);
}

void glPolygonOffset(GLfloat factor, GLfloat units)
{
GL_FUNC_DEBUG("%s\n", __FUNCTION__);

mNotImplemented();
}

void glGetPolygonStipple(GLubyte* mask)
{
GL_FUNC_DEBUG("%s\n", __FUNCTION__);

mNotImplemented();
}

/********************************************
* ps2gl api
*/
Expand Down
14 changes: 14 additions & 0 deletions src/lighting.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -457,6 +457,13 @@ void glGetLightfv(GLenum light, GLenum pname, float* params)
mNotImplemented();
}

void glFogi(GLenum pname, GLfloat param)
{
GL_FUNC_DEBUG("%s\n", __FUNCTION__);

mNotImplemented();
}

void glFogf(GLenum pname, GLfloat param)
{
GL_FUNC_DEBUG("%s\n", __FUNCTION__);
Expand All @@ -470,3 +477,10 @@ void glFogfv(GLenum pname, const GLfloat* params)

mNotImplemented();
}

void glFogiv(GLenum pname, const GLint* params)
{
GL_FUNC_DEBUG("%s\n", __FUNCTION__);

mNotImplemented();
}

0 comments on commit d9ae844

Please sign in to comment.