clray
view src/common.h @ 56:e3b4457dc4d2
added glFinish after swap-buffers to make the program absolutely correct in regards to mediating usage of the shared GL/CL texture image
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Mon, 06 Sep 2010 05:40:47 +0100 |
parents | |
children | 6a30f27fa1e6 |
line source
1 #ifndef COMMON_H_
2 #define COMMON_H_
4 /* primary ray magnitude */
5 #define RAY_MAG 500.0
7 /* maximum faces per leaf node of the kd-tree */
8 #define MAX_NODE_FACES 32
10 /* maximum kdtree depth */
11 #define MAX_TREE_DEPTH 64
13 /* width in pixels of the image-ified kdtree node */
14 #define KDIMG_NODE_WIDTH 16
16 /* maximum kdtree image height */
17 #define KDIMG_MAX_HEIGHT 4096
19 #endif /* COMMON_H_ */