Don Meyer
|
Re: RE: Displaying layer 0 gf graphics with Photon in layer 1?
|
Don Meyer
07/19/2012 2:53 PM
post94348
|
Re: RE: Displaying layer 0 gf graphics with Photon in layer 1?
Thanks for the reply. I did post essentially the same question in the Photon forum, and then posted it here today as I
hadn't gotten any responses there yet. Not certian which form is most appropriate for this question - it seems to span
both.
I've gotten a similar suggestion from tech support (although with less detail, more of a general direction). I've been
going this way, so good to know that I'm on the right path.
Not having much luck however.
I'm attaching to the layer that Photon is using with a passive attach. Then, I set the chroma:
gf_chroma_t chroma;
chroma.mode = GF_CHROMA_OP_SRC_MATCH | GF_CHROMA_OP_NO_DRAW;
chroma.color0 = 0xff0000;
chroma.color1 = 0; // unused
gf_layer_set_chroma( layer, &chroma );
gf_layer_update( layer, 0 );
After that is done, we create our window and a PtOSContainer, whose background is set to full red.
That red background is still drawing however.
|
|
|