Re: [pygame] GSoC

2011-02-05 Thread Sam Bull
Hi guys, I'm looking for some input into widget events, and what people think is the best way to implement this. There seems to be two main methods, either a widget can have functions that are called on these events, or the widget can emit a Pygame event that will then be handled in the main

[pygame] [pyopengl] glActiveTexture(GL_TEXTURE1) cause failure in my code, can't get the reason why

2011-02-05 Thread amdlintuxo
Hi all. I was trying to play with GLSL multi-texturing and as usual the problems don't want stay far away from me. Now i get problem with Texture units. glActiveTexture(GL_TEXTURE1) cause failure, i can't get the reason why. If i use only glActiveTexture(GL_TEXTURE0) then it's is OK, but in this

[pygame] Re: [pyopengl] glActiveTexture(GL_TEXTURE1) cause failure in my code, can't get the reason why

2011-02-05 Thread amdlintuxo
Sorry, problem was solved by excluding GLUT and it's call. Cheers, Alex

[pygame] Re: [pyopengl] glActiveTexture(GL_TEXTURE1) cause failure in my code, can't get the reason why

2011-02-05 Thread amdlintuxo
On Feb 5, 7:39 pm, Ian Mallett geometr...@gmail.com wrote: Hi, Have a look at the output; the minus one indicates an invalid index, invalid because the variable it points to does not exist in the shader.  Although it doesn't on my machine, perhaps trying to pass the uniform to it causes some

Re: [pygame] GSoC

2011-02-05 Thread Greg Ewing
Sam Bull wrote: But, from a conversation with someone else about this, it was suggested that this could complicate the game code, and it would be better to use events in order to keep the game code and GUI code separated. It's not necessary to use pygame events to achieve that. Techniques for