mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-11-18 22:55:12 +00:00
3D:: two-player uses split screen
This commit is contained in:
11
graph.cpp
11
graph.cpp
@@ -6174,15 +6174,22 @@ void drawfullmap() {
|
||||
|
||||
void gamescreen(int _darken) {
|
||||
|
||||
if(subscreen_split([=] () {
|
||||
if(subscreens::split([=] () {
|
||||
calcparam();
|
||||
current_display->set_projection(0, false);
|
||||
current_display->set_viewport(0);
|
||||
compute_graphical_distance();
|
||||
gamescreen(_darken);
|
||||
})) {
|
||||
if(racing::on) return;
|
||||
// create the gmatrix
|
||||
current_display->set_projection(0, false);
|
||||
current_display->set_viewport(0);
|
||||
current_display->set_viewport(0);
|
||||
View = subscreens::player_displays[0].view_matrix;
|
||||
viewctr = subscreens::player_displays[0].view_center;
|
||||
just_gmatrix = true;
|
||||
currentmap->draw();
|
||||
just_gmatrix = false;
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user