Posts: 19
Threads: 9
Joined: Nov 2003
I've seen some p*p scrollers that stretch to all edges of the screen, showing only parts of tiles at a time. I only get error messages when I PUT an image partly off screen, and thought that this was simply the way it was. How do you do that?
astrator of Crocodiles
Posts: 1,752
Threads: 21
Joined: Jun 2002
Posts: 3,288
Threads: 167
Joined: Nov 2001
Posts: 292
Threads: 31
Joined: Apr 2003
It's called clipping. RelLib rox. Use it.
Posts: 1,688
Threads: 119
Joined: Jun 2003
Posts: 2,020
Threads: 24
Joined: Jun 2002
Why not give the man his answer?
PUT doesnt clip, or can it do invisible pixels nor can it do a lot of stuff. This is because the video screen (in mode 13h) is one big long row of pixels, like a word wrap for pixels. To do this, you would need to cut off the sprite, or stop drawing it when it reaches the edge. But PUT doesnt do this, hence the original statement: PUT doesnt clip.
However, those wily programmers put in the ability to make .qlb libraries, sets of routines that can be made in any language, not just qb (so long as they're real mode dos routines).
So, we have graphic libraries. These have custom PUT routines, that in addition to being several times faster than qb's own routines, they can be placed offscreen, zoomed and rotatated, drawn with transparent colors and more.
Some of the different libraries available are these:
UGL, CosmoX, Rellib, DirectQB, Future Library, Blast!, SVGAQB, Dash, and there's dozens more. The best ones though are UGL, Rellib, and Cosmox (which is a knockoff of DirectQB, another fine lib).
To use them, download them and then run qb with the following setting:
qb /l [qlb file]
where [qlb file] should be replaced with the qlb file's name (doi)
Most of the good ones can be downloaded at piptol.qbasicnews.com. They should all come with manual docs.
i]"I know what you're thinking. Did he fire six shots or only five? Well, to tell you the truth, in all this excitement, I've kinda lost track myself. But being as this is a .44 Magnum ... you've got to ask yourself one question: 'Do I feel lucky?' Well, do ya punk?"[/i] - Dirty Harry
Posts: 451
Threads: 16
Joined: Feb 2003
You can take a look at a comparision of some of them here:
http://ecowles.dyndns.org/gfxlib/
Life is like a box of chocolates', hrm, WTF, no it isn't, more like, 'life is like a steaming pile of horse crap.'
Posts: 1,845
Threads: 44
Joined: Aug 2002
Quote:Most of the good ones can be downloaded at piptol.qbasicnews.com. They should all come with manual docs.
Mhehe
Quote:You can take a look at a comparision of some of them here
Well... couldn't open the page
Well... about the custom blitter, look up HAR 13h++,
http://qbnz.com/pages/downloads/libraries/index.html here to be exactly. View the code and understand
. (HAR 13h++ may be old, but still is fast).
P.S. NeoLib (faster, better HAR 13h++ sequel) is under construction.
Posts: 451
Threads: 16
Joined: Feb 2003
Quote:Well... couldn't open the page
GAR! JUGA-FUG-NAGU!
That is seriously pissing me off. It *should* work.
Just to make sure the URL is correct, try this:
http://ecowles.dyndns.org/gfxlib/
Life is like a box of chocolates', hrm, WTF, no it isn't, more like, 'life is like a steaming pile of horse crap.'
Posts: 1,845
Threads: 44
Joined: Aug 2002
It works now!