Original Post
Hello,
I''m actually writing a 3D-Engine. I developed a simple script language which describes a map. You can for example build a map in milkshape3d and convert this file into my map file.
My engine reads this map file and creates the necessary objects.
Example:
somewhere in the file is something written like this
Vertex;0;1;2;
the engine now creates a vertex with x = 0; y = 1; z = 2;
and adds this vertex to a vector.
vector.push_back (VERTEX (0, 1, 2));
What I want to do is to create all objects (vertices, polygons etc.) in memory and then write this memory block to a file like an image (imagefile). So when I want to load the map next time I don''t have to reinterpret the ascii file instead I would just load the image file and would have access to all previously created objects.
I hope I explained made my problem clear enough.
Thanks in advance
Sarge