Re: OpenGL

From: Charles Melice <mail_at_forthcad.com>
Date: Tue, 28 Sep 1999 08:41:21 +0100

> Charles, the .exe I made from your OpenGL demo throws an
INTEGER_OVERFLOW.
> Do you know what's wrong here?
>
>
> Shaping

Shaping,

Checking the code, I don't see any incremented value. Can you be more
precise: when do-you have this problem, in wich part of the code ?

Can-you expose the new code part ?

I have just the following remarks to do:

* I think the following if better and to replace in the source:

    WM_PAINT RUN: \ just redraw back-buffer
        HWND PAD BeginPaint
        SwapBuffers DROP
        HWND PAD EndPaint drop 0 ;

* The following isn't very nice because the model view matrix can cumulate
rounding error. But not very important in such application.

        : Expose ( -- )
                    ...
            \ -- incremented object rotation --
            glPopMatrix
            2e 1e 1e 1e glRotatef DrawScene \ NO MODULUS = NOT NICE
                    ... ;

Charles

.
Received on Tue Sep 28 1999 - 08:41:21 PDT


Subscribe to our e-mail list service. It's free for all SwiftForth and SwiftX users!

This archive was generated 09-Feb-2012. Archive updated nightly.