How do you draw to screen from kernel?
How do you draw to screen from kernel?
i noticed that irshell does it from kernel and then its plugins init the gu and draw from kernel also how does this work and is it possible to send the gu list that is aligned 16 to a prx and have the prx init from that list so that the prx can draw to the gu also
There is no existing example of pure kernel GU drawing. The display list must be allocated in user memory to call the GU functions and that is unacceptable. It WILL cause problems in games. There are people who still ignorantly do it in some plugins, please don't. Here's a sample: http://foosa.do.am/MDL_SAMPLE_KERNEL.rar
If you don't need speed then you can take the easy way out and blit pixels to the framebuffer. Here's some code to blit an image to screen: http://forums.ps2dev.org/viewtopic.php?t=11289
If you don't need speed then you can take the easy way out and blit pixels to the framebuffer. Here's some code to blit an image to screen: http://forums.ps2dev.org/viewtopic.php?t=11289