3D Game Builder SDK

3D Game Builder SDK

(click on a function name for more information...)

Include File

  3dgamebuilder.h

Game Loop (Entry Function)

  gameLoop( void )

Message Display Functions

  gameMessage( char * msg )
  gameShowMessages( void )
  gameHideMessages( void )

Rendering Functions

  gameStartRender( void )
  gameEndRender( void )

Font Drawing Functions

  gameCreateFont( int id, char * name, int height )
  gameDrawFont( char * message )
  gameSetFontPosition( float x, float y, float z )
  gameSetFontColor( float r, float g, float b, float a )
  gameSelectFont( int id )
  gameCloseFont( int id )

Game Controller Functions

  gamePadRead( void )
  gamePadAttached( int n )
  gamePadButtonDown( int n, int button )
  gamePadButtonPressed( int n, int button )

Random Number Generator

  gameRandom( float mini, float maxi )

Game Timer Function

  gameTick( void )

Return sin and cos for an angle (in degrees)

  gameSin( float angle )
  gameCos( float angle )

Texture and Imaging Functions

  gameValidateTGA( char * name )
  gameOpenTGA( char * name )
  gameCloseTGA( int id )
  gameSetAdditiveBlendTGA( int id, int set )
  gameSetSmoothTGA( int id, int set )
  gameSetInvisibleColorTGA( int id, float r, float g, float b )
  gameSetTransparencyTGA( int id_base, int id_alpha )
  gameBindTexture( int id )

3D Model Functions (3D Model Builder)

  gameOpenModel( char * name )
  gameCloseModel( int id )
  gameDrawModel( int id )
  gameFlushModels( void )
  gameSetModelLighting( int on )