cleaning up bezierDetail/curveDetail stuff a little.. prepping for

outline/shape stuff in opengl
This commit is contained in:
benfry
2005-08-07 16:44:36 +00:00
parent 99b97c0f20
commit 14df346bf0
4 changed files with 34 additions and 21 deletions

View File

@@ -745,18 +745,18 @@ public class PGraphics3 extends PGraphics {
if (splineVertexCount > 3) {
if (bezier) {
if ((splineVertexCount % 4) == 0) {
if (!bezier_inited) bezier_init();
if (!bezierInited) bezier_init();
spline3_segment(splineVertexCount-4,
splineVertexCount-4,
bezier_draw,
bezier_detail);
bezierDetail);
}
} else { // catmull-rom curve (!bezier)
if (!curve_inited) curve_init();
spline3_segment(splineVertexCount-4,
splineVertexCount-3,
curve_draw,
curve_detail);
curveDetail);
}
}
}
@@ -3114,7 +3114,9 @@ public class PGraphics3 extends PGraphics {
* called always dominates. On resize, the default projection is always
* established, which has perspective.
* <P>
* This behavior is pretty much familiar from OpenGL.
* This behavior is pretty much familiar from OpenGL, except where
* functions replace matrices, rather than multiplying against the
* previous.
* <P>
*/
public void perspective() {