1 #ifndef INCLUDE_AL_SPHERE_UTILS_HPP
2 #define INCLUDE_AL_SPHERE_UTILS_HPP
10 #include "al/app/al_NodeConfiguration.hpp"
11 #include "al/math/al_Constants.hpp"
13 std::string al_get_hostname();
19 bool isSimulatorMachine(std::string
const& host);
21 bool isSimulatorMachine();
23 bool isRendererMachine(std::string
const& host);
25 bool isRendererMachine();
27 std::string renderer_hostname(std::string
const& fallback);
29 bool isSphereMachine();
31 void getFullscreenDimension(
int* width,
int* height);
33 std::string getCalibrationDirectory(std::string
const& dir_if_not_renderer);
35 std::string getRendererCalibrationFilepath(std::string
const& host);
37 std::string getRendererCalibrationFilepath();
39 std::string getCalibrationFilepath(std::string
const& path_if_not_renderer);
41 std::vector<float> generateEquirectSampletex(
int width,
int height);
43 std::map<std::string, ::al::NodeConfiguration> getSphereNodes();