Hey all, first forum post from me and I'm a complete novice with C++ & DarkGDK so be gentle please,
cavat, Search function already used all 15 results didn't resolve my issue.
The problem I am having is when entering FullScreen my application doesn't function the same way as in Windowed mode, for some reason the Axis seem to change.
The Windowed mode is the end result I am after, but in Fullscreen mode.
Here is the code
#include "DarkGDK.h"
void DarkGDK ( void )
{
dbSyncOn ( );
dbSyncRate ( 60 );
dbRandomize ( dbTimer ( ) );
dbPositionCamera ( 0, 300, 0 );
dbPointCamera ( 0, 0, 0 );
dbAutoCamOff ( );
dbSetWindowOff(); // This is the command I use for fullscreen
//player
dbMakeObjectCube ( 1, 30 );
//create random objects
for ( int i = 2; i < 200; i++ )
{
dbMakeObjectCube ( i, 40 );
dbPositionObject ( i, dbRND ( 1000 )-500, 0, dbRND ( 1000 )-500 );
dbYRotateObject ( i, dbRND ( 360 ) );
}
while ( LoopGDK ( ) )
{
if ( dbRightKey ( ) )
dbPositionObject ( 1, dbObjectPositionX ( 1 ) + 1, 0, dbObjectPositionZ ( 1 ) );
if ( dbLeftKey ( ) )
dbPositionObject ( 1, dbObjectPositionX ( 1 ) - 1, 0, dbObjectPositionZ ( 1 ) );
if ( dbUpKey ( ) )
dbPositionObject ( 1, dbObjectPositionX ( 1 ), 0, dbObjectPositionZ ( 1 ) + 1 );
if ( dbDownKey ( ) )
dbPositionObject ( 1, dbObjectPositionX ( 1 ), 0, dbObjectPositionZ ( 1 ) - 1 );
//keep camera over the player
dbPositionCamera ( dbObjectPositionX ( 1 ), 300, dbObjectPositionZ ( 1 ) );
dbSync ( );
}
return;
}
I can remedy this by using dbXRotateCamera (90); just after dbSetWindowOff(); but why is this happening?
Any help would be appreciated.