Re: windows graphics engine

new topic     » goto parent     » topic index » view thread      » older message » newer message

>does only ASM code do the actual drawing on window? or does it draw in
>bitmap?

It draws to the bitmap.



>how much slower do you think it would be if there was no ASM code and only
>pure Euphoria code?

Much slower. The asm code makes up the wormhole, wich is the time-critical
part of the program.



>if i understand how the demo works: ASM code writes to bitmap, and
>StretchDIBits displays the bitmap?

Yep.



>Wouldn't it be faster if ASM code wrote
>directly to screen?

No can do. Windows won't give you the address to a window's client area (not
that I know anyway). It'd seem a bit risky for an OS to hand out such
information..



>another quick question ( i allways forget it (or_bits)): how to get red or
>green or blue value from RGB color value?

Huh? Do you want to read the palette? Or extract the components of a single
color?
If the latter; it depends on what format your color is. There's 888, 565,
555 to name a few..

_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu