as said in the lemonboy news thread, i'd work out a proof of concept lib using opengl, that creates a virtual framebuffer for 2d drawing to avoid tearing.
the good thing - it works.
the bad thing - the performance. it's awfully slow, i only get around 40fps
i can only think about one optimization atm, but that only works with deeper knowledge of the pollux hardware (manual!): the texture is created in user memory atm, then uploaded by glTexSubImage2D. if there is a way to directly write into the memory that GL uses for it's texture, the whole glTexSubImage2D can be avoided.
source is here: http://crow.riot.org/wiz/tissueGL-src.tgz
i'm using codeblocks for lazyness, so there's no makefile...
test binary is here: http://crow.riot.org/wiz/tissueGL-bin.tgz
it clears the screen to a light gray and draws a moving rectangle which bounces off the boundaries. be aware that you need to have libopengles installed, and that i'm using firmware 1.1.0 ... exit with menu button...
anyway, maybe it's useful for someone - if not, i had some nice time implementing it
the good thing - it works.
the bad thing - the performance. it's awfully slow, i only get around 40fps
i can only think about one optimization atm, but that only works with deeper knowledge of the pollux hardware (manual!): the texture is created in user memory atm, then uploaded by glTexSubImage2D. if there is a way to directly write into the memory that GL uses for it's texture, the whole glTexSubImage2D can be avoided.
source is here: http://crow.riot.org/wiz/tissueGL-src.tgz
i'm using codeblocks for lazyness, so there's no makefile...
test binary is here: http://crow.riot.org/wiz/tissueGL-bin.tgz
it clears the screen to a light gray and draws a moving rectangle which bounces off the boundaries. be aware that you need to have libopengles installed, and that i'm using firmware 1.1.0 ... exit with menu button...
anyway, maybe it's useful for someone - if not, i had some nice time implementing it