mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-24 17:10:36 +00:00
removed the old VR preparation
This commit is contained in:
parent
deae12dea6
commit
ef3170dce7
@ -232,15 +232,8 @@ void display_data::set_all(int ed) {}
|
|||||||
|
|
||||||
#if CAP_GL
|
#if CAP_GL
|
||||||
|
|
||||||
#if CAP_VR
|
|
||||||
EX hookset<bool()> hooks_vr_eye_view, hooks_vr_eye_projection;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
EX void eyewidth_translate(int ed) {
|
EX void eyewidth_translate(int ed) {
|
||||||
glhr::using_eyeshift = false;
|
glhr::using_eyeshift = false;
|
||||||
#if CAP_VR
|
|
||||||
if(callhandlers(false, hooks_vr_eye_view)) ; else
|
|
||||||
#endif
|
|
||||||
if(ed) glhr::projection_multiply(glhr::translate(-ed * current_display->eyewidth(), 0, 0));
|
if(ed) glhr::projection_multiply(glhr::translate(-ed * current_display->eyewidth(), 0, 0));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2291,10 +2291,6 @@ EX void draw_main() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#if CAP_VR
|
|
||||||
EX hookset<bool()> hooks_vr_draw_all;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
EX void drawqueue() {
|
EX void drawqueue() {
|
||||||
|
|
||||||
DEBBI(DF_GRAPH, ("drawqueue"));
|
DEBBI(DF_GRAPH, ("drawqueue"));
|
||||||
@ -2368,9 +2364,6 @@ EX void drawqueue() {
|
|||||||
spherephase = 0;
|
spherephase = 0;
|
||||||
reset_projection();
|
reset_projection();
|
||||||
|
|
||||||
#if CAP_VR
|
|
||||||
if(callhandlers(false, hooks_vr)) {} else
|
|
||||||
#endif
|
|
||||||
#if CAP_GL
|
#if CAP_GL
|
||||||
if(model_needs_depth() && current_display->stereo_active()) {
|
if(model_needs_depth() && current_display->stereo_active()) {
|
||||||
global_projection = -1;
|
global_projection = -1;
|
||||||
|
Loading…
Reference in New Issue
Block a user