Hey,
I started a simple FPS Game, and i would like to know why i got problems with this code, it all seams to fit very nice, and it compiles without errors, why do i only see blue and nothing more.
Here is my code:
Main.cpp
#include "DarkGDK.h"
#include "oefpscam.h"
void DarkGDK ( void )
{
dbSyncOn ( );
dbSyncRate ( 60 );
dbPositionCamera (0, 10,10,10);
//Make Simple Matrix - [for testing]
dbMakeMatrix (1, 1000,1000,10,10);
dbPositionMatrix (1, 0 , 0 , 0 );
while ( LoopGDK ( ) )
{
oecontrolfpscam ();
dbSync ( );
}
return;
}
And here is the code of the extra .h file:
void oecontrolfpscam ()
{
//Player Movement Controls
if (dbKeyState(17) == 1)
{
dbMoveCamera(0, 0.2);
}
if (dbKeyState(31) == 1)
{
dbMoveCamera(0, -0.2);
}
if (dbKeyState(30) == 1)
{
dbMoveCameraLeft(0,0.2);
}
if (dbKeyState(32) == 1)
{
dbMoveCameraRight(0,0.2);
}
//Mouse Aim
float fCameraAngleX,fCameraAngleY;
fCameraAngleX = dbCameraAngleX();
fCameraAngleY = dbCameraAngleY();
fCameraAngleX = dbWrapValue (fCameraAngleX +
dbMouseMoveY ( ) * 0.2f);
fCameraAngleY = dbWrapValue (fCameraAngleY +
dbMouseMoveX ( ) * 0.2f);
dbXRotateCamera (fCameraAngleX);
dbYRotateCamera (fCameraAngleY);
}
EDIT: Using 7.4 A BTW.
Thanks in forward,
Red Eye