示例#1
0
static bool
test_with_glproxy(void)
{
    glBegin(GL_TRIANGLES);
    {
        /* Hit a base entrypoint that won't call gl_version() */
        glVertex2f(0, 0);

        /* Hit an entrypoint that will call probably call gl_version() */
        glMultiTexCoord4f(GL_TEXTURE0, 0.0, 0.0, 0.0, 0.0);

        /* Hit an entrypoint that will probably call
         * glproxy_conservative_has_extension();
         */
        if (has_argb2101010) {
            glTexCoordP4ui(GL_UNSIGNED_INT_2_10_10_10_REV, 0);
        }
    }
    glEnd();

    /* No error should have been generated in the process. */
    return glGetError() == 0;
}
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL33_nglTexCoordP4ui(JNIEnv *__env, jclass clazz, jint type, jint coords, jlong __functionAddress) {
	glTexCoordP4uiPROC glTexCoordP4ui = (glTexCoordP4uiPROC)(intptr_t)__functionAddress;
	UNUSED_PARAMS(__env, clazz)
	glTexCoordP4ui(type, coords);
}