The Dirtchamber
A mixed reality testing environment for real-time global illumination algorithms
serializer_tools.h
Go to the documentation of this file.
1 /*
2  * Dune D3D library - Tobias Alexander Franke 2014
3  * For copyright and license see LICENSE
4  * http://www.tobias-franke.eu
5  */
6 
9 #ifndef DUNE_SERIALIZER_TOOLS
10 #define DUNE_SERIALIZER_TOOLS
11 
12 #include "serializer.h"
13 
14 #include "camera.h"
15 #include "light.h"
17 #include "sparse_voxel_octree.h"
18 
19 namespace dune
20 {
22 
23  serializer& operator<<(serializer& s, const camera& c);
24  const serializer& operator>>(const serializer& s, camera& c);
26 
28 
29  serializer& operator<<(serializer& s, const directional_light& l);
30  const serializer& operator>>(const serializer& s, directional_light& l);
32 
34 
35  serializer& operator<<(serializer& s, const light_propagation_volume& lpv);
36  const serializer& operator>>(const serializer& s, light_propagation_volume& lpv);
38 
40 
41  serializer& operator<<(serializer& s, const sparse_voxel_octree& lpv);
42  const serializer& operator>>(const serializer& s, sparse_voxel_octree& lpv);
44 }
45 
46 #endif
serializer & operator<<(serializer &s, const camera &c)
Read/write camera parameters from/to a serializer.
Definition: serializer_tools.cpp:11
const serializer & operator>>(const serializer &s, camera &c)
Read/write camera parameters from/to a serializer.
Definition: serializer_tools.cpp:30