aboutsummaryrefslogtreecommitdiffstats
path: root/src/com/jogamp/opencl/demos/julia3d/structs/RenderingConfig32.java
blob: 73647049c91cb858e14f13a95c7955d616843c10 (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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
/* !---- DO NOT EDIT: This file autogenerated by com/sun/gluegen/JavaEmitter.java on Tue Feb 09 18:20:26 CET 2010 ----! */


package com.jogamp.opencl.demos.julia3d.structs;


class RenderingConfig32 extends RenderingConfig {

  public static int size() {
    return 140;
  }

  RenderingConfig32(java.nio.ByteBuffer buf) {
    super(buf);
  }


  public RenderingConfig setWidth(int val) {
    accessor.setIntAt(4*0, val);
    return this;
  }

  public int getWidth() {
    return accessor.getIntAt(4*0);
  }

  public RenderingConfig setHeight(int val) {
    accessor.setIntAt(4*1, val);
    return this;
  }

  public int getHeight() {
    return accessor.getIntAt(4*1);
  }

  public RenderingConfig setSuperSamplingSize(int val) {
    accessor.setIntAt(4*2, val);
    return this;
  }

  public int getSuperSamplingSize() {
    return accessor.getIntAt(4*2);
  }

  public RenderingConfig setActvateFastRendering(int val) {
    accessor.setIntAt(4*3, val);
    return this;
  }

  public int getActvateFastRendering() {
    return accessor.getIntAt(4*3);
  }

  public RenderingConfig setEnableShadow(int val) {
    accessor.setIntAt(4*4, val);
    return this;
  }

  public int getEnableShadow() {
    return accessor.getIntAt(4*4);
  }

  public RenderingConfig setMaxIterations(int val) {
    accessor.setIntAt(4*5, val);
    return this;
  }

  public int getMaxIterations() {
    return accessor.getIntAt(4*5);
  }

  public RenderingConfig setEpsilon(float val) {
    accessor.setFloatAt(4*6, val);
    return this;
  }

  public float getEpsilon() {
    return accessor.getFloatAt(4*6);
  }

  public RenderingConfig setMu(float[] val) {
    accessor.setFloatsAt(4*8, val);
    return this;
  }

  public float[] getMu() {
    return accessor.getFloatsAt(4*8, new float[4]);
  }

  public RenderingConfig setLight(float[] val) {
    accessor.setFloatsAt(4*12, val);
    return this;
  }

  public float[] getLight() {
    return accessor.getFloatsAt(4*12, new float[3]);
  }

  public Camera getCamera() {
    return Camera.create(accessor.slice(64, 76));
  }
}