Next Previous Contents

3.232 tgi_init

Function

Initialize the already loaded graphics driver.

Header

tgi.h

Declaration

void tgi_init (void);

Description

The tgi_init function will set the default palette to the hardware.

Limits

  • tgi_init will not clear the screen. This allows switching between text and graphics mode on platforms that have separate memory areas for the screens. If you want the screen cleared, call tgi_clear after tgi_init.

Availability

cc65

See also

Other tgi functions.

Example

tgi_install(tgi_static_stddrv); //Include the driver statically instead of loading it.
tgi_init(); //Set up the default palette and clear the screen.


Next Previous Contents