This repository has been archived on 2026-05-18. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
glparticlesystem/init.h

35 lines
580 B
C
Executable File

#ifndef __INIT_H__
#define __INIT_H__
#include "common.h"
/* function to release/destroy our resources and restore the old desktop
* (if we've clobbered it) */
void Quit( int returnCode )
{
SDL_Quit( );
exit( returnCode );
}
/* function to handle key press events */
void handleKeyPress( SDL_keysym *keysym )
{
switch ( keysym->sym )
{
case SDLK_ESCAPE:
Quit( 0 );
break;
case SDLK_F1:
/* this toggles fullscreen mode
*/
SDL_WM_ToggleFullScreen( surface );
break;
default:
break;
}
return;
}
#endif // __INIT_H__