Something like this:
#include "DarkGDK.h"
void DarkGDK()
{
// Init
dbSyncOn();
dbAutoCamOff();
dbMakeObjectSphere( 1, 10.0f );
dbMakeObjectSphere( 2, 2.0f ); dbColorObject( 2, 0xFFFF0000 );
dbMakeObjectSphere( 3, 2.0f ); dbColorObject( 3, 0xFF00FF00 );
dbMakeObjectSphere( 4, 2.0f ); dbColorObject( 4, 0xFF0000FF );
dbPositionObject( 2, 0.0f, 0.0f, -5.0f );
dbPositionObject( 3, 0.0f, 5.0f, 0.0f );
dbPositionObject( 4, 5.0f, 0.0f, 0.0f );
dbGlueObjectToLimb( 2, 1, 0 );
dbGlueObjectToLimb( 3, 1, 0 );
dbGlueObjectToLimb( 4, 1, 0 );
dbPositionObject( 1, 0.0f, 0.0f, 20.0f );
// Main loop
while ( LoopGDK() )
{
dbMoveObject( 1, dbUpKey() - dbDownKey() );
dbTurnObjectRight( 1, dbRightKey() - dbLeftKey() );
// Render
dbSync();
}
}