Re: [pygame] SDL 2.0

2013-09-19 Thread Russell Jones
Which wiki? SDL2, PySDL2 or Pygame? Just playing, but here are (probably suboptimal, even ignoring the naive algorithm) Pygame and PySDL2 examples of Conway's life. They require a recent numpy. I'd be interested to hear about better approaches. I'd like to get my head around using OpenGL "shader"

Re: [pygame] SDL 2.0

2013-08-21 Thread Marcus von Appen
On, Sun Aug 18, 2013, Lenard Lindstrom wrote: > On 13-08-17 12:28 AM, Marcus von Appen wrote: > > On, Sat Aug 17, 2013, Lenard Lindstrom wrote: > > > >> Ctypes may be the way to go on PyPy, but it is slow in CPython. It lacks > >> new buffer support. Well, ctype types have buffers, but they don't

Re: [pygame] SDL 2.0

2013-08-21 Thread Marcus von Appen
On, Sun Aug 18, 2013, ninmonk...@gmail.com wrote: > Is this required If you use the pixel access sample in the sdl2 > migration wiki? What example do you mean exactly? Generally speaking: no, you do not have to rely on numpy, but can use your own favourite way of accessing the data, either by us

Re: [pygame] SDL 2.0

2013-08-18 Thread Lenard Lindstrom
On 13-08-17 12:28 AM, Marcus von Appen wrote: On, Sat Aug 17, 2013, Lenard Lindstrom wrote: Ctypes may be the way to go on PyPy, but it is slow in CPython. It lacks new buffer support. Well, ctype types have buffers, but they don't work with NumPy. Take a look at https://bitbucket.org/marcusva

Re: [pygame] SDL 2.0

2013-08-17 Thread ninmonkeys
Is this required If you use the pixel access sample in the sdl2 migration wiki? -- Monkey On Aug 17, 2013, at 12:28 AM, Marcus von Appen wrote: > On, Sat Aug 17, 2013, Lenard Lindstrom wrote: > >> Ctypes may be the way to go on PyPy, but it is slow in CPython. It lacks >> new buffer support. W

Re: [pygame] SDL 2.0

2013-08-17 Thread ninmonkeys
Does pygame use sdl_gfx ? That has a 2 port. -- Monkey On Aug 16, 2013, at 7:48 PM, Paul Vincent Craven wrote: > I started a pygame port based off Marcus's CTypes work. I think it is the > best way to go for an SDL 2 pygame. > > Some things are harder, like full SDL 2 support would require

Re: [pygame] SDL 2.0

2013-08-17 Thread ninmonkeys
Pygame 2.0 might be a better name to signify the large change to SDL2 -- Monkey On Aug 16, 2013, at 1:26 PM, Andrew Barlow wrote: > I favour this hugely. > > I'd love to have a feature freeze on 1.9.2... squish any final bugs on it... > start SDL2 port for a PyGame 1.9.10 (Maybe even just P

Re: [pygame] SDL 2.0

2013-08-17 Thread ninmonkeys
I did see in the wiki for porting, a method to use the read-access of surface, yet copies into an existing texture. Meaning you don't do the slow createTextureFromSurface() every frame. I'd paste it but I can't on my phone. -- Monkey On Aug 13, 2013, at 1:47 AM, Andrew Barlow wrote: > Aweso

Re: [pygame] SDL 2.0

2013-08-17 Thread Lenard Lindstrom
On 13-08-17 12:20 AM, Marcus von Appen wrote: On, Sat Aug 17, 2013, Lenard Lindstrom wrote: Hi Andrew, Marcus von Appen has "pygame2" as a synonym for PyGame Reloaded. I noticed, though, that PyGame Reloaded was discontinued (1) in favor of PySDL2. So if there will be no confusion and Marcus i

Re: [pygame] SDL 2.0

2013-08-17 Thread Richard Jones
On 17 August 2013 16:21, Lenard Lindstrom wrote: > Ctypes may be the way to go on PyPy, but it is slow in CPython. > PyPy moved to cffi some time ago, and it's much faster on both platforms. Richard

Re: [pygame] SDL 2.0

2013-08-17 Thread Marcus von Appen
On, Sat Aug 17, 2013, Lenard Lindstrom wrote: > Ctypes may be the way to go on PyPy, but it is slow in CPython. It lacks > new buffer support. Well, ctype types have buffers, but they don't work > with NumPy. Take a look at https://bitbucket.org/marcusva/py-sdl2/src/963b26e2110449a453efa7fa45328c

Re: [pygame] SDL 2.0

2013-08-17 Thread Marcus von Appen
On, Sat Aug 17, 2013, Lenard Lindstrom wrote: > Hi Andrew, > > Marcus von Appen has "pygame2" as a synonym for PyGame Reloaded. I > noticed, though, that PyGame Reloaded was discontinued (1) in favor of > PySDL2. So if there will be no confusion and Marcus is agreeable, then I > second "PyGame 2.0

Re: [pygame] SDL 2.0

2013-08-16 Thread Lenard Lindstrom
Ctypes may be the way to go on PyPy, but it is slow in CPython. It lacks new buffer support. Well, ctype types have buffers, but they don't work with NumPy. Array support is convoluted and slow (see _numpysurfarray.py in Pygame 1.8.0). And Python is unsuited for writing the custom blitters adde

Re: [pygame] SDL 2.0

