Skip to content

Commit

Permalink
Merge pull request #21 from Wolf3s/OpenGL-Undefined
Browse files Browse the repository at this point in the history
Add glFogi, glFogiv and glReadBuffer and others.
  • Loading branch information
rickgaiser authored Feb 23, 2024
2 parents 1d26bd8 + d9ae844 commit 235ce1e
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 235ce1e

Please sign in to comment.