Allolib  1.0
C++ Components For Interactive Multimedia
al_SphereUtils.hpp
1 #ifndef INCLUDE_AL_SPHERE_UTILS_HPP
2 #define INCLUDE_AL_SPHERE_UTILS_HPP
3 
4 #include <cassert>
5 #include <cmath>
6 #include <map>
7 #include <string>
8 #include <vector>
9 
10 #include "al/app/al_NodeConfiguration.hpp"
11 #include "al/math/al_Constants.hpp"
12 
13 std::string al_get_hostname();
14 
15 namespace al {
16 
17 namespace sphere {
18 
19 bool isSimulatorMachine(std::string const& host);
20 
21 bool isSimulatorMachine();
22 
23 bool isRendererMachine(std::string const& host);
24 
25 bool isRendererMachine();
26 
27 std::string renderer_hostname(std::string const& fallback);
28 
29 bool isSphereMachine();
30 
31 void getFullscreenDimension(int* width, int* height);
32 
33 std::string getCalibrationDirectory(std::string const& dir_if_not_renderer);
34 
35 std::string getRendererCalibrationFilepath(std::string const& host);
36 
37 std::string getRendererCalibrationFilepath();
38 
39 std::string getCalibrationFilepath(std::string const& path_if_not_renderer);
40 
41 std::vector<float> generateEquirectSampletex(int width, int height);
42 
43 std::map<std::string, ::al::NodeConfiguration> getSphereNodes();
44 
45 } // namespace sphere
46 
47 } // namespace al
48 
49 #endif
Definition: al_App.hpp:23