Documentation, samples

Hi again,

By the way, are there some samples of code available as examples or tutorials
for newbies (I’m one). More than those short ones included in the html files,
illustrating with some technics, mainly for synchronizing display & IO input
with vbl?

Thanx for paying attention,
regards

wwp

Hi again,

By the way, are there some samples of code available as examples or tutorials
for newbies (I’m one). More than those short ones included in the html files,
illustrating with some technics, mainly for synchronizing display & IO input
with vbl?

There isn’t a whole lot of vbl support in SDL, mainly because most targets
don’t support it. On some drivers you can specify the following flags:
SDL_FULLSCREEN|SDL_HWSURFACE|SDL_DOUBLEBUF
to get a fullscreen page flipping surface that is synchronized with VBL,
and then use SDL_Flip() to flip pages, but you need to be able to handle
the case when this isn’t possible.

See ya!
-Sam Lantinga, Lead Programmer, Loki Entertainment Software