Enums/TEXTUREFLAGS

From Garry's Mod
(Difference between revisions)
Jump to: navigation, search
(Fixed values)
Line 3: Line 3:
  
 
{{Warning|These enumerations do not exist in the game and are listed here purely for reference purposes only.}}
 
{{Warning|These enumerations do not exist in the game and are listed here purely for reference purposes only.}}
|Fields=
+
|Fields={{EnumField|TEXTUREFLAGS_POINTSAMPLE|1|Low quality, "pixel art" texture filtering.}}{{EnumField|TEXTUREFLAGS_TRILINEAR|2|Medium quality texture filtering.}}{{EnumField|TEXTUREFLAGS_CLAMPS|4|Clamp S coordinates.}}{{EnumField|TEXTUREFLAGS_CLAMPT|8|Clamp T coordinates.}}{{EnumField|TEXTUREFLAGS_ANISOTROPIC|16|High quality texture filtering.}}{{EnumField|TEXTUREFLAGS_HINT_DXT5|32|Used in skyboxes. Makes sure edges are seamless.}}{{EnumField|TEXTUREFLAGS_PWL_CORRECTED|64|Purpose unknown.}}{{EnumField|TEXTUREFLAGS_NORMAL|128|Texture is a normal map.}}{{EnumField|TEXTUREFLAGS_NOMIP|256|Render largest mipmap only. (Does not delete existing mipmaps, just disables them.)}}{{EnumField|TEXTUREFLAGS_NOLOD|512|Not affected by texture resolution settings.}}{{EnumField|TEXTUREFLAGS_ALL_MIPS|1024|No Minimum Mipmap}}{{EnumField|TEXTUREFLAGS_PROCEDURAL|2048|Texture is an procedural texture (code can modify it).}}{{EnumField|TEXTUREFLAGS_ONEBITALPHA|4096|One bit alpha channel used.}}{{EnumField|TEXTUREFLAGS_EIGHTBITALPHA|8192|Eight bit alpha channel used.}}{{EnumField|TEXTUREFLAGS_ENVMAP|16384|Texture is an environment map.}}{{EnumField|TEXTUREFLAGS_RENDERTARGET|32768|Texture is a render target.}}{{EnumField|TEXTUREFLAGS_DEPTHRENDERTARGET|65536|Texture is a depth render target.}}{{EnumField|TEXTUREFLAGS_NODEBUGOVERRIDE|131072}}{{EnumField|TEXTUREFLAGS_SINGLECOPY|262144}}{{EnumField|TEXTUREFLAGS_UNUSED_00080000|524288}}{{EnumField|TEXTUREFLAGS_UNUSED_00100000|1048576|{{Deprecated}}}}{{EnumField|TEXTUREFLAGS_IMMEDIATE_CLEANUP|1048576|{{NextUpdate}}
{{EnumField|TEXTUREFLAGS_POINTSAMPLE|1|Low quality, "pixel art" texture filtering.}}
+
Immediately destroy this texture when its reference count hits zero
{{EnumField|TEXTUREFLAGS_TRILINEAR|2|Medium quality texture filtering.}}
+
}}{{EnumField|TEXTUREFLAGS_UNUSED_00200000|2097152}}{{EnumField|TEXTUREFLAGS_UNUSED_00400000|4194304}}{{EnumField|TEXTUREFLAGS_NODEPTHBUFFER|8388608|Do not buffer for Video Processing, generally render distance.}}{{EnumField|TEXTUREFLAGS_UNUSED_01000000|16777216}}{{EnumField|TEXTUREFLAGS_CLAMPU|33554432|Clamp U coordinates (for volumetric textures).}}{{EnumField|TEXTUREFLAGS_VERTEXTEXTURE|67108864|Usable as a vertex texture}}{{EnumField|TEXTUREFLAGS_SSBUMP|134217728|Texture is a SSBump. (SSB)}}{{EnumField|TEXTUREFLAGS_UNUSED_10000000|268435456}}{{EnumField|TEXTUREFLAGS_BORDER|536870912|Clamp to border colour on all texture coordinates}}{{EnumField|TEXTUREFLAGS_UNUSED_40000000|1073741824}}{{EnumField|TEXTUREFLAGS_UNUSED_80000000|2147483648}}
{{EnumField|TEXTUREFLAGS_CLAMPS|4|Clamp S coordinates.}}
+
{{EnumField|TEXTUREFLAGS_CLAMPT|8|Clamp T coordinates.}}
+
{{EnumField|TEXTUREFLAGS_ANISOTROPIC|16|High quality texture filtering.}}
+
{{EnumField|TEXTUREFLAGS_HINT_DXT5|32|Used in skyboxes. Makes sure edges are seamless.}}
+
{{EnumField|TEXTUREFLAGS_PWL_CORRECTED|64|Purpose unknown.}}
+
{{EnumField|TEXTUREFLAGS_NORMAL|128|Texture is a normal map.}}
+
{{EnumField|TEXTUREFLAGS_NOMIP|256|Render largest mipmap only. (Does not delete existing mipmaps, just disables them.)}}
+
{{EnumField|TEXTUREFLAGS_NOLOD|512|Not affected by texture resolution settings.}}
+
{{EnumField|TEXTUREFLAGS_ALL_MIPS|1024|No Minimum Mipmap}}
+
{{EnumField|TEXTUREFLAGS_PROCEDURAL|2048|Texture is an procedural texture (code can modify it).}}
+
 
