Pre-defined values: Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
Fox (talk | contribs)
WIP
 
Fox (talk | contribs)
No edit summary
Line 1: Line 1:
== Globalflags ==
Used with [[globalflags]] userdef or [[DEF_Language#globalflags|globalflags]] DEF command
Used with [[globalflags]] userdef or [[DEF_Language#globalflags|globalflags]] DEF command


Line 14: Line 16:
| 4
| 4
| GLOBAL_NO_GL_FOGSHADE
| GLOBAL_NO_GL_FOGSHADE
| Make visibility the same for all shades in OpenGL. WIth this, positive shades won't appear darker with visibility, and negative shades won't appear brighter (and negative shades will have virtually no difference from shade zero). As a result, positive shades won't look even darker with distance, while negative shades will look the  
| Make visibility the same for all shades in OpenGL. With this, positive shades won't appear darker with visibility, and negative shades won't appear brighter (and negative shades will have virtually no difference from shade zero). As a result, positive shades won't look even darker with distance, while negative shades will look the  
|-
|-
|}
|}
Line 23: Line 25:


[[Category:Scripting documentation]]
[[Category:Scripting documentation]]
== Globalgameflags ==
Used with [[globalgameflags]] userdef or [[DEF_Language#globalgameflags|globalgameflags]] DEF command
{| {{prettytable}}
!Value!!Label!!Description!!
|-
| 1
| DUKE3D_NO_WIDESCREEN_PINNING
| Disable widescreen orientation bits for weapon sprites drawn on screen. Enable this if you are using weapon sprites extended on the sides (similar to 20th Anniversary World Tour).
|-
| 2
| DUKE3D_NO_HARDCODED_FOGPALS
| Disable the four fog palettes. By default Eduke32 will create four new palettes, with IDs ranging from 26 to 29 (however it varies depending of the size of the lookup table).
|-
| 4
| DUKE3D_NO_PALETTE_CHANGES
| Disable changes to the game palette. By default Eduke32 will attempt to replace the magenta color used for transparency with the color closest to black.
|-
|}
define DUKE3D_NO_WIDESCREEN_PINNING    0x00000001
define DUKE3D_NO_HARDCODED_FOGPALS      0x00000002
define DUKE3D_NO_PALETTE_CHANGES        0x00000004

Revision as of 05:47, 10 December 2019

Globalflags

Used with globalflags userdef or globalflags DEF command

Value Label Description
1 GLOBAL_NO_GL_TILESHADES Disable tile shades (aka palette emulation) in OpenGL
2 GLOBAL_NO_GL_FULLBRIGHT Disable fullbright colors in OpenGL
4 GLOBAL_NO_GL_FOGSHADE Make visibility the same for all shades in OpenGL. With this, positive shades won't appear darker with visibility, and negative shades won't appear brighter (and negative shades will have virtually no difference from shade zero). As a result, positive shades won't look even darker with distance, while negative shades will look the
define GLOBAL_NO_GL_TILESHADES          0x00000001
define GLOBAL_NO_GL_FULLBRIGHT          0x00000002
define GLOBAL_NO_GL_FOGSHADE            0x00000004

Globalgameflags

Used with globalgameflags userdef or globalgameflags DEF command

Value Label Description
1 DUKE3D_NO_WIDESCREEN_PINNING Disable widescreen orientation bits for weapon sprites drawn on screen. Enable this if you are using weapon sprites extended on the sides (similar to 20th Anniversary World Tour).
2 DUKE3D_NO_HARDCODED_FOGPALS Disable the four fog palettes. By default Eduke32 will create four new palettes, with IDs ranging from 26 to 29 (however it varies depending of the size of the lookup table).
4 DUKE3D_NO_PALETTE_CHANGES Disable changes to the game palette. By default Eduke32 will attempt to replace the magenta color used for transparency with the color closest to black.
define DUKE3D_NO_WIDESCREEN_PINNING     0x00000001
define DUKE3D_NO_HARDCODED_FOGPALS      0x00000002
define DUKE3D_NO_PALETTE_CHANGES        0x00000004