Difference between revisions of "Useful Routines"

From WikiPrizm
Jump to navigationJump to search
Line 14: Line 14:
 
* [[CopySpriteMaskedAlpha]] - Copy a sprite with an alpha mask onto the screen
 
* [[CopySpriteMaskedAlpha]] - Copy a sprite with an alpha mask onto the screen
 
* [[HeightColor]] - Convert a value between a maximum and a minimum value into a color.
 
* [[HeightColor]] - Convert a value between a maximum and a minimum value into a color.
 +
 +
=== SourceCoder-Compatible Sprites/Images ===
 +
These routines work particularly well with the 8-bit, 2-bit, and 1-bit indexed data output from SourceCoder.
 +
* [[CopySpriteNBit]] - Works for 8-bit, 2-bit, and 1-bit indexed data
 +
* [[CopySpriteMasked2Bit]] - Treats one of the four 2-bit colors as a transparent color
  
 
=== Text ===
 
=== Text ===
 
* [[PrintMiniFix]] - Print a text on the screen in mini/small (glyph) font
 
* [[PrintMiniFix]] - Print a text on the screen in mini/small (glyph) font

Revision as of 15:51, 2 May 2012

This will soon be populated with routines and child pages; in the meantime, please visit the following Cemetech thread:

http://www.cemetech.net/forum/viewtopic.php?t=6114

Keyboard Routines

Hardware Interface Routines

Graphical Routines

SourceCoder-Compatible Sprites/Images

These routines work particularly well with the 8-bit, 2-bit, and 1-bit indexed data output from SourceCoder.

Text

  • PrintMiniFix - Print a text on the screen in mini/small (glyph) font