From: | |
Date: | 17 Feb 2001 at 23:47:02 |
Subject: | Re: Again clipping graphics output |
Hello Sensei
On 17-Feb-01, you wrote:
S>> Sorry, but I do not own a GFX board. My testers wrote me about this.
S>> All of them wrote that the cursor became "jerky".
S> Doesn't this mean that memory was corrupted? Do you suggested them to use
S> debug utilities like MuGA to check this?
Could this cause a cursor jerking on CGX and Picasso96? While
not causing the same on AGA? There is a lot of enforcer hits
there now, since it is really a very early alpha version.
S>> The problem is, that a project is rather big and the source is
S>> messy, so I think it is a bad idea. I could describe the procedure.
S> Description doesn't help a lot, usually...
S>> I draw a lot of realy changed graphics to a "Shadow Layer", which
S>> is made from a custom bitmap, and then blit the data to the
S>> "Workspace Layer", also made from a custom bitmap. Then I draw a
S>> bit more graphics in it, and finally blit the result to my windows
S>> rastport.
S> These are normal things to do when you must render to custom bitmap... It
S> doesn't give me idea how you implemented this rendering, which functions
S> you're using etc.
I use simple graphics library functions: Move, Draw, RectFill, Text.
S>>>> Is there any ability to do the same without layers.library?
S>>> Yes. You can calculate coordinates so they will fit into bitmap... It
S>>> could be a problem if you would like to use, for instance, Text()
S>>> function...
S>> This problem stops me from using this method.
S> You could create another bitmap for text only (with TextLength() or
S> better with V36+ function to calculate width of the text), and render
S> text into without clipping and then blit that bitmap to your main
S> bitmap... You could even render this part of text which is "visible" on
S> main bitmap using normal method and the rest (if there is the rest) which
S> is partially visible using another bitmap as I described above... (it
S> would be memory saving method)
S>> The problem in this case is, that I do not know, and can't
S>> calculate the size of future graphics.
S> How it's possible? If you can render graphics you must know where to put
S> it, right? If graphics is rendered by external modules couldn't you
S> create function which ask them how big will be graphics rendered by them
S> (something like MUIM_AskMinMax method in MUI) ?
I'll think about it. Thanks.
Regards
------------------------ Yahoo! Groups Sponsor ---------------------~-~>
eGroups is now Yahoo! Groups
Click here for more details
http://click.egroups.com/1/11231/0/_/451227/_/982449979/
---------------------------------------------------------------------_->