Allow ZScript to change camera texture aspect ratio

Like feature suggestions, but you've actually written code to make it happen. More likely to make it into the game than some random request in feature suggestions.

Moderator: GZDoom Developers

Forum rules
Please see Code submission guidelines

GZDoom Status:
Image

Legacy Status:
Image Image

QZDoom Status:
Image
User avatar
NicoTheGoat
Posts: 17
Joined: Sun Dec 29, 2019 6:36 pm
Contact:

Allow ZScript to change camera texture aspect ratio

Post by NicoTheGoat »

Pull request: https://github.com/coelckers/gzdoom/pull/1424

Adds `TexMan.SetCameraTextureAspectRatio`, which lets ZScript modify the aspect ratio of camera textures.
Made primarily so camera textures drawn on the HUD can be made to match the level's pixel ratio without having to manually scale and clip them.

Return to “Code Submissions”