Something error happens
Currently, I''m making editors for a FPS game of mine, and I want to make a program to load multiple textures and save them into one file. First, I tried using fwrite:
(textureimage[0]->data,sizeof(width * height * bpp),1,TextureFile);
but I can''t load them back. I heard that you can make an array of chars like:
unsigned char Bitmap[width][height][bpp];
and make a texture from that. So I need to know how to load a bitmap, put it into an array of chars(or glubytes, I don''t know), so then I can write that to a file and later read them back into an array for texture generation. simple.
Marathon Redux: MY mega project.http://marathonredux.forerunners.org
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement