aboutsummaryrefslogtreecommitdiffstats
path: root/src/com/mbien/opencl/demos/julia3d/structs/Vec32.java
diff options
context:
space:
mode:
authorMichael Bien <[email protected]>2010-02-13 22:16:28 +0100
committerMichael Bien <[email protected]>2010-02-13 22:16:28 +0100
commitf386e227c0cd30bf10b90acccd77d4845dc45783 (patch)
tree84e7fd80b0b09f60c546e15d6a72bcfe3b682e9f /src/com/mbien/opencl/demos/julia3d/structs/Vec32.java
parent4e34732609bfa569aae8e89fe0304a7e56628256 (diff)
initial import of David Bucciarelli's Julia3d demo ported to java using OpenCL and JOGL2.
Diffstat (limited to 'src/com/mbien/opencl/demos/julia3d/structs/Vec32.java')
-rw-r--r--src/com/mbien/opencl/demos/julia3d/structs/Vec32.java48
1 files changed, 48 insertions, 0 deletions
diff --git a/src/com/mbien/opencl/demos/julia3d/structs/Vec32.java b/src/com/mbien/opencl/demos/julia3d/structs/Vec32.java
new file mode 100644
index 0000000..970dd35
--- /dev/null
+++ b/src/com/mbien/opencl/demos/julia3d/structs/Vec32.java
@@ -0,0 +1,48 @@
+/* !---- DO NOT EDIT: This file autogenerated by com/sun/gluegen/JavaEmitter.java on Tue Feb 09 18:20:26 CET 2010 ----! */
+
+
+package com.mbien.opencl.demos.julia3d.structs;
+
+import java.nio.*;
+
+import com.sun.gluegen.runtime.*;
+
+
+class Vec32 extends Vec {
+
+ public static int size() {
+ return 12;
+ }
+
+ Vec32(java.nio.ByteBuffer buf) {
+ super(buf);
+ }
+
+
+ public Vec setX(float val) {
+ accessor.setFloatAt(0, val);
+ return this;
+ }
+
+ public float getX() {
+ return accessor.getFloatAt(0);
+ }
+
+ public Vec setY(float val) {
+ accessor.setFloatAt(1, val);
+ return this;
+ }
+
+ public float getY() {
+ return accessor.getFloatAt(1);
+ }
+
+ public Vec setZ(float val) {
+ accessor.setFloatAt(2, val);
+ return this;
+ }
+
+ public float getZ() {
+ return accessor.getFloatAt(2);
+ }
+}