3D Game Builder SDK

SDK Functions

gameMessage( char * msg )

Description

Add a message to be displayed in the game messages at the top left hand corner of the graphics screen.

Refer to the image below which shows where the game messages are displayed:

Specification

void gameMessage( char * msg )

char * msg

= a null terminated character string (e.g: "hello world")

return value

= void (nothing)

Notes

You can also switch the display of these messages on and off using the gameShowMessages() and gameHideMessages() functions.

For Example

#include "3dgamebuilder.h"

// exported game function
DLL_EXPORT int gameLoop(void)
{
	// game loop
	while(1)
	{
		// read the controller
		gamePadRead();

		// start drawing
		gameStartRender();

		// show a message
		gameMessage( "This is a test message" );

		// end of drawing
		gameEndRender();
	}

	return 0;
}

See Also

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

Go Back

SDK Functions