Files
tech5/source/shared/idlib/geometry/screenrect.h
T
2026-08-08 13:54:26 -07:00

22 lines
439 B
C++

#pragma once
// tungsten.exe.h type 12913. Unlike Doom 3 BFG's idScreenRect, this idTech 5
// build uses four 32-bit coordinates and does not store depth bounds here.
class idScreenRect {
public:
int x1;
int y1;
int x2;
int y2;
void Clear();
void Zero();
bool IsEmpty() const {
return x1 > x2 || y1 > y2;
}
};
static_assert(sizeof(idScreenRect) == 16, "Recovered idScreenRect layout changed");