Palette: Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
No edit summary
player palette: r2226 update
Line 1: Line 1:
This is the pointer to the current screen palette in use.  The screen palette in use is what determines whether or not to apply the various tints which happen underwater, when night vision is enabled, et cetera.  This is of very limited use to the average CON programmer. See [[spritenvg]], [[ifinwater]], and [[palfrom]].
Since r2226, this is the index of the current screen palette in use.  The screen palette determines the overall look of the scene, like underwater, with enabled night vision, et cetera.  One use of this member is as a check before a [[setgamepalette]], since changing the palette too often (e.g. every tic) is undesirable for various reasons.  See [[spritenvg]], [[ifinwater]], and [[palfrom]].


[[Category:Player structure members]]
[[Category:Player structure members]]

Revision as of 10:11, 29 December 2011

Since r2226, this is the index of the current screen palette in use. The screen palette determines the overall look of the scene, like underwater, with enabled night vision, et cetera. One use of this member is as a check before a setgamepalette, since changing the palette too often (e.g. every tic) is undesirable for various reasons. See spritenvg, ifinwater, and palfrom.