flat assembler
Message board for the users of flat assembler.
Index
> Main > pushing double values |
Author |
|
vid 21 Mar 2004, 19:59
1. either you can push address of 64bit variable, or push it as two 32bit values, like:
Code: push [var64 + 4] push [var64] 2. it contains 64bit floating point value of 1.1 |
|||
21 Mar 2004, 19:59 |
|
zenek_tm 21 Mar 2004, 20:29
Quote:
I can't push addresses of those values, because it's not my function. And I tried to push them in two parts, but it's not working. Here's the invoke: Code: invoke gluPerspective, dword [f1], dword [f1+4],\ dword [result], dword [result+4],\ dword [f2], dword [f2+4],\ dword [f3], dword [f3+4] f1, result, f2 and f3 are qword values. Unless I'm not invoking it properly, but I also tried to invoke it like this: Code: invoke gluPerspective, dword [f1+4], dword [f1],\ dword [result+4], dword [result],\ dword [f2+4], dword [f2],\ dword [f3+4], dword [f3] with the same result (not working). //EDIT Sorry for this post. It appears, that calling works, but nothing is drawn. But I can't find the bug in my code. Thank's for the answer and sorry once again. |
|||
21 Mar 2004, 20:29 |
|
comrade 22 Mar 2004, 01:40
The first one seems to be correct, but I do not see where your problem could be. Here is how I use:
Code: stdcall [glOrtho],dword [wx+00h],dword [wx+04h],dword [ww+00h],dword [ww+04h],dword [wy+00h],dword [wy+04h],dword [wh+00h],dword [wh+04h],dword [wnear+00h],dword [wnear+04h],dword [wfar+00h],dword [wfar+04h] wx dq 0.0 wy dq 0.0 ww dq 640.0 wh dq 480.0 wnear dq -1.0 wfar dq 1.0 |
|||
22 Mar 2004, 01:40 |
|
vid 22 Mar 2004, 06:06
i thought OpenGL uses 32bit floating point values.
|
|||
22 Mar 2004, 06:06 |
|
zenek_tm 22 Mar 2004, 07:27
vid wrote: i thought OpenGL uses 32bit floating point values. |
|||
22 Mar 2004, 07:27 |
|
vid 22 Mar 2004, 20:14
but gives you strength!
|
|||
22 Mar 2004, 20:14 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.