Hi Brett,
On 25/08/09 10:00 PM, Brett Thomas Lee wrote:
Hi I also tried lots of methods like
img-setImage(64,64,1,GL_RGBA,GL_RGBA,GL_UNSIGNED_BYTE,rendTexture-getImage()-data(),osg::Image::NO_DELETE);
Are you rendering to 'rendTexture' (the name implies something like that).
The texture data
I believe the method is this one, but make sure to use it in proper place
/** Read the contents of the current bound texture, handling compressed
pixelFormats if present.
* Create memory for storage if required, reuse existing pixel
coords if possible.
*/
void
...@lists.openscenegraph.org
[mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Brett
Thomas Lee
Sent: Monday, August 24, 2009 11:07 PM
To: osg-users@lists.openscenegraph.org
Subject: [osg-users] Assigning one image to another
Hi,
I want to assign one image to another another.I want to do deepcopy
3 matches
Mail list logo