- Function
Initialize the already loaded graphics driver.
- Header
- Declaration
void tgi_init (void);- Description
The tgi_init function will set the default palette to the hardware.
- Limits
tgi_initwill 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, calltgi_clearaftertgi_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.