Add VIEWPORT_TYPE_GRID_CELL enum sentinel for N-player splitscreen

The actual D3D viewport rect is pushed via StateSetViewportRect; this
enum value is the per-pad sentinel that consumer code uses to mark
players occupying a grid cell (5+ player splitscreen).

Splits in two: viewport routing (sentinel) is separate from rect push.
This commit is contained in:
MrTheShy committed 2026-05-03 00:19:22 +02:00
1 parent 3dbe479606
commit 2ef3ef0bbc
1 file changed
+6
+6
View File
@@ -118,6 +118,12 @@ public:
VIEWPORT_TYPE_QUADRANT_TOP_RIGHT,
VIEWPORT_TYPE_QUADRANT_BOTTOM_LEFT,
VIEWPORT_TYPE_QUADRANT_BOTTOM_RIGHT,
// N-player (5+) uses a parametric grid. The cell's (col, row, cols, rows)
// is stored per pad in Minecraft::s_playerCellCol/Row + s_playerGridCols/Rows.
// All N>4 split-screen players share this single enum value; lookups index
// the per-pad arrays by pad index. The actual D3D viewport rect must be
// pushed via StateSetViewportRect — never pass this enum to StateSetViewport.
VIEWPORT_TYPE_GRID_CELL,
} eViewportType;
typedef enum