aboutsummaryrefslogtreecommitdiffstats
path: root/src/com/mbien/opencl/demos/julia3d/structs/Camera.java
blob: d6d647b3a2bced2366e25640914d33e2233fabc3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
/* !---- 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 Camera {

  StructAccessor accessor;

  public static int size() {
//    if (CPU.is32Bit()) {
//      return Camera32.size();
//    } else {
      return Camera64.size();
//    }
  }

  public static Camera create() {
    return create(BufferFactory.newDirectByteBuffer(size()));
  }

  public static Camera create(java.nio.ByteBuffer buf) {
//    if (CPU.is32Bit()) {
//      return new Camera32(buf);
//    } else {
      return new Camera64(buf);
//    }
  }

  Camera(java.nio.ByteBuffer buf) {
    accessor = new StructAccessor(buf);
  }

  public java.nio.ByteBuffer getBuffer() {
    return accessor.getBuffer();
  }

  public abstract Vec getOrig();

  public abstract Vec getTarget();

  public abstract Vec getDir();

  public abstract Vec getX();

  public abstract Vec getY();
}