Qbasicnews.com

Full Version: Lillo; SCREEN command
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Syntax: SCREEN mode[,[ depth][,[ num_pages][, fullscreen]]]
Type: statement
Category: Gfx


Maybe i've missed it .. tried finding it on the forum and in some documentation ..

.. seems one can set the screen to anything they want ..

.. but I was wondering .. I don't see anything about refresh rates ..

Is it possible / why isn't it possible .. to set a custom refresh rate? And what refresh rate do all the screen modes have?

And is there a way in fb to wait for vsync?

Maybe these questions already've been answered; I apologize then; couldn't find them.

Thanks.

btw. Why you called 'lillo' now instead of the old 'angelilo' ? You're no longer an angel? Or is my mind playing tricks with me.

Regards,

_Marcade
Hi Marcade, long time no see he? First time I see a post by you on these forums, even though I may have missed them...

Now, from the FB 0.13 gfxlib.txt docs:
Code:
SCREEN mode[,[depth][,[num_pages][,[flags][,refresh_rate]]]]
As you can see, refresh rate setting is already supported. If a refresh rate can't be set, it'll default to a supported one. Usually at least 60 Hz is always supported.

For vsync'ing, you can use the same old QB method: WAIT &h3DA,8. This will trigger an internal gfxlib hook that will wait for the vertical sync using the current driver.

Quote:btw. Why you called 'lillo' now instead of the old 'angelilo' ? You're no longer an angel? Or is my mind playing tricks with me.
Heh, may be, who knows... :evil:
Nah you're right; I never really post here or play with freebasic. I haven't touched Q(uick)Basic for years and even haven't touched visual basic for more than a year.

Got curious about how freebasic was doing though and when I was playing with the GFX functions you made, I switched to 640x480 and noticed it wend outside of my monitor .. which happens with low refresh rates. .. so that's why I started wondering about it

I looked at http://www.hybd.net/~mms/fb/help/current...rence.html but I guess that one's outdated then.

Nice; refresh rates .. :o

lillo reminds me of the color lila .. in dutch .. which is like .. pinkish .. i think ..

By the way I saw the post 'Alpha sprites' of you about the new features for PUT; which are very interesting .. Do we have to wait for the next release of freebasic to be able to use that; or is there another way to use it? The 'custom blender' thing seems awesome.

freeBasic and this gfx stuff really makes me wish I was 8 years younger again, having tons of free time to and the urge to program RPG's. -_-

I'm rambling.
There's a testing release on the website. I think it has the ALPHA stuff put in, but I've been on a library terminal since my monitor broke.
Heh, you're not the first person from the past coming back to the roots... FB has this effect. Welcome back!

Yes, the reference you're looking at is outdated... The most recent one about gfx functions is the one shipped with the compiler, under docs/gfxlib.txt. Or have a look at the CVS version of this file, with all the most recent changes:

http://cvs.sourceforge.net/viewcvs.py/fb...iew=markup

FB 0.13 had prelimary alpha sprites support; only 32bit sprites with they own alpha channel were supported though, and the routine also had a bug in it, which I spotted and fixed later in CVS.
The current CVS version of FB supports 32bit alpha sprites the right way, plus it also supports uniform alpha sprites drawing (you set an alpha value for the whole sprite instead of using its alpha channel) for 15/16/24/32bit modes. Unfortunately though I guess you have to wait for next release to test these yourself, unless you want to download the CVS tree and recompile compiler, rtlib and gfxlib2 yourself (to compile the compiler you'll need this file, while for rtlib and gfxlib2 you'll need gcc)

Quote:freeBasic and this gfx stuff really makes me wish I was 8 years younger again, having tons of free time to and the urge to program RPG's. -_-
Heh, same here :roll: I'm taking away time from my master thesis and parttime job in order to work a bit on FB :lol:

Quote:lillo reminds me of the color lila .. in dutch .. which is like .. pinkish .. i think ..
In italian, "lilla" (which could be thought as the female version of lillo) also means a kind of pink. Anyway, "lillo" has no real meaning, but is the usual nickname given to "angelo" in Italy... "angelillo" was a blend of my real name and the nick, which I used for a while. With some time I didn't like it much anymore though, so I reverted to the original usual (and shorter) nick... Satisfied? :wink:
What's your master thesis on/for?
Quote:Heh, you're not the first person from the past coming back to the roots... FB has this effect. Welcome back!

Marcade Wrote:freeBasic and this gfx stuff really makes me wish I was 8 years younger again, having tons of free time to and the urge to program RPG's. -_-
Heh, same here :roll: I'm taking away time from my master thesis and parttime job in order to work a bit on FB :lol:

Lol I'm not coming back to anything. I hate statements of 'leaving' or 'coming back' or announcing projects .. it's like, how does that saying go .. never sell your chickens before they've hatched. And 'leaving' and 'coming back' sounds so much like you think of yourself as some unmissable important person. :-?

The chance of me actually making something in FB is very small. I know myself; having a programming job really wears me out and i barely program in my free time anymore. Time is against me until I turn 65 years old .. I think. And by that time; 40 years later .. freebasic'll be older than QB45 is now. :o By that time we have 128-bit CPU's. -_-
Lillo's master thesis was participating in an Allegro port...This is why gfxlib is so good. Big Grin
http://prdownloads.sourceforge.net/fbc/F...p?download
is the may 10th build of fbc 0.14, with most new gfxlib additions in it. it's currently considered unstable, but it should work for most things you throw at it.
Heh, no, my master thesis is not on Allegro. I joined the Allegro project as a developer about 3 years ago as a hobby, nothing more :wink: Obviously my experience there has helped in the development of gfxlib... 8)
My master thesis is on project Leonardo. You may want to visit my site and read some of the recent news if you're interested on what I'm doing on it...

Anyway, Marcade, by "coming back" I meant you just popped out of oblivion and posted on this site about FB... No matter if you'll ever code something in FB, the fact you jumped here and posted means FB caught your attention enough to make you say "hi". Smile