RT_SIZE Enumerations

From Garry's Mod
Jump to: navigation, search

Enumerations used by GetRenderTargetEx. Clientside only.

Warning! Decimal values are for reference only! The actual value may be different between two Garry's Mod versions.
Name Decimal Description
RT_SIZE_NO_CHANGE 0 Only allowed for render targets that don't want a depth buffer (because if they have a depth buffer, the render target must be less than or equal to the size of the framebuffer).
RT_SIZE_DEFAULT 1 Don't play with the specified width and height other than making sure it fits in the framebuffer.
RT_SIZE_PICMIP 2 Apply picmip to the render target's width and height.
RT_SIZE_HDR 3 frame_buffer_width / 4
RT_SIZE_FULL_FRAME_BUFFER 4 Same size as frame buffer, or next lower power of 2 if we can't do that.
RT_SIZE_OFFSCREEN 5 Target of specified size, don't mess with dimensions
RT_SIZE_FULL_FRAME_BUFFER_ROUNDED_UP 6 Same size as the frame buffer, rounded up if necessary for systems that can't do non-power of two textures.
Personal tools
Navigation