diff options
author | chai <chaifix@163.com> | 2020-02-26 22:52:19 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2020-02-26 22:52:19 +0800 |
commit | 372d77e436d21312ef1a0df622964751716963a3 (patch) | |
tree | 1a71865fea6fb9f2f532422c4b83959fff17ea76 /src/extend/scene.h | |
parent | 27687536844ed3b045bba1abd1aae8bb3692f6cb (diff) |
*misc
Diffstat (limited to 'src/extend/scene.h')
-rw-r--r-- | src/extend/scene.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/extend/scene.h b/src/extend/scene.h new file mode 100644 index 0000000..9c30115 --- /dev/null +++ b/src/extend/scene.h @@ -0,0 +1,17 @@ +#ifndef _SOFTSHADEROOM_SCENE_H_ +#define _SOFTSHADEROOM_SCENE_H_ + +#include "light.h" +#include "camera.h" + +#define LIGHT_LIMIT 4 + +typedef struct { + Camera* main_camera; + Light lights[LIGHT_LIMIT]; int light_count; +} Scene; + +// singleton +extern Scene scene; + +#endif
\ No newline at end of file |