PrintGlyph

From WikiPrizm
Revision as of 11:20, 29 July 2014 by Gbl08ma (talk | contribs) (Created page with "{{syscall | name = PrintGlyph | index = 0x0238 | signature = void PrintGlyph(int x, int y, unsigned char* glyph, int mode_flags, int color, int back_color, int P7) | header =...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search


Synopsis

Header: fxcg/display.h
Syscall index: 0x0238
Function signature: void PrintGlyph(int x, int y, unsigned char* glyph, int mode_flags, int color, int back_color, int P7)

Draws a single glyph (character) to VRAM.

Parameters

  • x - The x coordinate (in pixels) of the upper left corner of the character.
  • y - The y coordinate (in pixels) of the upper left corner of the character. Incremented by 24 unless mode_flags has the bit corresponding to 0x40 set.
  • glyph - Pointer to the glyph.
  • mode_flags - Bitmask. See PrintXY's note 2. In addition, if 0x40, allows for drawing into the status area.
  • color - The RGB565 color of the characters, use the COLOR_* constants from color.h
  • back_color - The RGB565 color of the background, use the COLOR_* constants from color.h
  • P7 - meaning unknown.