Skip to content

Commit 235ce1e

Browse files
authored
Merge pull request #21 from Wolf3s/OpenGL-Undefined
Add glFogi, glFogiv and glReadBuffer and others.
2 parents 1d26bd8 + d9ae844 commit 235ce1e

File tree

2 files changed

+35
-0
lines changed

2 files changed

+35
-0
lines changed

src/drawcontext.cpp

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -786,6 +786,13 @@ void glDrawBuffer(GLenum mode)
786786
mNotImplemented();
787787
}
788788

789+
void glReadBuffer(GLenum mode)
790+
{
791+
GL_FUNC_DEBUG("%s(0x%x)\n", __FUNCTION__, mode);
792+
793+
mNotImplemented();
794+
}
795+
789796
void glClipPlane(GLenum plane, const GLdouble* equation)
790797
{
791798
GL_FUNC_DEBUG("%s(0x%x,%f)\n", __FUNCTION__, plane, equation);
@@ -885,6 +892,20 @@ void glPolygonMode(GLenum face, GLenum mode)
885892
drawContext.SetPolygonMode(mode);
886893
}
887894

895+
void glPolygonOffset(GLfloat factor, GLfloat units)
896+
{
897+
GL_FUNC_DEBUG("%s\n", __FUNCTION__);
898+
899+
mNotImplemented();
900+
}
901+
902+
void glGetPolygonStipple(GLubyte* mask)
903+
{
904+
GL_FUNC_DEBUG("%s\n", __FUNCTION__);
905+
906+
mNotImplemented();
907+
}
908+
888909
/********************************************
889910
* ps2gl api
890911
*/

src/lighting.cpp

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -457,6 +457,13 @@ void glGetLightfv(GLenum light, GLenum pname, float* params)
457457
mNotImplemented();
458458
}
459459

460+
void glFogi(GLenum pname, GLfloat param)
461+
{
462+
GL_FUNC_DEBUG("%s\n", __FUNCTION__);
463+
464+
mNotImplemented();
465+
}
466+
460467
void glFogf(GLenum pname, GLfloat param)
461468
{
462469
GL_FUNC_DEBUG("%s\n", __FUNCTION__);
@@ -470,3 +477,10 @@ void glFogfv(GLenum pname, const GLfloat* params)
470477

471478
mNotImplemented();
472479
}
480+
481+
void glFogiv(GLenum pname, const GLint* params)
482+
{
483+
GL_FUNC_DEBUG("%s\n", __FUNCTION__);
484+
485+
mNotImplemented();
486+
}

0 commit comments

Comments
 (0)