Morten Eriksen (mortene++at++pvv.unit.no)
Thu, 28 Mar 1996 11:36:21 +0100 (MET)
> +>---- On Mar 28, 9:23am, Morten Eriksen wrote:
[]
> ->
> ->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);
[]
> ->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.
Ouch, I should have known. Thanks.
Morten
This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:52:35 PDT