aboutsummaryrefslogtreecommitdiffstats
path: root/src/com/jogamp/opencl/demos/julia3d/structs
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/jogamp/opencl/demos/julia3d/structs')
-rw-r--r--src/com/jogamp/opencl/demos/julia3d/structs/RenderingConfig32.java36
-rw-r--r--src/com/jogamp/opencl/demos/julia3d/structs/RenderingConfig64.java36
-rw-r--r--src/com/jogamp/opencl/demos/julia3d/structs/Vec32.java12
-rw-r--r--src/com/jogamp/opencl/demos/julia3d/structs/Vec64.java12
4 files changed, 48 insertions, 48 deletions
diff --git a/src/com/jogamp/opencl/demos/julia3d/structs/RenderingConfig32.java b/src/com/jogamp/opencl/demos/julia3d/structs/RenderingConfig32.java
index 27f40e6..7364704 100644
--- a/src/com/jogamp/opencl/demos/julia3d/structs/RenderingConfig32.java
+++ b/src/com/jogamp/opencl/demos/julia3d/structs/RenderingConfig32.java
@@ -16,84 +16,84 @@ class RenderingConfig32 extends RenderingConfig {
public RenderingConfig setWidth(int val) {
- accessor.setIntAt(0, val);
+ accessor.setIntAt(4*0, val);
return this;
}
public int getWidth() {
- return accessor.getIntAt(0);
+ return accessor.getIntAt(4*0);
}
public RenderingConfig setHeight(int val) {
- accessor.setIntAt(1, val);
+ accessor.setIntAt(4*1, val);
return this;
}
public int getHeight() {
- return accessor.getIntAt(1);
+ return accessor.getIntAt(4*1);
}
public RenderingConfig setSuperSamplingSize(int val) {
- accessor.setIntAt(2, val);
+ accessor.setIntAt(4*2, val);
return this;
}
public int getSuperSamplingSize() {
- return accessor.getIntAt(2);
+ return accessor.getIntAt(4*2);
}
public RenderingConfig setActvateFastRendering(int val) {
- accessor.setIntAt(3, val);
+ accessor.setIntAt(4*3, val);
return this;
}
public int getActvateFastRendering() {
- return accessor.getIntAt(3);
+ return accessor.getIntAt(4*3);
}
public RenderingConfig setEnableShadow(int val) {
- accessor.setIntAt(4, val);
+ accessor.setIntAt(4*4, val);
return this;
}
public int getEnableShadow() {
- return accessor.getIntAt(4);
+ return accessor.getIntAt(4*4);
}
public RenderingConfig setMaxIterations(int val) {
- accessor.setIntAt(5, val);
+ accessor.setIntAt(4*5, val);
return this;
}
public int getMaxIterations() {
- return accessor.getIntAt(5);
+ return accessor.getIntAt(4*5);
}
public RenderingConfig setEpsilon(float val) {
- accessor.setFloatAt(6, val);
+ accessor.setFloatAt(4*6, val);
return this;
}
public float getEpsilon() {
- return accessor.getFloatAt(6);
+ return accessor.getFloatAt(4*6);
}
public RenderingConfig setMu(float[] val) {
- accessor.setFloatsAt(8, val);
+ accessor.setFloatsAt(4*8, val);
return this;
}
public float[] getMu() {
- return accessor.getFloatsAt(8, new float[4]);
+ return accessor.getFloatsAt(4*8, new float[4]);
}
public RenderingConfig setLight(float[] val) {
- accessor.setFloatsAt(12, val);
+ accessor.setFloatsAt(4*12, val);
return this;
}
public float[] getLight() {
- return accessor.getFloatsAt(12, new float[3]);
+ return accessor.getFloatsAt(4*12, new float[3]);
}
public Camera getCamera() {
diff --git a/src/com/jogamp/opencl/demos/julia3d/structs/RenderingConfig64.java b/src/com/jogamp/opencl/demos/julia3d/structs/RenderingConfig64.java
index e60987e..3396e42 100644
--- a/src/com/jogamp/opencl/demos/julia3d/structs/RenderingConfig64.java
+++ b/src/com/jogamp/opencl/demos/julia3d/structs/RenderingConfig64.java
@@ -19,84 +19,84 @@ class RenderingConfig64 extends RenderingConfig {
public RenderingConfig setWidth(int val) {
- accessor.setIntAt(0, val);
+ accessor.setIntAt(4*0, val);
return this;
}
public int getWidth() {
- return accessor.getIntAt(0);
+ return accessor.getIntAt(4*0);
}
public RenderingConfig setHeight(int val) {
- accessor.setIntAt(1, val);
+ accessor.setIntAt(4*1, val);
return this;
}
public int getHeight() {
- return accessor.getIntAt(1);
+ return accessor.getIntAt(4*1);
}
public RenderingConfig setSuperSamplingSize(int val) {
- accessor.setIntAt(2, val);
+ accessor.setIntAt(4*2, val);
return this;
}
public int getSuperSamplingSize() {
- return accessor.getIntAt(2);
+ return accessor.getIntAt(4*2);
}
public RenderingConfig setActvateFastRendering(int val) {
- accessor.setIntAt(3, val);
+ accessor.setIntAt(4*3, val);
return this;
}
public int getActvateFastRendering() {
- return accessor.getIntAt(3);
+ return accessor.getIntAt(4*3);
}
public RenderingConfig setEnableShadow(int val) {
- accessor.setIntAt(4, val);
+ accessor.setIntAt(4*4, val);
return this;
}
public int getEnableShadow() {
- return accessor.getIntAt(4);
+ return accessor.getIntAt(4*4);
}
public RenderingConfig setMaxIterations(int val) {
- accessor.setIntAt(5, val);
+ accessor.setIntAt(4*5, val);
return this;
}
public int getMaxIterations() {
- return accessor.getIntAt(5);
+ return accessor.getIntAt(4*5);
}
public RenderingConfig setEpsilon(float val) {
- accessor.setFloatAt(6, val);
+ accessor.setFloatAt(4*6, val);
return this;
}
public float getEpsilon() {
- return accessor.getFloatAt(6);
+ return accessor.getFloatAt(4*6);
}
public RenderingConfig setMu(float[] val) {
- accessor.setFloatsAt(7, val);
+ accessor.setFloatsAt(4*7, val);
return this;
}
public float[] getMu() {
- return accessor.getFloatsAt(7, new float[4]);
+ return accessor.getFloatsAt(4*7, new float[4]);
}
public RenderingConfig setLight(float[] val) {
- accessor.setFloatsAt(11, val);
+ accessor.setFloatsAt(4*11, val);
return this;
}
public float[] getLight() {
- return accessor.getFloatsAt(11, new float[3]);
+ return accessor.getFloatsAt(4*11, new float[3]);
}
public Camera getCamera() {
diff --git a/src/com/jogamp/opencl/demos/julia3d/structs/Vec32.java b/src/com/jogamp/opencl/demos/julia3d/structs/Vec32.java
index e7668ac..09ea0d9 100644
--- a/src/com/jogamp/opencl/demos/julia3d/structs/Vec32.java
+++ b/src/com/jogamp/opencl/demos/julia3d/structs/Vec32.java
@@ -16,29 +16,29 @@ class Vec32 extends Vec {
public Vec setX(float val) {
- accessor.setFloatAt(0, val);
+ accessor.setFloatAt(4*0, val);
return this;
}
public float getX() {
- return accessor.getFloatAt(0);
+ return accessor.getFloatAt(4*0);
}
public Vec setY(float val) {
- accessor.setFloatAt(1, val);
+ accessor.setFloatAt(4*1, val);
return this;
}
public float getY() {
- return accessor.getFloatAt(1);
+ return accessor.getFloatAt(4*1);
}
public Vec setZ(float val) {
- accessor.setFloatAt(2, val);
+ accessor.setFloatAt(4*2, val);
return this;
}
public float getZ() {
- return accessor.getFloatAt(2);
+ return accessor.getFloatAt(4*2);
}
}
diff --git a/src/com/jogamp/opencl/demos/julia3d/structs/Vec64.java b/src/com/jogamp/opencl/demos/julia3d/structs/Vec64.java
index 60750a4..8731491 100644
--- a/src/com/jogamp/opencl/demos/julia3d/structs/Vec64.java
+++ b/src/com/jogamp/opencl/demos/julia3d/structs/Vec64.java
@@ -16,29 +16,29 @@ class Vec64 extends Vec {
public Vec setX(float val) {
- accessor.setFloatAt(0, val);
+ accessor.setFloatAt(4*0, val);
return this;
}
public float getX() {
- return accessor.getFloatAt(0);
+ return accessor.getFloatAt(4*0);
}
public Vec setY(float val) {
- accessor.setFloatAt(1, val);
+ accessor.setFloatAt(4*1, val);
return this;
}
public float getY() {
- return accessor.getFloatAt(1);
+ return accessor.getFloatAt(4*1);
}
public Vec setZ(float val) {
- accessor.setFloatAt(2, val);
+ accessor.setFloatAt(4*2, val);
return this;
}
public float getZ() {
- return accessor.getFloatAt(2);
+ return accessor.getFloatAt(4*2);
}
}