Re : Confused about GDKPixBuf/Cairo interaction

2013-02-20 Thread Lucas Levrel
--- En date de : Lun 18.2.13, Rena hyperhac...@gmail.com a écrit : Recently I've been developing a Game Boy emulator that uses GtkDrawingArea and GdkPixbuf to display the game screen. In addition to the game output I want to also be able to draw text and shapes on the display window, and

Re: Confused about GDKPixBuf/Cairo interaction

2013-02-20 Thread Edscott Wilson
2013/2/18 Colomban Wendling lists@herbesfolles.org Or maybe I got you wrong and you'd like to *draw* on your GdkPixbuf? I'm afraid this just isn't possible directly. If you really want to do that, you'll probably have to manually do some pixel conversion. You can create a Cairo surface

Re: Confused about GDKPixBuf/Cairo interaction

2013-02-20 Thread Colomban Wendling
Le 19/02/2013 01:45, Rena a écrit : On Mon, Feb 18, 2013 at 9:24 AM, Colomban Wendling [...] Well, my emulator gets the pixel data from gdk_pixbuf_get_pixels() and writes into that buffer directly; that way it doesn't have to know anything about GDK and can draw pixels by just writing

Confused about GDKPixBuf/Cairo interaction

2013-02-18 Thread Rena
Hi, just joined the mailing list, been using GTK and related projects for a while now. Recently I've been developing a Game Boy emulator that uses GtkDrawingArea and GdkPixbuf to display the game screen. In addition to the game output I want to also be able to draw text and shapes on the display

Re: Confused about GDKPixBuf/Cairo interaction

2013-02-18 Thread Colomban Wendling
Hi, Le 18/02/2013 11:10, Rena a écrit : Hi, just joined the mailing list, been using GTK and related projects for a while now. Recently I've been developing a Game Boy emulator that uses GtkDrawingArea and GdkPixbuf to display the game screen. In addition to the game output I want to also

Re: Confused about GDKPixBuf/Cairo interaction

2013-02-18 Thread Colomban Wendling
Le 18/02/2013 14:50, Rena a écrit : On Mon, Feb 18, 2013 at 8:35 AM, Colomban Wendling lists@herbesfolles.org wrote: Hi, Le 18/02/2013 11:10, Rena a écrit : Hi, just joined the mailing list, been using GTK and related projects for a while now. Recently I've been developing a Game Boy