Ultimately all this needs is a small data table describing the geometric properties of each mode and a single Present function that calls the mode specific variants. Code size got reduced from 50kb to less than 20kb with proper separation of the generic parts from the OpenGL parts. |
||
|---|---|---|
| .. | ||
| hw_clock.cpp | ||
| hw_clock.h | ||
| hw_cvars.cpp | ||
| hw_cvars.h | ||
| hw_lighting.cpp | ||
| hw_lighting.h | ||
| hw_shaderpatcher.cpp | ||
| hw_shaderpatcher.h | ||
| hw_vrmodes.cpp | ||
| hw_vrmodes.h | ||