Hi,
what's wrong with this code, the cube is there but not the texture !
I know that the image is load (tested with ntfilemon so the pb is not there).
A strange behavior of the SDK, it look by default at d:\media, it even look at d:\media\d:\media after having added the jpg there to see if it could work.
thx
#include "DarkSDK.h"
void DarkSDK ( void )
{
dbSyncOn ( );
dbSyncRate ( 0 );
dbLoadImage ( "d:/media/sophie.jpg", 1);
// dbLoadObject( "cube.3ds",1);
dbMakeObjectCube (1,50);
dbTextureObject ( 1, 1);
float i = 0;
while ( LoopSDK ( ) )
{
if ( dbEscapeKey ( ) )
return;
/* dbRotateObject ( 1, i, i, 0);
i += .1;
if (i >= 360)
i = 0;
*/
dbSync ( );
}
}
/kml