[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: saving image from tkgllua buffer
- From: Siome Klein Goldenstein <siome@...>
- Date: Thu, 6 Jan 2000 14:11:34 -0500 (EST)
I'm trying to save images from the openGL canvas
under tklua and gllua.
I'm using some C code a friend gave me
to do it, but I'm always getting all blacks.
I tryed a combination of different things,
in the hope that it was just trying to grab
the image before openGL was done drawing.
I used glFlush(), glFinish, even
basically my last attempt was:
WriteImage (fname, wcvs, hcvs)
where setframe(i) draws the i^th frame
of my animation, issues a glFlush() and
(where canvas is my openGL canvas handle, fname
is the filename and wcvs/hcvs are the dimensions
of the canvas)
I'm sure I'm missing something obvious...
Siome Klein Goldenstein