Caanoo / WIZ Example Wiz Code (Libcastor)


no_skill

gp2x! bananas! mayhem! mayham!
Joined
Jan 9, 2004
Messages
734
Age
38
Location
Austria
Website
72dpiarmy.com
Hey,

i've been trying to get Spout running on the Wiz using libcastor,
but i have close to no ideas how the whole thing works (do i need to assign the framebuffers, if flipping mandatory, which resolution does lc_gettime have, etc etc, )

hence i was wondering:



is there any example code out there

how to use libpollux and get some pixels on the screen coloured?

\thanks & cheers,
f
 
My advice would be to use SDL and gettimeofday - far more portable and doesn't break when GPH change the firmware and/or hardware (I'm thinking of the gp2x days where there was several hardware revisions)
 
I recommend to do using SDL, libcastor is more complex and you can't debug on pc.

Answering to your questions:
- You don't need to assign framebuffers, just call lc_setlayer() and use the fb_xx pointers
- You can use doublebuffer using flip or you can use single buffer.

There is an example with the libcastor library to drawing in the screen.
 
Back
Top