mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-11 15:22:16 +00:00
- added 'r_showcaps' command which serves as a documentation for available flags and shows what flags are in use by the current rendering settings
This commit is contained in:
parent
91ff447a90
commit
1bfc2faa49
1 changed files with 20 additions and 0 deletions
|
@ -1279,3 +1279,23 @@ CCMD(angleconvtest)
|
||||||
ang, ang1, ang2, ang3);
|
ang, ang1, ang2, ang3);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
extern uint32_t r_renderercaps;
|
||||||
|
#define PRINT_CAP(X, Y) Printf(" %-18s: %s (%s)\n", #Y, !!(r_renderercaps & Y) ? "Yes" : "No ", X);
|
||||||
|
CCMD(r_showcaps)
|
||||||
|
{
|
||||||
|
Printf("Renderer capabilities:\n");
|
||||||
|
PRINT_CAP("Flat Sprites", RFF_FLATSPRITES)
|
||||||
|
PRINT_CAP("3D Models", RFF_MODELS)
|
||||||
|
PRINT_CAP("Sloped 3D floors", RFF_SLOPE3DFLOORS)
|
||||||
|
PRINT_CAP("Full Freelook", RFF_TILTPITCH)
|
||||||
|
PRINT_CAP("Roll Sprites", RFF_ROLLSPRITES)
|
||||||
|
PRINT_CAP("Unclipped Sprites", RFF_UNCLIPPEDTEX)
|
||||||
|
PRINT_CAP("Material Shaders", RFF_MATSHADER)
|
||||||
|
PRINT_CAP("Post-processing Shaders", RFF_POSTSHADER)
|
||||||
|
PRINT_CAP("Brightmaps", RFF_BRIGHTMAP)
|
||||||
|
PRINT_CAP("Custom COLORMAP lumps", RFF_COLORMAP)
|
||||||
|
PRINT_CAP("Uses Polygon rendering", RFF_POLYGONAL)
|
||||||
|
PRINT_CAP("Truecolor Enabled", RFF_TRUECOLOR)
|
||||||
|
PRINT_CAP("Voxels", RFF_VOXELS)
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue