1. Wish List Item

One of the most sluggish parts in about all the DOS window manager programs
I've written has been dragging the window around on the screen. The problem
is that the line is an XOR of the pixels - something that's not supported
natively. I can live without it, but... sad

Could a native xor_line (and perhaps xor_polygon) be added to the Euphoria
library?

Thanks!

-- David Cuny

new topic     » topic index » view message » categorize

2. Re: Wish List Item

> Could a native xor_line (and perhaps xor_polygon) be added to the =
Euphoria
> library?

While we're at it, how about xor_bitmap?  That would probably be the most =
efficient of them all.

Michael J. Sabal

new topic     » goto parent     » topic index » view message » categorize

3. Re: Wish List Item

Mike Sabal wrote:

> how about xor_bitmap?

I considered asking for that, but I have the impression that Robert would be
hard-pressed to make a native version of xor_bitmap significantly faster
than the 'pure' version.

He's mentioned before that he's just using the graphics library that's
supplied with the Watcom compiler, and not 'hand-rolling' his own code here.
The odds are pretty good that xor_line and xor_poly are part of that
library, and he simply decided not to wrap them. So adding these *should* be
fairly cheap.

On the other hand, I doubt that there's a close match to an xor_bitmap
routine. In high level, it looks something like this:

   for each scanline in the bitmap do
      pixel( xor( get_pixel( scanline from screen ), scanline from bitmap )
)
   end for

He's said a couple of times that pixel and get_pixel are about as efficient
as they can get. So I doubt that even if he created a 'native' version of
xor_bitmap that it would run much faster than the high-level version.

Then again, I could be entirely wrong.

-- David Cuny

new topic     » goto parent     » topic index » view message » categorize

4. Re: Wish List Item

How about in-line assembly then the users could add the features.

new topic     » goto parent     » topic index » view message » categorize

5. Re: Wish List Item

David Cuny writes:
> Could a native xor_line (and perhaps xor_polygon) be
> added to the Euphoria library?

That's been on my list for a while. I think Jiri asked for it.
I'll bump up the priority. It would also help you to quickly xor
a whole bitmap picture.

Regards,
   Rob Craig
   Rapid Deployment Software
   http://www.RapidEuphoria.com

new topic     » goto parent     » topic index » view message » categorize

6. Re: Wish List Item

Robert Craig wrote:

> [xor_line's] been on my list for a while. I think
> Jiri asked for it. I'll bump up the priority. It would
> also help you to quickly xor a whole bitmap picture.

Thanks. It didn't occur to me that you could XOR a bitmap simply by XORing
the screen and then drawing the image again. D'oh!

-- David Cuny

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu