static void DrawMapEval2(float du, float dv) { float u, v, tmp; glColor3f(1.0, 0.0, 0.0); for (v = 0.0; v < 1.0; v += dv) { glBegin(GL_QUAD_STRIP); for (u = 0.0; u <= 1.0; u += du) { glEvalCoord2d(u, v); tmp = (v + dv < 1.0) ? (v + dv) : 1.0; glEvalCoord2d(u, tmp); } glEvalCoord2d(1.0, v); glEvalCoord2d(1.0, v + dv); glEnd(); } }
static void hugsprim_glEvalCoord2d_13(HugsStackPtr hugs_root) { HsDouble arg1; HsDouble arg2; arg1 = hugs->getDouble(); arg2 = hugs->getDouble(); glEvalCoord2d(arg1, arg2); hugs->returnIO(hugs_root,0); }
void glEvalCoord2dv(const GLdouble *v) { glEvalCoord2d(v[0], v[1]); }
M(void, glEvalCoord2d, jdouble u, jdouble v) { glEvalCoord2d(u, v); }