Hi everybody. I'm just learn Dark for a few days and i don't know much. Yesterday i make this 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);
dbMakeObjectCube(1,50);
SetCurrentDirectory("media");
dbLoadImage("texture1.jpg",2);
dbTextureObject(1,2);
dbPositionCamera(0,30,-100);
// our main loop
while ( LoopGDK ( ) )
{
dbTurnObjectRight(1,1);
// update the screen
dbSync();
}
// return back to windows
return;
}
My problem is the texture of the cube; sometime the cube is textured and sometime is not.
The cube must be this:
But it sometime be this:
Could u please tel me why?
Thank u very much! and sorry for my bad english!