Rockbox Development > Starting Development and Compiling
Direct access to the screen
fun_bidoux:
Hello,
I would like to know if their is any way to get a direct access to the screen like in SDL (SDL_Surface->pixels) because i'm trying to port a game that I made in C.
Thank,
gnu:
I don't think so. You'll have to use lcd_drawpixel().
fun_bidoux:
Ok... thank,
mcuelenaere:
There is, if you're not in a plugin you can directly access
--- Code: ---lcd_framebuffer[y][x]
--- End code ---
but I believe this isn't accessible from within a plugin (and probably you're wanting to make one).
edit:
Ok, I was wrong :)
As the people below me explain you can access it from rb->lcd_framebuffer[][]
shotofadds:
You can do the same thing from a plugin, using rb->lcd_framebuffer.
Navigation
[0] Message Index
[#] Next page
Go to full version