2013-08-16 Thread Paul Vincent Craven
I started a pygame port based off Marcus's CTypes work. I think it is the best way to go for an SDL 2 pygame. Some things are harder, like full SDL 2 support would require versions of code on some functions for rastarized, openGL, and DirectX. Things like 'line width' aren't supported, so I had to

Re: [pygame] SDL 2.0

2013-08-16 Thread Lenard Lindstrom
Hi Andrew, Marcus von Appen has "pygame2" as a synonym for PyGame Reloaded. I noticed, though, that PyGame Reloaded was discontinued (1) in favor of PySDL2. So if there will be no confusion and Marcus is agreeable, then I second "PyGame 2.0". Lenard (1) https://code.google.com/p/pgreloaded/

Re: [pygame] SDL 2.0

2013-08-16 Thread Andrew Barlow
I favour this hugely. I'd love to have a feature freeze on 1.9.2... squish any final bugs on it... start SDL2 port for a PyGame 1.9.10 (Maybe even just PyGame 2.0?) On 16 August 2013 21:12, Lenard Lindstrom wrote: > Hi, > > I recommend we put a feature freeze of Pygame 1.9.2. Personally, I sti

Re: [pygame] SDL 2.0

2013-08-16 Thread Lenard Lindstrom
Hi, I recommend we put a feature freeze of Pygame 1.9.2. Personally, I still want to see Pygame 1.9.2 reach release status. I expect identifying existing bugs in Pygame 1.9.2 is easier than chasing them down later in an SDL 2 port. Otherwise, I would rather put time into an SDL2 port than pat

Re: [pygame] SDL 2.0

2013-08-13 Thread René Dudfield
On Tue, Aug 13, 2013 at 3:25 PM, geneb wrote: > > Does the OpenGL ES support mean that it will work properly on the > Raspberry Pi? > > tnx! Hi, Yes, it does work with raspberrypi. There are some people working on better SDL2 support for raspberrypi in this issue: http://bugzilla.libsdl.

Re: [pygame] SDL 2.0

2013-08-13 Thread geneb
On Tue, 13 Aug 2013, René Dudfield wrote: On Tue, Aug 13, 2013 at 3:25 PM, geneb wrote: Does the OpenGL ES support mean that it will work properly on the Raspberry Pi? tnx! Hi, Yes, it does work with raspberrypi. There are some people working on better SDL2 support for raspberrypi in

Re: [pygame] SDL 2.0

2013-08-13 Thread René Dudfield
On Tue, Aug 13, 2013 at 2:09 PM, Keith Nemitz wrote: > > Is there a way to create iOS games with pysdl2 ? Would Cython be a path? > > Hello, Using ctypes and pysdl2 should be possible with some work, but I'm not 100% certain. Python and ctypes on iOS can work, but would require some extra code

Re: [pygame] SDL 2.0

2013-08-13 Thread claudio canepa
On Tue, Aug 13, 2013 at 5:37 AM, René Dudfield wrote: > Happy days... > > > SDL 2.0 is released! > > http://lists.libsdl.org/pipermail/sdl-libsdl.org/2013-August/089854.html > > """ > > > Wohoo!!!

Re: [pygame] SDL 2.0

2013-08-13 Thread geneb
On Tue, 13 Aug 2013, René Dudfield wrote: Happy days... SDL 2.0 is released! http://lists.libsdl.org/pipermail/sdl-libsdl.org/2013-August/089854.html """ These are the most important new features in SDL 2.0: - Full 3D hardware acceleration - Support for OpenGL 3.0+ in various profiles

Re: [pygame] SDL 2.0

2013-08-13 Thread Keith Nemitz
Is there a way to create iOS games with pysdl2 ?  Would Cython be a path? From: René Dudfield To: pygame-users@seul.org Sent: Tuesday, August 13, 2013 4:38 AM Subject: Re: [pygame] SDL 2.0 Hi, Note: there are the pysdl2 wrappers here:     http

Re: [pygame] SDL 2.0

2013-08-13 Thread René Dudfield
Hi, Note: there are the pysdl2 wrappers here: http://pysdl2.readthedocs.org/en/latest/ There is also a guide "pysdl2 for pygamers" which shows which API calls in pygame map to which calls in pysdl2. http://pysdl2.readthedocs.org/en/latest/tutorial/pygamers.html I'd like to make a pygame

Re: [pygame] SDL 2.0

2013-08-13 Thread Andrew Barlow
Awesome! I hope we end up with a nice wrapper around previous pygame code so I don't have to rewrite everything! I'd even pay good money for that! On 13 August 2013 09:37, René Dudfield wrote: > Happy days... > > > SDL 2.0 is released! > > http://lists.libsdl.org/pipermail/sdl-libsdl.org/2013-A

[pygame] SDL 2.0

2013-08-13 Thread René Dudfield
Happy days... SDL 2.0 is released! http://lists.libsdl.org/pipermail/sdl-libsdl.org/2013-August/089854.html """ These are the most important new features in SDL 2.0: - Full 3D hardware acceleration - Support for OpenGL 3.0+ in various profiles (core, compatibility, debug, robust, etc

[pygame] SDL 2.0 / glx lines

2013-02-18 Thread Paul Vincent Craven
I've been working with glx and putting a pygame-like interface over SDL 2.0. How does a program draw a line that is multi-pixel wide? Everything is only one-pixel wide. Paul Vincent Craven