public void translate1(GL2 gl, double x0, double x1, double y0, double y1){ double step = 0.2; for(double i = 0; i < v_size; i += step){ gl.glBegin(GL2.GL_POLYGON); gl.glVertex2d(x0 + i, y0); gl.glVertex2d(x0 + i, y1); gl.glVertex2d(x1 + i, y1); gl.glVertex2d(x1 + i, y0); gl.glEnd(); } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)