+
{{EnumField|TEXTUREFLAGS_ONEBITALPHA|4096|One bit alpha channel used.}}
+
{{EnumField|TEXTUREFLAGS_EIGHTBITALPHA|8192|Eight bit alpha channel used.}}
+
 
+
{{EnumField|TEXTUREFLAGS_ENVMAP|16384|Texture is an environment map.}}
+
{{EnumField|TEXTUREFLAGS_RENDERTARGET|32768|Texture is a render target.}}
+
{{EnumField|TEXTUREFLAGS_DEPTHRENDERTARGET|65536|Texture is a depth render target.}}
+
{{EnumField|TEXTUREFLAGS_NODEBUGOVERRIDE|131072|}}
+
{{EnumField|TEXTUREFLAGS_SINGLECOPY|262144|}}
+
 
+
{{EnumField|TEXTUREFLAGS_UNUSED_00080000|524288|}}
+
{{EnumField|TEXTUREFLAGS_UNUSED_00100000|1048576|}}
+
{{EnumField|TEXTUREFLAGS_UNUSED_00200000|2097152|}}
+
{{EnumField|TEXTUREFLAGS_UNUSED_00400000|4194304|}}
+
 
+
{{EnumField|TEXTUREFLAGS_NODEPTHBUFFER|8388608|Do not buffer for Video Processing, generally render distance.}}
+
{{EnumField|TEXTUREFLAGS_UNUSED_01000000|16777216|}}
+
{{EnumField|TEXTUREFLAGS_CLAMPU|33554432|Clamp U coordinates (for volumetric textures).}}
+
{{EnumField|TEXTUREFLAGS_VERTEXTEXTURE|67108864|Usable as a vertex texture}}
+
{{EnumField|TEXTUREFLAGS_SSBUMP|134217728|Texture is a SSBump. (SSB)}}
+
{{EnumField|TEXTUREFLAGS_UNUSED_10000000|268435456|}}
+
{{EnumField|TEXTUREFLAGS_BORDER|536870912|Clamp to border colour on all texture coordinates}}
+
{{EnumField|TEXTUREFLAGS_UNUSED_40000000|1073741824|}}
+
{{EnumField|TEXTUREFLAGS_UNUSED_80000000|2147483648|}}
+
 
}}
 
}}

Revision as of 14:05, 9 February 2017

Bit flags used by GetRenderTargetEx. Clientside only. Information taken from here

WARNING

These enumerations do not exist in the game and are listed here purely for reference purposes only.



Warning! Decimal values are for reference only! The actual value may be different between two Garry's Mod versions.
Name Decimal Description
TEXTUREFLAGS_POINTSAMPLE 1 Low quality, "pixel art" texture filtering.
TEXTUREFLAGS_TRILINEAR 2 Medium quality texture filtering.
TEXTUREFLAGS_CLAMPS 4 Clamp S coordinates.
TEXTUREFLAGS_CLAMPT 8 Clamp T coordinates.
TEXTUREFLAGS_ANISOTROPIC 16 High quality texture filtering.
TEXTUREFLAGS_HINT_DXT5 32 Used in skyboxes. Makes sure edges are seamless.
TEXTUREFLAGS_PWL_CORRECTED 64 Purpose unknown.
TEXTUREFLAGS_NORMAL 128 Texture is a normal map.
TEXTUREFLAGS_NOMIP 256 Render largest mipmap only. (Does not delete existing mipmaps, just disables them.)
TEXTUREFLAGS_NOLOD 512 Not affected by texture resolution settings.
TEXTUREFLAGS_ALL_MIPS 1024 No Minimum Mipmap
TEXTUREFLAGS_PROCEDURAL 2048 Texture is an procedural texture (code can modify it).
TEXTUREFLAGS_ONEBITALPHA 4096 One bit alpha channel used.
TEXTUREFLAGS_EIGHTBITALPHA 8192 Eight bit alpha channel used.
TEXTUREFLAGS_ENVMAP 16384 Texture is an environment map.
TEXTUREFLAGS_RENDERTARGET 32768 Texture is a render target.
TEXTUREFLAGS_DEPTHRENDERTARGET 65536 Texture is a depth render target.
TEXTUREFLAGS_NODEBUGOVERRIDE 131072
TEXTUREFLAGS_SINGLECOPY 262144
TEXTUREFLAGS_UNUSED_00080000 524288
TEXTUREFLAGS_UNUSED_00100000 1048576
This feature is deprecated.
You should avoid using it as it may be removed in a future version.
TEXTUREFLAGS_IMMEDIATE_CLEANUP 1048576
Next Update Change

This feature is only available in the next update.

Immediately destroy this texture when its reference count hits zero

TEXTUREFLAGS_UNUSED_00200000 2097152
TEXTUREFLAGS_UNUSED_00400000 4194304
TEXTUREFLAGS_NODEPTHBUFFER 8388608 Do not buffer for Video Processing, generally render distance.
TEXTUREFLAGS_UNUSED_01000000 16777216
TEXTUREFLAGS_CLAMPU 33554432 Clamp U coordinates (for volumetric textures).
TEXTUREFLAGS_VERTEXTEXTURE 67108864 Usable as a vertex texture
TEXTUREFLAGS_SSBUMP 134217728 Texture is a SSBump. (SSB)
TEXTUREFLAGS_UNUSED_10000000 268435456
TEXTUREFLAGS_BORDER 536870912 Clamp to border colour on all texture coordinates
TEXTUREFLAGS_UNUSED_40000000 1073741824
TEXTUREFLAGS_UNUSED_80000000 2147483648
Personal tools
Navigation