Difference between revisions of "Bdisp SetPoint VRAM"

From WikiPrizm
Jump to navigationJump to search
Line 1: Line 1:
== Synopsis ==
+
{{syscall
'''Syscall:'''
+
| signature = void Bdisp_SetPoint_VRAM(int x, int y, short unsigned int color)
 
+
| synopsis = Sets a single point (x, y) in VRAM to the given color.
'''Function declaration:''' void Bdisp_SetPoint_VRAM(int x, int y, short unsigned int color);
+
| parameters =
 
+
* '''x''': pixel column, 0 to 383.
Sets a single point (x, y) in the Video RAM (VRAM) to color.
+
* '''y''': pixel row, 0 to 215.
 
+
* '''color''': desired color.
=== Inputs ===
+
| comments = This syscall is exactly like Bdisp_SetPoint_DD, except sets the point in VRAM.  It is usually more useful (faster) to write to VRAM yourself than to use a syscall.
* ''int'' '''x''' - pixel column, 0 to 383.
+
}}
* ''int'' '''y''' - pixel row, 0 to 215.
 
* ''short unsigned int'' '''color''' - A 5-6-5 RGB color, or a color name from color.h
 
 
 
=== Outputs ===
 
Sets pixel on the VRAM (''not'' directly to the LCD).
 
 
 
== Comments ==
 
This syscall is exactly like Bdisp_SetPoint_DD, except sets the point to VRAM instead.  It is strongly recommended that you use the VRAM-modifying functions from the [[Useful Routines]] page instead.
 
 
 
[[Category: Syscalls]]
 

Revision as of 23:42, 16 May 2012


Synopsis

Header: Not documented
Syscall index: Not documented
Function signature: void Bdisp_SetPoint_VRAM(int x, int y, short unsigned int color)

Sets a single point (x, y) in VRAM to the given color.

Parameters

  • x: pixel column, 0 to 383.
  • y: pixel row, 0 to 215.
  • color: desired color.

Comments

This syscall is exactly like Bdisp_SetPoint_DD, except sets the point in VRAM. It is usually more useful (faster) to write to VRAM yourself than to use a syscall.