X coding question

I'm writing a cute little game, that relies on fast access to a raw X
window for drawing (possibly DGA or something later).

 Every so often, I check for events with something like:
 XCheckWindowEvent(display, action, ButtonReleaseMask | ExposureMask,

 I was wondering. Can I wrap a GTK UI around this, and still be able to
check for events fairly often, and update the window with pretty graphics
about 30 times a second ? Can I abuse the Drawing widgets X window
horribly, without incurring the wrath of GTK ?


 "I am Grey. I stand between the candle and the star.
    We are Grey. We stand between the darkness and the light."

John "Kate" Looney, Horizon Open Systems. Sun Microsystems distributor and 
Support centre. Hotline: [+353 1 8055700] Web http://www.hos.horizon.ie/

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