aboutsummaryrefslogtreecommitdiffstats
path: root/src/jogl/classes/javax/media/opengl/GLArrayData.java
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2012-10-22 21:28:40 +0200
committerSven Gothel <[email protected]>2012-10-22 21:28:40 +0200
commit03cdffe5739ef8b032638cf4169e713c90fb36c6 (patch)
tree0728e1bf17f11acf824cca7e76e2a96d5d87d9ae /src/jogl/classes/javax/media/opengl/GLArrayData.java
parent5bdd283a9c3d0c656c859d499476173e2f609839 (diff)
FixedFuncHook/ImmModeSink: Fix *Pointer 'normalized' parameter
All *Pointer methods used 'normalized:=false', but we cannot assume the fixed function code does use normalized (0f..1f) values. On the contrary, it usually uses the native format value range. Hence we have to pass normalized:=true for all fixed point data types and normalized:=false for floating point data types.
Diffstat (limited to 'src/jogl/classes/javax/media/opengl/GLArrayData.java')
-rw-r--r--src/jogl/classes/javax/media/opengl/GLArrayData.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/jogl/classes/javax/media/opengl/GLArrayData.java b/src/jogl/classes/javax/media/opengl/GLArrayData.java
index 7c56b53cb..5d17f6874 100644
--- a/src/jogl/classes/javax/media/opengl/GLArrayData.java
+++ b/src/jogl/classes/javax/media/opengl/GLArrayData.java
@@ -145,7 +145,11 @@ public interface GLArrayData {
/**
* True, if GL shall normalize fixed point data while converting
- * them into float
+ * them into float.
+ * <p>
+ * Default behavior (of the fixed function pipeline) is <code>true</code>
+ * for fixed point data type and <code>false</code> for floating point data types.
+ * </p>
*/
public boolean getNormalized();