- removed gl interface function pointers for all OpenGL32.dll entry points.
This commit is contained in:
parent
37de4bea67
commit
26943fe3fd
27 changed files with 732 additions and 882 deletions
|
|
@ -116,82 +116,6 @@ static bool CheckExtension(const char *ext)
|
|||
static void InitContext()
|
||||
{
|
||||
gl.flags=0;
|
||||
|
||||
gl.Begin = glBegin;
|
||||
gl.End = glEnd;
|
||||
gl.DrawArrays = glDrawArrays;
|
||||
|
||||
gl.TexCoord2f = glTexCoord2f;
|
||||
gl.TexCoord2fv = glTexCoord2fv;
|
||||
|
||||
gl.Vertex2f = glVertex2f;
|
||||
gl.Vertex2i = glVertex2i;
|
||||
gl.Vertex3f = glVertex3f;
|
||||
gl.Vertex3fv = glVertex3fv;
|
||||
gl.Vertex3d = glVertex3d;
|
||||
|
||||
gl.Color4f = glColor4f;
|
||||
gl.Color4fv = glColor4fv;
|
||||
gl.Color3f = glColor3f;
|
||||
gl.Color3ub = glColor3ub;
|
||||
gl.Color4ub = glColor4ub;
|
||||
|
||||
gl.ColorMask = glColorMask;
|
||||
|
||||
gl.DepthFunc = glDepthFunc;
|
||||
gl.DepthMask = glDepthMask;
|
||||
gl.DepthRange = glDepthRange;
|
||||
|
||||
gl.StencilFunc = glStencilFunc;
|
||||
gl.StencilMask = glStencilMask;
|
||||
gl.StencilOp = glStencilOp;
|
||||
|
||||
gl.MatrixMode = glMatrixMode;
|
||||
gl.PushMatrix = glPushMatrix;
|
||||
gl.PopMatrix = glPopMatrix;
|
||||
gl.LoadIdentity = glLoadIdentity;
|
||||
gl.MultMatrixd = glMultMatrixd;
|
||||
gl.Translatef = glTranslatef;
|
||||
gl.Ortho = glOrtho;
|
||||
gl.Scalef = glScalef;
|
||||
gl.Rotatef = glRotatef;
|
||||
|
||||
gl.Viewport = glViewport;
|
||||
gl.Scissor = glScissor;
|
||||
|
||||
gl.Clear = glClear;
|
||||
gl.ClearColor = glClearColor;
|
||||
gl.ClearDepth = glClearDepth;
|
||||
gl.ShadeModel = glShadeModel;
|
||||
gl.Hint = glHint;
|
||||
|
||||
gl.DisableClientState = glDisableClientState;
|
||||
gl.EnableClientState = glEnableClientState;
|
||||
|
||||
gl.Fogf = glFogf;
|
||||
gl.Fogi = glFogi;
|
||||
gl.Fogfv = glFogfv;
|
||||
|
||||
gl.Enable = glEnable;
|
||||
gl.IsEnabled = glIsEnabled;
|
||||
gl.Disable = glDisable;
|
||||
|
||||
gl.TexGeni = glTexGeni;
|
||||
gl.DeleteTextures = glDeleteTextures;
|
||||
gl.GenTextures = glGenTextures;
|
||||
gl.BindTexture = glBindTexture;
|
||||
gl.TexImage2D = glTexImage2D;
|
||||
gl.TexParameterf = glTexParameterf;
|
||||
gl.TexParameteri = glTexParameteri;
|
||||
gl.CopyTexSubImage2D = glCopyTexSubImage2D;
|
||||
|
||||
gl.ReadPixels = glReadPixels;
|
||||
gl.PolygonOffset = glPolygonOffset;
|
||||
gl.ClipPlane = glClipPlane;
|
||||
|
||||
gl.Finish = glFinish;
|
||||
gl.Flush = glFlush;
|
||||
|
||||
gl.BlendEquation = glBlendEquationDummy;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue