Hi,

I am trying to create an image out of a memory block:

unsigned char * data= new unsigned char[1024];
image->setImage (int s, int t, int r, GLint internalTextureformat, GLenum 
pixelFormat, GLenum type, unsigned char *data, AllocationMode mode, int 
packing=1)

For Allocation mode, there are 

NO_DELETE       
USE_NEW_DELETE  
USE_MALLOC_FREE 

So far only NO_DELETE works for me. The other two will crashes no matter what.

Dose that mean that if I use USE_NEW_DELETE or USE_MALLOC_FREE, I don't need to 
pre allocate the memory for it and just pass a NULL for the data?

Thank you!

Cheers,
Rabbi

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=16216#16216





_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to