26 inline bool updateProjection( IceTDouble *
const projection,
const isaac_size2 & framebuffer_size, json_t *
const message,
const bool first =
false)
32 inline void sendFeedback( json_t *
const json_root,
bool force =
false ) {}
43 inline bool updateProjection( IceTDouble *
const projection,
const isaac_size2 & framebuffer_size, json_t *
const message,
const bool first =
false)
45 if ( json_t* js = json_object_get(message,
"eye distance") )
48 eye_distance = json_number_value( js );
49 json_object_del( message,
"eye distance" );
51 if (first || send_stereo)
58 inline void sendFeedback( json_t *
const json_root,
bool force =
false )
60 if (send_stereo || force)
62 json_object_set_new( json_root,
"eye distance", json_real( eye_distance ) );
void spSetPerspectiveStereoscopic(IceTDouble *const projection, const isaac_float fovyInDegrees, const isaac_float aspectRatio, const isaac_float znear, const isaac_float zfar, const isaac_float z0, const isaac_float distance)
void setPerspective(IceTDouble *const projection, const isaac_float fovyInDegrees, const isaac_float aspectRatio, const isaac_float znear, const isaac_float zfar)
static const int pass_count
bool updateProjection(IceTDouble *const projection, const isaac_size2 &framebuffer_size, json_t *const message, const bool first=false)
bool updateProjection(IceTDouble *const projection, const isaac_size2 &framebuffer_size, json_t *const message, const bool first=false)
void sendFeedback(json_t *const json_root, bool force=false)
void sendFeedback(json_t *const json_root, bool force=false)