unsigned char * image_data;
int bytes; // size
format:
RGBA , UNSIGNED_BYTE.
(opengl-glGetTexImage()):
How can i create fipImage* from this data?
C++.
unsigned char * image_data;
int w = 1000;
int h = 1000;
this function write to image_data
glGetTexImage(GL_TEXTURE_2D, 0 , GL_RGBA , GL_UNSIGNED_BYTE , image_data);
i want to create fipImage from image_data
fipImage image;
something like this
image.load(image_data ,w , h);