Does anyone know if there is a way to get the graphics context and draw directly to the screen in an e2 plugin?
Is it possible to get the graphics context in e2 python plugins?
Started by awx, 01 Dec 2011 08:16
12 replies to this topic
Re: Is it possible to get the graphics context in e2 python plugins? #2
Re: Is it possible to get the graphics context in e2 python plugins? #3
Posted 2 January 2012 - 12:13
on platforms with a plain framebuffer (no opengl), sdl means just adding an extra layer. It doesn't provide any advantages.
For a pc however, sdl makes sense (because it allows to use opengl, and because it allows to cooperate with a window manager)
See this thread
http://openpli.org/f...ntu-104-32-bit/
They are probably using sdl as well.
For a pc however, sdl makes sense (because it allows to use opengl, and because it allows to cooperate with a window manager)
See this thread
http://openpli.org/f...ntu-104-32-bit/
They are probably using sdl as well.
Re: Is it possible to get the graphics context in e2 python plugins? #4
Re: Is it possible to get the graphics context in e2 python plugins? #5
Re: Is it possible to get the graphics context in e2 python plugins? #6
Re: Is it possible to get the graphics context in e2 python plugins? #7
Re: Is it possible to get the graphics context in e2 python plugins? #8
Re: Is it possible to get the graphics context in e2 python plugins? #9
Re: Is it possible to get the graphics context in e2 python plugins? #10
Posted 5 January 2012 - 08:54
You could check what the teletext (tuxtxt) plugin does, it also directly writes to the framebuffer. You can get a FB lock and then just manipulate bits. If you want to run games, there is some hardware accellerated bitblitting possible, in particular fast 8-bit rendering is very interesting for sprites, and for emulators that expect an 8-bit framebuffer (which you could emulate by painting on a 8-bit surface and accellerated blt to the framebuffer, which also gives you double-buffering).
For example, the zx spectrum emulator should run well on these boxes, it ran fine on the Topfield which had only a 150MHz CPU and 8MB RAM.
You'll also need to spend time on implementing input devices, since they're not standard.
For example, the zx spectrum emulator should run well on these boxes, it ran fine on the Topfield which had only a 150MHz CPU and 8MB RAM.
You'll also need to spend time on implementing input devices, since they're not standard.
Real musicians never die - they just decompose
Re: Is it possible to get the graphics context in e2 python plugins? #11
Re: Is it possible to get the graphics context in e2 python plugins? #12
Re: Is it possible to get the graphics context in e2 python plugins? #13
2 user(s) are reading this topic
0 members, 2 guests, 0 anonymous users