Maschell / dynamic_libs

21 stars 5 forks source link

Add OSScreenPutPixelEx function #9

Closed Crayon2000 closed 7 years ago

Crayon2000 commented 7 years ago

OSScreenPutPixelEx will draw a pixel of a certain color to the specified coordinates. This just writes the input u32 to the target location in the framebuffer, nothing is done with the data already stored in the framebuffer.

Usage (draw a line):

for(int x = 50; x < 600; ++x)
{
    OSScreenPutPixelEx(1, x, 20, 0xFF8000FF);
}