summaryrefslogtreecommitdiffstats
path: root/src/jogl/classes/com/jogamp/graph/curve
diff options
context:
space:
mode:
Diffstat (limited to 'src/jogl/classes/com/jogamp/graph/curve')
-rw-r--r--src/jogl/classes/com/jogamp/graph/curve/Region.java2
-rw-r--r--src/jogl/classes/com/jogamp/graph/curve/opengl/RegionRenderer.java16
2 files changed, 10 insertions, 8 deletions
diff --git a/src/jogl/classes/com/jogamp/graph/curve/Region.java b/src/jogl/classes/com/jogamp/graph/curve/Region.java
index bb0ed09d1..15a0d6bff 100644
--- a/src/jogl/classes/com/jogamp/graph/curve/Region.java
+++ b/src/jogl/classes/com/jogamp/graph/curve/Region.java
@@ -48,7 +48,7 @@ public abstract class Region {
/** Debug flag for region impl (graph.curve) */
public static final boolean DEBUG = Debug.debug("graph.curve");
- public static final boolean DEBUG_INSTANCE = Debug.debug("graph.curve.instance");
+ public static final boolean DEBUG_INSTANCE = Debug.debug("graph.curve.Instance");
/**
* Rendering-Mode bit for {@link Region#getRenderModes() Region} and {@link com.jogamp.graph.curve.opengl.RegionRenderer#getRenderModes() RegionRenderer}.
diff --git a/src/jogl/classes/com/jogamp/graph/curve/opengl/RegionRenderer.java b/src/jogl/classes/com/jogamp/graph/curve/opengl/RegionRenderer.java
index bc9052dbe..8233d4262 100644
--- a/src/jogl/classes/com/jogamp/graph/curve/opengl/RegionRenderer.java
+++ b/src/jogl/classes/com/jogamp/graph/curve/opengl/RegionRenderer.java
@@ -121,20 +121,22 @@ public abstract class RegionRenderer {
return new jogamp.graph.curve.opengl.RegionRendererImpl01(rs, renderModes, enableCallback, disableCallback);
}
- protected final int renderModes;
- protected final RenderState rs;
+ private final int renderModes;
+ private final RenderState rs;
- protected final GLCallback enableCallback;
- protected final GLCallback disableCallback;
+ private final GLCallback enableCallback;
+ private final GLCallback disableCallback;
- protected int vp_width;
- protected int vp_height;
- protected boolean initialized;
+ private int vp_width;
+ private int vp_height;
+ private boolean initialized;
private boolean vboSupported = false;
public final boolean isInitialized() { return initialized; }
+ /** Return width of current viewport */
public final int getWidth() { return vp_width; }
+ /** Return height of current viewport */
public final int getHeight() { return vp_height; }
public final float getWeight() { return rs.getWeight().floatValue(); }