Re: 2D Graphics with gtk-1.2 (for the developers of GTK+..)



>i've a question.. i'm doing a 2D game and i'm using a GtkDrawingArea, but i ha
>ve 
>some pixmaps that have transparent areas, and i looked on the GTK+ 
>documentation and i only found gtk_widget_shape_combine_mask... So, i'm
>wondering, should i use GtkPixmap's to draw this pixmaps that have 
>transparent areas (and align them with GtkFixed after), or if this uses to man
>y
>resources.. if i should only use GdkPixmap's, how can i make the transparent a
>reas?
>
>(someone already answered that question, but i lost my mails, and when
>i did a search on gtk.org it didn't came up..., if someone could cc that mail
>to me, i would apreciate alot, i think the subject was "transparent style")

use the bitmap generated with the pixmap as the clip mask when you
draw the pixmap.

--p



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]