HandleTriangleStripsOption
function · cvar · orchestration
- Address
0x689400· 70 bytes, up to0x689445- Signature
uint8_t __stdcall (const char *value, void *arg)- Meaning
- Sets or clears the triangle strip bit of the world flags
- Confidence
- verified, proof two
- Finding
- cvar/options#switch-settings
Finding: Switch settings in cvar: options
Eleven settings are switches. A switch parses the text with SStrToInt and writes one line to the console. The world
flag word 0xc7b2a4 holds nine of them (terrain/world#world-flags). fullAlpha and doodadAnim keep their bit
inverted: the bit is set while the option is off, and the line is written only when the bit changes.
| setting | callback | sets or clears | line |
|---|---|---|---|
lod | 0x688920 | bit 0x4 | Terrain LOD enabled. or disabled. |
fullAlpha | 0x688960 | bit 0x4000, set for 0 | Full alpha on doodads enabled. or disabled. |
doodadAnim | 0x688a10 | bit 0x8000, set for 0; calls 0x6953d0 | Doodad animation enabled. or disabled. |
mapShadows | 0x688a70 | bit 0x40 | Terrain shadows enabled. or disabled. |
trilinear | 0x688ce0 | bit 0x800000; for any nonzero value with bit 31 of the word clear stores 4 through 0x449ac0 (0x688cee, 0x688d0d) | Trilinear filtering enabled upon restart. or disabled upon restart. |
specular | 0x688e20 | bit 0x8000000 | Specular enabled, Specular disabled. or the unsupported line |
mapObjOverbright | 0x688e90 | byte 0xca809c | MapObjOverbright enabled, disabled. or the unsupported line |
pixelShaders | 0x688f40 | bit 0x10000000 | Pixel shaders enabled., disabled. or the unsupported line |
showfootprints | 0x6892e0 | bit 0x400 | Showing foot prints. or Hiding foot prints. |
triangleStrips | 0x689400 | bit 0x10000 | Triangle strips enabled on restart. or disabled on restart. |
occlusion | 0x6894e0 | nothing | Using hardware occlusion test. or Disabled hardware occlusion test. |
The derivation is in the doc.
Callers 0
None by a direct call or jump.
Callees 2
- ConsoleWrite console
- SStrToInt storm
Calls and jumps by a bare address, from tables/calls.tsv.