gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

Coding > Plotting pixels

#14935 - StealthElement - Wed Jan 14, 2004 11:30 pm

when pixels are displayed using the common DrawPixel() function, do they have a priority?

#14936 - animension - Wed Jan 14, 2004 11:51 pm

Quote:

when pixels are displayed using the common DrawPixel() function, do they have a priority?


Plotting individual pixels is usually done in a non-tiled mode. Only tiled graphics modes and sprites have any understanding of priority, and even then you're dealing with priority on a layer or sprite-OAM basis instead of pixels.

So, no, individual pixels don't have any internal priority representation.
_________________
"Beer is proof that God loves us and wants us to be happy."
-- Benjamin Franklin

#14939 - sajiimori - Thu Jan 15, 2004 12:14 am

Yeah, bitmaps are just long strips of color values, one for each pixel. When you know that, it's pretty obvious that plotting a pixel just means replacing one of those values with a new color.