aboutsummaryrefslogtreecommitdiffstats
path: root/src/com/mbien/opencl/demos/julia3d/structs/Vec.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/mbien/opencl/demos/julia3d/structs/Vec.java')
-rw-r--r--src/com/mbien/opencl/demos/julia3d/structs/Vec.java54
1 files changed, 54 insertions, 0 deletions
diff --git a/src/com/mbien/opencl/demos/julia3d/structs/Vec.java b/src/com/mbien/opencl/demos/julia3d/structs/Vec.java
new file mode 100644
index 0000000..1344db4
--- /dev/null
+++ b/src/com/mbien/opencl/demos/julia3d/structs/Vec.java
@@ -0,0 +1,54 @@
+/* !---- 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.*;
+
+
+public abstract class Vec {
+
+ StructAccessor accessor;
+
+ public static int size() {
+ if (CPU.is32Bit()) {
+ return Vec32.size();
+ } else {
+ return Vec64.size();
+ }
+ }
+
+ public static Vec create() {
+ return create(BufferFactory.newDirectByteBuffer(size()));
+ }
+
+ public static Vec create(java.nio.ByteBuffer buf) {
+ if (CPU.is32Bit()) {
+ return new Vec32(buf);
+ } else {
+ return new Vec64(buf);
+ }
+ }
+
+ Vec(java.nio.ByteBuffer buf) {
+ accessor = new StructAccessor(buf);
+ }
+
+ public java.nio.ByteBuffer getBuffer() {
+ return accessor.getBuffer();
+ }
+
+ public abstract Vec setX(float val);
+
+ public abstract float getX();
+
+ public abstract Vec setY(float val);
+
+ public abstract float getY();
+
+ public abstract Vec setZ(float val);
+
+ public abstract float getZ();
+}