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

Re: [pygame] GLSL Texturing example ? (and ctypes...?)



Sorry I should have clarified.

I got that demo working fine, but then tried to modify it to do texturing and
didn't get very far.
What I am having problems with is the operations to set the active texture.
I've been using some NeHe demo code to bind 2D textures just fine and have been
happily texturing quads using python opengl.

However, I am new to ctypes, which does really look like the way to go.

Jon


Quoting Simon Wittber <simonwittber@xxxxxxxxx>:

> On 10/17/06, JoN <jon@xxxxxxxxxxxxxxxxxx> wrote:
> > Hi Simon
> >
> > An example of how to get texturing happening in GLSL, using Python ctypes.
> > This includes the setting active texture.
> 
> Ah ok. Well to achieve this would require no changes to the GLSL
> example in the cookbook, just changes to the shader program code.
> 
> I haven't written a texturing shader myself, but if I had to learn,
> I'd try the OpenGL newsgroups, as it's not a Python specific problem.
> 
> -Sw.
> 




--------------------------------------------------------------------
Come and visit Web Prophets Website at http://www.webprophets.net.au