Changes

Jump to navigation Jump to search
m
removing line numbers from code blocks
=== Drawing Pixels ===
If you're just pushing raw pixels to the screen, there are two ways to do it. There's direct access to the framebuffer:
<syntaxhighlight lang="c" line='line'>
u32* vram = (u32*)0x44000000;
sceDisplaySetFrameBuf((void*)vram, 512, PSP_DISPLAY_PIXEL_FORMAT_8888, PSP_DISPLAY_SETBUF_IMMEDIATE);
Or you can create an array of vertices and draw them using the GPU:
<syntaxhighlight lang="c" line='line'>
typedef struct {
short unsigned u, v;

Navigation menu