Re: [pygame] Cairo + SDL

2009-05-05 Thread Yanom Mobis
the website wasn't helpfull...

--- On Mon, 5/4/09, Marius Gedminas mar...@gedmin.as wrote:

From: Marius Gedminas mar...@gedmin.as
Subject: Re: [pygame] Cairo + SDL
To: pygame-users@seul.org
Date: Monday, May 4, 2009, 6:59 PM


-Inline Attachment Follows-

On Sun, 5/3/09, Marius Gedminas mar...@gedmin.as wrote:
 On Sun, May 03, 2009 at 07:32:39AM -0700, Yanom Mobis wrote:
  Is cairo used for game programming?
 
 There are a few games using Cairo:
 http://lists.cairographics.org/archives/cairo/2006-May/007032.html
 
 It was not designed specifically for games, though, unlike SDL.

On Mon, May 04, 2009 at 03:47:04PM -0700, Yanom Mobis replied:
 so does it have support for collision detection, load images onto the
 screen, mouse input, etc?

No, yes, no, and why don't you go over to http://cairographics.org/ and
read a little, if you're interested?

Marius Gedminas
-- 
A: Because it destroys the flow of the conversation
Q: Why is it bad?
A: No, it's bad.
Q: Should I top post in replies to mailing lists?



  

Re: [pygame] Cairo + SDL

2009-05-04 Thread Yanom Mobis
so does it have support for collision detection, load images onto the screen, 
mouse input, etc?

--- On Sun, 5/3/09, Marius Gedminas mar...@gedmin.as wrote:

From: Marius Gedminas mar...@gedmin.as
Subject: Re: [pygame] Cairo + SDL
To: pygame-users@seul.org
Date: Sunday, May 3, 2009, 4:14 PM


-Inline Attachment Follows-

On Sun, May 03, 2009 at 07:32:39AM -0700, Yanom Mobis wrote:
 Is cairo used for game programming?

There are a few games using Cairo:
http://lists.cairographics.org/archives/cairo/2006-May/007032.html

It was not designed specifically for games, though, unlike SDL.

Marius Gedminas
-- 
We don't care.  We don't have to.  We're the Phone Company.



  

Re: [pygame] Cairo + SDL

2009-05-04 Thread Marius Gedminas
On Sun, 5/3/09, Marius Gedminas mar...@gedmin.as wrote:
 On Sun, May 03, 2009 at 07:32:39AM -0700, Yanom Mobis wrote:
  Is cairo used for game programming?
 
 There are a few games using Cairo:
 http://lists.cairographics.org/archives/cairo/2006-May/007032.html
 
 It was not designed specifically for games, though, unlike SDL.

On Mon, May 04, 2009 at 03:47:04PM -0700, Yanom Mobis replied:
 so does it have support for collision detection, load images onto the
 screen, mouse input, etc?

No, yes, no, and why don't you go over to http://cairographics.org/ and
read a little, if you're interested?

Marius Gedminas
-- 
A: Because it destroys the flow of the conversation
Q: Why is it bad?
A: No, it's bad.
Q: Should I top post in replies to mailing lists?


signature.asc
Description: Digital signature


Re: [pygame] Cairo + SDL

2009-05-03 Thread Yanom Mobis
Is cairo used for game programming?

--- On Sat, 5/2/09, Chris McCormick ch...@mccormick.cx wrote:

From: Chris McCormick ch...@mccormick.cx
Subject: [pygame] Cairo + SDL
To: pygame-users@seul.org
Date: Saturday, May 2, 2009, 12:16 PM


-Inline Attachment Follows-

Hi all,

Recently there was some talk of doing vector graphics in Pygame. Since this is
a subject that is dear to me, I thought I'd ask how hard it would be to
incorporate something like this into Pygame:

http://cairographics.org/SDL/

I realise this probably implies a large amount of work, but I just thought I'd
throw it on to the collective heads-up-display. Would be pretty wonderful to be
able to use Cairo's rendering capabilities from inside Pygame! :)

Best,

Chris.

---
http://mccormick.cx



  

Re: [pygame] Cairo + SDL

2009-05-03 Thread Marius Gedminas
On Sun, May 03, 2009 at 07:32:39AM -0700, Yanom Mobis wrote:
 Is cairo used for game programming?

There are a few games using Cairo:
http://lists.cairographics.org/archives/cairo/2006-May/007032.html

It was not designed specifically for games, though, unlike SDL.

Marius Gedminas
-- 
We don't care.  We don't have to.  We're the Phone Company.


signature.asc
Description: Digital signature


Re: [pygame] Cairo + SDL

2009-05-02 Thread Brian Fisher
I'm pretty sure pycairo and pygame are already interoperable:
http://www.pjblog.net/index.php?post/2006/06/23/144-using-pycairo-with-pygame-surface

I think you may also be able to do something like this to do pretty much
exactly what that page you linked to does:
--
width = 100
height = 100
pygame_surf = pygame.Surface((width, height), 0, 32, (0xff, 0x00ff00,
0xff, 0))

data = pygame_surf.get_buffer()
stride = pygame_surf.get_pitch()
cairo_surf = cairo.ImageSurface.create_for_data(data, cairo.FORMAT_RGB24,
width, height, stride)

-

... but I haven't tested it


On Sat, May 2, 2009 at 10:16 AM, Chris McCormick ch...@mccormick.cx wrote:

 Hi all,

 Recently there was some talk of doing vector graphics in Pygame. Since this
 is
 a subject that is dear to me, I thought I'd ask how hard it would be to
 incorporate something like this into Pygame:

 http://cairographics.org/SDL/

 I realise this probably implies a large amount of work, but I just thought
 I'd
 throw it on to the collective heads-up-display. Would be pretty wonderful
 to be
 able to use Cairo's rendering capabilities from inside Pygame! :)

 Best,

 Chris.

 ---
 http://mccormick.cx