passing C++ parameters to a function

S

Stormbringer

Greetings,

I was trying to use pyopengl - which is imported into python using SWIG
- when I stumbled upon the following function with the C++ definition:

void glShaderSourceARB(GLhangleARB shader, GLuint number_strings, const
GLcharARB** strings, Glint * length);

this is imported inside pyopengl, looks something like this :

# This file was created automatically by SWIG.
# Don't modify this file, modify the SWIG interface instead.
# This file is compatible with both classic and new-style classes.

import _shader_objects

[...]

glShaderSourceARB = _shader_objects.glShaderSourceARB


Now I am at a loss here, I need to call this function but can't figure
out a quick way to convert my argumets to this list of string pointers
and pointer to int. Could anyone more experienced in SWIG-usage and/or
pyopengl internals give me some hints ?

Thanks,
Andrei
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,240
Messages
2,571,211
Members
47,845
Latest member
vojosay

Latest Threads

Top