PgSetFillTransPat and Photon 1.14

bridged with qdn.public.qnx4.photon
Post Reply
Per Akesson

PgSetFillTransPat and Photon 1.14

Post by Per Akesson » Wed Oct 08, 2003 11:46 am

I can't seem to get PgSetFillTransPat to work.

I'm trying:

....
PgSetFillTransPat(Pg_PAT_HALF); // or even Pg_PAT_CHECKB8
PgSetFillColor(Pg_YELLOW);
PgDrawPolygon(points, n, &zero, Pg_DRAW_FILL_STROKE | Pg_CLOSED);

but my polygon becomes completely filled.

I tried the -DA switch to the Pg.flatdc32 but no change.

The on-line docs mention that the hardware must support this.

Could someone tell me if I can have transparancy by the contents of
my crt.1 file, attached below ?

thanks in advance

--
Per Åkesson
Carmenta AB
SWEDEN

Per Akesson

Re: PgSetFillTransPat and Photon 1.14

Post by Per Akesson » Thu Oct 09, 2003 1:42 pm

Per Akesson wrote:
I can't seem to get PgSetFillTransPat to work.

I'm trying:

....
PgSetFillTransPat(Pg_PAT_HALF); // or even Pg_PAT_CHECKB8
PgSetFillColor(Pg_YELLOW);
PgDrawPolygon(points, n, &zero, Pg_DRAW_FILL_STROKE | Pg_CLOSED);

but my polygon becomes completely filled.
I tried a GeForce 2 card with the following:

Null.ms;Pg.tnt -g1152x864x32 -d0x10de,0x110 -I0 -HNqnx/crt
-DA;#1152,864,32,200,0CBDr,tnt - nVidia Riva TNT/TNT2


But still my polygons gets filled.

Doesn't the hardware support transparency ? or have I missed something ?

thanks for any input


--
Per Åkesson
Carmenta AB
SWEDEN

Post Reply

Return to “qdn.public.qnx4.photon”