From: | |
Date: | 17 Feb 2001 at 20:39:55 |
Subject: | Re: Again clipping graphics output |
Czesc Serge!
Dnia 16-Feb-01, Serge Tumanyan napisa�:
> Sorry, but I do not own a GFX board. My testers wrote me about this.
> All of them wrote that the cursor became "jerky".
Doesn't this mean that memory was corrupted? Do you suggested them to use
debug utilities like MuGA to check this?
> The problem is, that a project is rather big and the source is
> messy, so I think it is a bad idea. I could describe the procedure.
Description doesn't help a lot, usually...
> I draw a lot of realy changed graphics to a "Shadow Layer", which
> is made from a custom bitmap, and then blit the data to the
> "Workspace Layer", also made from a custom bitmap. Then I draw a
> bit more graphics in it, and finally blit the result to my windows
> rastport.
These are normal things to do when you must render to custom bitmap... It
doesn't give me idea how you implemented this rendering, which functions
you're using etc.
>>> Is there any ability to do the same without layers.library?
>> Yes. You can calculate coordinates so they will fit into bitmap... It
>> could be a problem if you would like to use, for instance, Text()
>> function...
> This problem stops me from using this method.
You could create another bitmap for text only (with TextLength() or better
with V36+ function to calculate width of the text), and render text into
without clipping and then blit that bitmap to your main bitmap... You could
even render this part of text which is "visible" on main bitmap using normal
method and the rest (if there is the rest) which is partially visible using
another bitmap as I described above... (it would be memory saving method)
> The problem in this case is, that I do not know, and can't
> calculate the size of future graphics.
How it's possible? If you can render graphics you must know where to put it,
right? If graphics is rendered by external modules couldn't you create
function which ask them how big will be graphics rendered by them (something
like MUIM_AskMinMax method in MUI) ?
Regards!
Przemyslaw 'SENSEI' Gruchala
code/gfx2d/gfx3d/webmaster
Amiga 1200
Apollo 1240/33 MHz, 18 MB RAM, BTC 33.6 bps
HDD 3.2 GB, HDD 520 MB, CD x12
------------------------ Yahoo! Groups Sponsor ---------------------~-~>
eGroups is now Yahoo! Groups
Click here for more details
http://click.egroups.com/1/11231/0/_/451227/_/982442989/
---------------------------------------------------------------------_->