Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
PUTting off screen
#1
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
Reply
#2
Custom blitter.
Reply
#3
http://rel.betterwebber.com/MyProgs/RelGFX.zip

Big Grin
y smiley is 24 bit.
[Image: anya2.jpg]

Genso's Junkyard:
http://rel.betterwebber.com/
Reply
#4
It's called clipping. RelLib rox. Use it.
Reply
#5
http://www.tek-tips.com/viewthread.cfm?S...314&page=1
Jumping Jahoolipers!
Reply
#6
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
Reply
#7
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.'
Reply
#8
Quote:Most of the good ones can be downloaded at piptol.qbasicnews.com. They should all come with manual docs.
Mhehe Wink

Quote:You can take a look at a comparision of some of them here
Well... couldn't open the page Sad

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 Wink. (HAR 13h++ may be old, but still is fast).
P.S. NeoLib (faster, better HAR 13h++ sequel) is under construction.
Reply
#9
Quote:Well... couldn't open the page Sad

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.'
Reply
#10
It works now! Tongue
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)