hello, i am attempting to create a sort of "resource file", i.e. put several objects into one large file, then access that file at the start, to tidy up my project folders. unfortunately, darkgdk does not seem to be able to actually write data into files. here is my test code.
#include "DarkGDK.h"
// the main entry point for the application is this function
void DarkGDK ( void )
{
// turn on sync rate and set maximum rate to 60 fps
dbSyncOn ( );
dbSyncRate ( 60 );
dbLoadImage("board.x", 1);
dbMakeMeshFromObject(2, 1);
dbMakeMemblockFromMesh(1, 2);
dbMakeFile("Testconvert.lbr");
dbOpenToWrite(1, "Testconvert.lbr");
dbWriteMemblock(1, 1);
dbCloseFile(1);
return;
// our main loop
while ( LoopGDK ( ) )
{
// update the screen
dbSync ( );
}
// return back to windows
return;
}
-to the optimist, the glass is half full. to the pessimist, it is half empty, to the engineer, it is twice as big as it needs to be.