diff options
author | Michael Bien <[email protected]> | 2010-02-13 22:16:28 +0100 |
---|---|---|
committer | Michael Bien <[email protected]> | 2010-02-13 22:16:28 +0100 |
commit | f386e227c0cd30bf10b90acccd77d4845dc45783 (patch) | |
tree | 84e7fd80b0b09f60c546e15d6a72bcfe3b682e9f /src/com/mbien/opencl/demos/julia3d/config.h | |
parent | 4e34732609bfa569aae8e89fe0304a7e56628256 (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/config.h')
-rw-r--r-- | src/com/mbien/opencl/demos/julia3d/config.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/com/mbien/opencl/demos/julia3d/config.h b/src/com/mbien/opencl/demos/julia3d/config.h new file mode 100644 index 0000000..72df3ff --- /dev/null +++ b/src/com/mbien/opencl/demos/julia3d/config.h @@ -0,0 +1,24 @@ + +typedef struct { + float x, y, z; // position, also color (r,g,b) +} Vec; + +typedef struct { + /* User defined values */ + Vec orig, target; + /* Calculated values */ + Vec dir, x, y; +} Camera; + +typedef struct { + unsigned int width, height; + int superSamplingSize; + int actvateFastRendering; + int enableShadow; + + unsigned int maxIterations; + float epsilon; + float mu[4]; + float light[3]; + Camera camera; +} RenderingConfig; |