fix texture loading
[cltracer.git] / conf.h
blob93154ecd016020c85ca68682809ae7a97232d881
1 /*
2 * This program is free software: you can redistribute it and/or modify
3 * it under the terms of the GNU General Public License as published by
4 * the Free Software Foundation, either version 3 of the License, or
5 * (at your option) any later version.
7 * This program is distributed in the hope that it will be useful,
8 * but WITHOUT ANY WARRANTY; without even the implied warranty of
9 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10 * GNU General Public License for more details.
12 * You should have received a copy of the GNU General Public License
13 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 * Copyright (C) 2010 Pavel Herrmann (morpheus.ibis@gmail.com)
19 #ifndef _CONF_H_
20 #define _CONF_H_
22 #include <CL/cl.h>
24 struct frameconfig_s
26 cl_float3 eyepoint;
27 cl_float3 lookat;
28 cl_float3 upvector;
29 cl_float2 angles;
32 extern size_t tilesize[2];
33 extern size_t lwsize[2];
34 extern struct frameconfig_s * frames;
35 extern struct frameconfig_s * current_frame;
36 extern struct frameconfig_s last_frame;
37 extern int framecount;
38 extern cl_int lightcount;
39 extern cl_int2 tiles;
40 extern struct light_s * lightlist;
41 extern float density;
42 extern char * outname;
43 extern char * scenefile;
44 extern int accelstruct;
45 extern int interactive;
47 int config_load(char*);
48 void config_cleanup(void);
51 #endif