nanogui: Setting background as transparent
Subject:
Re: [nanogui] Setting background as transparent
From:
####@####.#### ####@####.####
Date:
28 Sep 2006 03:04:14 +0100
Message-Id: <1159409061.2675.2.camel@fc5>
On Wed, 2006-09-27 at 18:51 +0530, pratish ganguly wrote:
> Dear all,
>
> I am trying to write a string on top of an image using the API GrText(), but
> the text is printed on a black background.
> I tried searching on the net for the flags that can be used in the
> GrSetFontAttr() as well as GrText() APIs for transparent background, but
> couldn't fix the problem.
> Am I missing something here ?
> Please suggest me some pointers so that I can set the background as
> transparent.
>
> Thanks and regard.
>
> Pratish Ganguly
That's easy, just try to set you GC like this,
GrSetGCUseBackground(gc, GR_FALSE);
GrText(w, gc, 10, 30, "hey, don't touch me!!", -1, GR_TFASCII);
Alex