News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Line BUG

Started by Yoshi, June 29, 2005, 11:43:14 PM

Previous topic - Next topic

Yoshi

Please help, someone!

  I've begun work on my 3D program and the tests have proved promising using the FPU. I had it draw a line from the vanishing point to each corner point of the cube but when I got to the back points the program messed up the window. I've found the problem to be this line which calls the line drawing routine:
       invoke line, hWnd, 0, vx, vy, _X, _Y
It's not the values-I've tried using fixed values and the result is the same. Does anyone know if the line proc is buggy or if there's a better one as eventually I'll need a polygon routine. Maybe it's just me, I'm still new to MASM.

  Thanks for your time and any help you can offer me,
                    James.

AeroASM

1. I can't find the line proc anywhere. Does it exist? Surely you should use a combination of MoveToEx and LineTo.

2. I think that where you pass a hWnd, you are supposed to pass an hDC.

3. For polygons, use Polyline. It is simpler.

Yoshi

Thankyou, AeroASM!
   I would use polyline but don't know the details. Could you please tell me what the syntax is, what it requires to run.
Thankyou, James