Re: Exotica, DirectX & Neil

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

Pete Eberlein wrote:
> Okay, let me know when you've confirmed the code works.

At this time, I don't know if doing a poke4() to a DirectDraw
surface is possible. Hehe, when I try, it just freezes my computer.
Most likely cause: Not doing it right.
I'm also trying to figure out how to use mem_copy to plaster the image
to the surface. I'm still at it.

>  I'm also working on
> some platform-independent keyboard and mouse input routines.  I'll need to
> be able to get like get_key(), get key_up/key_down events and mouse location
> and button states.

If the Euphoria get_key() doesn't work in a Exotica program,
then I could make a routine with 101 if statements in it to check
what key is pressed and return the scan code value. But I rather
see if the get_key() routine works well or not with Exotica.
DirectX doesn't have a function to return a key value. DirectInput
has a function where I can check a given key value to get it's
state in which Exotica's KEYBOARD_KEYSTATE routine does. The
KEYBOARD_KEYSTATE routine might help you with the Key_up/key_down
events by supplying the scan code value of a key.

I had the wrong description in the EXOTICA documentation about
the MOUSE_X and MOUSE_Y routines in which I need to fix.
The MOUSE_X routine returns the accumulated relative x motion and the
MOUSE_Y routine returns the accumulated relative y motion. So, they
don't return the actual x,y screen coordinates. They just return
how much the mouse has moved.

The MOUSE_B0, MOUSE_B1, MOUSE_B2 and MOUSE_B3 routines returns a value
of 1 if the respected mouse button is pressed, or will just return
0 if it's not pressed.

If you want to, you could look at the Exotica's input.exw example
code to see them in action. If you need help and/or if I
didn't make since of Exotica's Keyboard and mouse routines( most
likely),
please ask me about it.

> Yes.  I have also taken the image.e read_bitmap function and hacked it to
> support true-color bitmaps for use in Neil.e.

Cool.

> The insides of Neil are not for the timid.

I got to admit it, I was a bit timid when I looked. :)

> And now some questions... in the DirectX world, what do they call the
> routine that blends a source image with the destination surface at 50%?  And
> what do they call the routine that adds the color values of two images
> together?  The reason I ask is because I'm introducing routines that do this
> for Neil2 and I wanted to name them something that people will understand.

As I see, David Cuny and David Guy answered this. I do want to
note, after reading David Guy's response, I read an article
about DirectX 7.0 at microsofts/DirectX website that they dropped
the DirectDraw Alpha-blending blit support idea in DirectX 7.0.
Mabie that was to advanced for them to handle??? :(
But I can still use the Direct3D alpha-blending which would work
great for video cards with 3D acceleration support.

-- Todd Riggins

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

Search



Quick Links

User menu

Not signed in.

Misc Menu