#endif
+#if !defined(__APPLE__)
void (APIENTRY * glBindBufferARB) (GLenum target, GLuint buffer);
void (APIENTRY * glGenBuffersARB) (GLsizei n, GLuint *buffers);
void (APIENTRY * glDeleteBuffersARB) (GLsizei n, const GLuint *buffers);
void (APIENTRY * glBufferDataARB) (GLenum target, int size, const GLvoid *data, GLenum usage);
+#endif
#endif
int nIndices;
};
+#if !defined(ECERE_NO3D) && !defined(ECERE_VANILLA)
static int primitiveTypes[RenderPrimitiveType] =
{
GL_POINTS, GL_LINES, GL_TRIANGLES, GL_TRIANGLE_STRIP, GL_TRIANGLE_FAN, GL_QUADS, GL_QUAD_STRIP, GL_LINE_STRIP
};
+#endif
int current;
void * previous;
glClearDepth(1.0);
glDisable(GL_MULTISAMPLE_ARB);
}
+#if !defined(ECERE_NO3D) && !defined(ECERE_VANILLA)
display.ambient = Color { 50,50,50 };
+#endif
if(!useSingleGLContext)
#if defined(__WIN32__)
#endif
}
}
-
+#if !defined(ECERE_NO3D) && !defined(ECERE_VANILLA)
void SetRenderState(Display display, RenderState state, uint value)
{
OGLDisplay oglDisplay = display.driverData;
{
//Logf("SelectMesh\n");
-#ifndef __ANDROID__
+#if !defined( __ANDROID__) && !defined(__APPLE__)
if(display.display3D.mesh && glUnlockArraysEXT)
glUnlockArraysEXT();
#endif
glDisableClientState(GL_COLOR_ARRAY);
}
-#ifndef __ANDROID__
+#if !defined(__ANDROID__) && !defined(__APPLE__)
if(glLockArraysEXT) glLockArraysEXT(0, mesh.nVertices);
#endif
}
glMultMatrixd(matrix.array);
}
+#endif
}
public void UseSingleGLContext(bool useSingle)