Re: lrectwrite in an overlay plane

New Message Reply Date view Thread view Subject view Author view

Sharon Clay (src++at++rose)
Thu, 28 Mar 1996 01:01:40 -0800


+>---- On Mar 28, 9:23am, Morten Eriksen wrote:
> Subject: lrectwrite in an overlay plane
->From guest++at++holodeck Thu Mar 28 00:49:42 1996
->Date: Thu, 28 Mar 1996 09:23:06 +0100 (MET)
->From: Morten Eriksen <mortene++at++pvv.unit.no>
->To: info-performer++at++sgi.sgi.com
->Subject: lrectwrite in an overlay plane
->
->Hi,
->
->I'm having some trouble with the gl call 'lrectwrite' in my
->application. Here's the code I use:
->
->unsigned long parray[] = {
-> 0x80ff00ff,0x80ff00ff,0x80ff00ff,
-> 0x80ff00ff,0x80ff00ff,0x80ff00ff,
-> 0x80ff00ff,0x80ff00ff,0x80ff00ff,
->};
->
->drawmode(ViewState->overlay);
->lrectwrite(x-1, y-1, x+1, y+1, parray);
->drawmode(NORMALDRAW);
->
->Where ViewState->overlay is earlier in the program found with:
->
->ViewState->overlay = (getgdesc(GD_BITS_OVER_SNG_CMODE) ? OVERDRAW :
-> (getgdesc(GD_BITS_PUP_SNG_CMODE) ? PUPDRAW : 0));
->
->
->As far as I can understand, this should draw me a square 3x3 rectangle
->in yellow (RGB = 0xff00ff), with center in (x, y). I've tested it on
->three different SGI machines, with different results all over:
->

Overlay planes are in colorindex mode, not rgb.
you'll need a color index buffer and will have to call
rectwrite (instead of lrectwrite).

src.

-- 
-----{-----{---++at++   -----{----{---++at++   -----{----{---++at++   -----{----{---++at++
Sharon Rose Clay (Fischler) - Silicon Graphics, Advanced Systems Dev.
src++at++sgi.com  (415) 933 - 1002  FAX: (415) 965 - 2658  MS 8U-590
-----{-----{---++at++   -----{----{---++at++   -----{----{---++at++   -----{----{---++at++

New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:52:35 PDT

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.