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

Allow ZScript to change camera texture aspect ratio

Postby NicoTheGoat » Sat Jul 03, 2021 2:30 pm

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.
User avatar
NicoTheGoat
 
Joined: 29 Dec 2019
Discord: emmy#4389
Github ID: nicothegoat
Operating System: Other Linux 64-bit
OS Test Version: No (Using Stable Public Version)

Return to Code Submissions

Who is online

Users browsing this forum: No registered users and 0 guests