[comp.sys.sgi] mode of a window

Dan Karron@UCBVAX.BERKELEY.EDU (05/06/91)

Is there anyway to determine what mode the pixels are in for
interperting lrectread() values ?

I need to know specifically if the bitplanes are in color map mode (cmode)
or RGB mode. Then I know how to unpack the bits in lrectread. 

Also, how can I tell if I am in single or double buffer mode, and
which buffer is being displayed on the screen. I want only to read
pixels that are displayed.

It might also be of value to do a lrectread of the hidden buffer (backbuffer)
so that I can be certain that my image will not contain any pieces of poped
windows. Can this be done ?

What about a programatic (c call) to force my window to pop on top of
all others.

I am writing a automatic snapshot call that I am putting in my 
StickeyWindows package so that you can make an ipaste bitmap
image of the window after each draw cycle. This way you can
make a movie loop and animate render cycles that take too
long to animate in real time. To make this general for all the
modes that the bitplanes can be in, I need to know how to interrogate
the bitplanes.

If anyone has something similar, I would like to compare notes!

Cheers!

dan.
.
 
| karron@nyu.edu (e-mail alias )         Dan Karron, Research Associate      |
| Phone: 212 263 5210 Fax: 212 263 7190  New York University Medical Center  |
| 560 First Avenue                       Digital Pager <1> (212) 397 9330    |
| New York, New York 10016               <2> 10896   <3> <your-number-here>  |

tjh@bucrf11.bu.edu (Tim Hall) (05/06/91)

In article <9105051952.AA15944@karron.med.nyu.edu>, Dan Karron@UCBVAX.BERKELEY.EDU writes:
|> I need to know specifically if the bitplanes are in color map mode (cmode)
|> or RGB mode. Then I know how to unpack the bits in lrectread. 
|> 

getdisplaymode

|> Also, how can I tell if I am in single or double buffer mode, and
|> which buffer is being displayed on the screen. I want only to read
|> pixels that are displayed.
|> 

getdisplaymode again.  The frontbuffer is always being displayed on 
the screen.

|> It might also be of value to do a lrectread of the hidden buffer (backbuffer)
|> so that I can be certain that my image will not contain any pieces of poped
|> windows. Can this be done ?
|> 

readsource

|> What about a programatic (c call) to force my window to pop on top of
|> all others.
|> 

winpop

-- 
-Tim Hall
tjh@bu-pub.bu.edu

The night is filled with the cries of dispossessed children in search
of paradise.  -Dead Can Dance