control texture wrapping behavior

Hi Mario and list,

I would like to set the texture wrap around behavior of a ptb texture,
so that when i ask for a source rect (partially) outisde the texture
edge, i dont get clamp to edge behavior.

So the equivalent of:
glTexParameterfv(GL_TEXTURE_2D,GL_TEXTURE_WRAP_S,GL_REPEAT);
glTexParameterfv(GL_TEXTURE_2D,GL_TEXTURE_WRAP_T,GL_REPEAT);
Or whichever textue target is used internally.

I guess i could try doing this by going into MoGL mode just to set
these parameters, but before i try that i wanted to ask whether there
is a better way as i could find it in the docs of the various texture
functions.

Thanks a lot!
Dee