Texture subload

New Message Reply Date view Thread view Subject view Author view

From: Dimi (christop++at++fhw.gr)
Date: 10/29/2001 07:12:07


Hi,
I am currently trying to find a way to do some procedural texturing,
where I take the
original texture change it in some way and the reapply it.
I used for that the pfTexture::getImage/setImage methods:

 tex->getImage(&i, &nc, &sx, &sy, &sz);
  /*
    Here I modify the RGBA data using the i pointer
 */
  tex->setImage((uint*)ch,nc, sx, sy, 1);

Is there a faster way to do this, ie. upload at runtime a texture. I was
looking
for a similar way to glTexSubImage2D in OpenGL, but I dont know if these
methods
have the same functionality.

Thanks
Dimi


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Mon Oct 29 2001 - 06:57:41 PST

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.