本文整理汇总了C++中IN_Shutdown函数的典型用法代码示例。如果您正苦于以下问题:C++ IN_Shutdown函数的具体用法?C++ IN_Shutdown怎么用?C++ IN_Shutdown使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了IN_Shutdown函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。
示例1: Host_Shutdown
/*
===============
Host_Shutdown
FIXME: this is a callback from Sys_Quit and Sys_Error. It would be better
to run quit through here before the final handoff to the sys code.
===============
*/
void
Host_Shutdown(void)
{
static qboolean isdown = false;
if (isdown) {
printf("recursive shutdown\n");
return;
}
isdown = true;
// keep Con_Printf from trying to update the screen
scr_disabled_for_loading = true;
Host_WriteConfiguration();
CDAudio_Shutdown();
NET_Shutdown();
BGM_Shutdown();
S_Shutdown();
IN_Shutdown();
if (cls.state != ca_dedicated) {
VID_Shutdown();
}
}
开发者ID:libretro,项目名称:tyrquake,代码行数:34,代码来源:host.c
示例2: Sys_Error
/*
=============
Sys_Error
Show the early console as an error dialog
=============
*/
void QDECL Sys_Error( const char *error, ... ) {
va_list argptr;
char text[4096];
MSG msg;
va_start (argptr, error);
vsprintf (text, error, argptr);
va_end (argptr);
Conbuf_AppendText( text );
Conbuf_AppendText( "\n" );
Sys_SetErrorText( text );
Sys_ShowConsole( 1, qtrue );
timeEndPeriod( 1 );
IN_Shutdown();
// wait for the user to quit
while ( 1 ) {
if (!GetMessage (&msg, NULL, 0, 0))
Com_Quit_f ();
TranslateMessage (&msg);
DispatchMessage (&msg);
}
Sys_DestroyConsole();
Com_ShutdownZoneMemory();
Com_ShutdownHunkMemory();
exit (1);
}
开发者ID:Agustinlv,项目名称:BlueHarvest,代码行数:40,代码来源:win_main.cpp
示例3: CL_Shutdown
void
CL_Shutdown(void)
{
static qboolean isdown = false;
if (isdown)
{
printf("recursive shutdown\n");
return;
}
isdown = true;
CL_WriteConfiguration();
Key_WriteConsoleHistory();
#ifdef CDA
CDAudio_Shutdown();
#endif
#ifdef OGG
OGG_Stop();
#endif
S_Shutdown();
IN_Shutdown();
VID_Shutdown();
}
开发者ID:valgusk,项目名称:yquake2,代码行数:27,代码来源:cl_main.c
示例4: CL_Shutdown
/*
===============
CL_Shutdown
===============
*/
void CL_Shutdown( void )
{
MsgDev( D_INFO, "CL_Shutdown()\n" );
if( cls.initialized && !host.crashed )
{
Host_WriteOpenGLConfig ();
Host_WriteVideoConfig ();
}
IN_TouchShutdown();
CL_CloseDemoHeader();
IN_Shutdown ();
Mobile_Destroy();
SCR_Shutdown ();
if( cls.initialized )
{
CL_UnloadProgs ();
cls.initialized = false;
}
FS_Delete( "demoheader.tmp" ); // remove tmp file
SCR_FreeCinematic (); // release AVI's *after* client.dll because custom renderer may use them
S_Shutdown ();
R_Shutdown ();
}
开发者ID:Reedych,项目名称:xash3d,代码行数:32,代码来源:cl_main.c
示例5: Host_Shutdown
void Host_Shutdown(void) {
static bool isdown = false;
if (isdown) {
printf("recursive shutdown\n");
return;
}
isdown = true;
// keep Con_Printf from trying to update the screen
scr_disabled_for_loading = true;
Host_WriteConfiguration();
CDAudio_Shutdown();
NET_Shutdown();
S_Shutdown();
IN_Shutdown();
NN_deinit();
TextureManager::clearAllTextures();
Alias::shutdown();
Cmd::shutdown();
CVar::shutdown();
MemoryObj::Flush(MemoryObj::ZONE);
if (cls.state != ca_dedicated) {
VID_Shutdown();
}
if (con_debuglog) {
Con_CloseDebugLog();
}
}
开发者ID:DrLabman,项目名称:QMB,代码行数:33,代码来源:host.cpp
示例6: PicturePause
void PicturePause (void)
{
id0_int_t y;
id0_unsigned_t source;
source = displayofs+panadjust;
// VW_ColorBorder (15);
VW_SetLineWidth (40);
VW_SetScreen (0,0);
if (source<0x10000l-200*64)
{
//
// copy top line first
//
for (y=0;y<200;y++)
VW_ScreenToScreen (source+y*64,y*40,40,1);
}
else
{
//
// copy bottom line first
//
for (y=199;y>=0;y--)
VW_ScreenToScreen (source+y*64,y*40,40,1);
}
IN_Shutdown ();
VW_WaitVBL(70);
BE_ST_BiosScanCode(0);
VW_WaitVBL(70);
Quit (NULL);
}
开发者ID:BSzili,项目名称:refkeen,代码行数:35,代码来源:c4_debug.c
示例7: GLimp_Shutdown
/*
===============
GLimp_Shutdown
===============
*/
void GLimp_Shutdown( void )
{
IN_Shutdown();
SDL_QuitSubSystem( SDL_INIT_VIDEO );
screen = NULL;
}
开发者ID:Hasimir,项目名称:jedi-academy-1,代码行数:12,代码来源:sdl_glimp.cpp
示例8: CL_Shutdown
void
CL_Shutdown(void)
{
static qboolean isdown = false;
if (isdown)
{
printf("recursive shutdown\n");
return;
}
isdown = true;
#ifdef USE_CURL
CL_HTTP_Cleanup(true);
#endif
CL_WriteConfiguration();
Key_WriteConsoleHistory();
OGG_Stop();
S_Shutdown();
IN_Shutdown();
VID_Shutdown();
}
开发者ID:Pickle,项目名称:yquake2,代码行数:27,代码来源:cl_main.c
示例9: ShowSystem
//-------------------------------------------------------------------------
// ShowSystem()
//-------------------------------------------------------------------------
void ShowSystem()
{
char avail[2][8]={"None","Present"};
MM_Startup ();
CA_Startup ();
IN_Startup ();
PM_Startup ();
SD_Startup ();
fprint(show_text1);
fprint(show_text2);
fprint(show_text3);
fprint(show_text5);
printf(" Mouse: %s\n",avail[MousePresent]);
printf(" Joystick: %s\n",avail[JoysPresent[0]||JoysPresent[1]]);
printf(" AdLib: %s\n",avail[AdLibPresent&&!SoundBlasterPresent]);
printf("Sound Blaster: %s\n",avail[SoundBlasterPresent]);
printf(" Sound Source: %s\n\n",avail[SoundSourcePresent]);
fprint(show_text2);
SD_Shutdown ();
PM_Shutdown ();
IN_Shutdown ();
CA_Shutdown ();
MM_Shutdown ();
}
开发者ID:drhelius,项目名称:bstone-ios,代码行数:32,代码来源:jm_free.cpp
示例10: Host_Shutdown
/*
===============
Host_Shutdown
FIXME: this is a callback from Sys_Quit and Sys_Error. It would be better
to run quit through here before the final handoff to the sys code.
===============
*/
void Host_Shutdown(void)
{
static qboolean isdown = false;
if (isdown)
{
printf ("recursive shutdown\n");
return;
}
isdown = true;
// keep Con_Printf from trying to update the screen
scr_disabled_for_loading = true;
Host_WriteConfiguration ();
#ifdef PROQUAKE_EXTENSION
IPLog_WriteLog (); // JPG 1.05 - ip loggging
#endif
if (con_initialized)
History_Shutdown ();
CDAudio_Shutdown ();
NET_Shutdown ();
S_Shutdown();
IN_Shutdown ();
if (cls.state != ca_dedicated)
{
VID_Shutdown();
}
}
开发者ID:darkduke606,项目名称:Insomnia-ProQuake-Engine,代码行数:39,代码来源:host.c
示例11: Host_Shutdown
/*
===============
Host_Shutdown
FIXME: this is a callback from Sys_Quit and Sys_Error. It would be better
to run quit through here before the final handoff to the sys code.
===============
*/
void Host_Shutdown(void)
{
static qboolean isdown = false;
if (isdown)
{
printf ("recursive shutdown\n");
return;
}
isdown = true;
// keep Con_Printf from trying to update the screen
scr_disabled_for_loading = true;
Host_WriteConfiguration ();
// jkrige - fmod sound system (music)
//CDAudio_Shutdown ();
// jkrige - fmod sound system (music)
NET_Shutdown ();
// jkrige - fmod sound system (system)
FMOD_Shutdown();
// jkrige - fmod sound system (system)
S_Shutdown();
IN_Shutdown ();
if (cls.state != ca_dedicated)
{
VID_Shutdown();
}
}
开发者ID:infernuslord,项目名称:uqe-quake,代码行数:42,代码来源:host.c
示例12: Sys_Quit
void Sys_Quit (void) {
IN_Shutdown();
Com_ShutdownZoneMemory();
Com_ShutdownHunkMemory();
Sys_Exit(0);
}
开发者ID:BSzili,项目名称:OpenJK,代码行数:8,代码来源:sys_unix.cpp
示例13: GLimp_Shutdown
/*
===============
GLimp_Shutdown
===============
*/
void GLimp_Shutdown( void )
{
IN_Shutdown();
SDL_QuitSubSystem( SDL_INIT_VIDEO );
memset( &glConfig, 0, sizeof( glConfig ) );
memset( &glState, 0, sizeof( glState ) );
}
开发者ID:iMp-Rex,项目名称:OpenJK,代码行数:14,代码来源:sdl_glimp.cpp
示例14: Sys_Quit
/*
==============
Sys_Quit
==============
*/
void Sys_Quit( void ) {
// timeEndPeriod( 1 );
IN_Shutdown();
Sys_DestroyConsole();
Q3CE_CloseAll();
exit (0);
}
开发者ID:Jsoucek,项目名称:q3ce,代码行数:14,代码来源:q3ce_main.cpp
示例15: ShutdownId
void ShutdownId (void)
{
US_Shutdown ();
SD_Shutdown ();
PM_Shutdown ();
IN_Shutdown ();
VW_Shutdown ();
CA_Shutdown ();
}
开发者ID:libretro,项目名称:libretro-wolfenstein3d,代码行数:9,代码来源:wl_main.c
示例16: Sys_Quit
/*
==============
Sys_Quit
==============
*/
void Sys_Quit( void ) {
timeEndPeriod( 1 );
IN_Shutdown();
Sys_DestroyConsole();
Com_ShutdownZoneMemory();
Com_ShutdownHunkMemory();
exit (0);
}
开发者ID:Agustinlv,项目名称:BlueHarvest,代码行数:14,代码来源:win_main.cpp
示例17: WIN_Shutdown
/*
===============
GLimp_Shutdown
===============
*/
void WIN_Shutdown( void )
{
Cmd_RemoveCommand("modelist");
Cmd_RemoveCommand("minimize");
IN_Shutdown();
SDL_QuitSubSystem( SDL_INIT_VIDEO );
screen = NULL;
}
开发者ID:BruceJohnJennerLawso,项目名称:OpenJK,代码行数:15,代码来源:sdl_window.cpp
示例18: GLimp_Shutdown
/*
** GLimp_Shutdown
**
** This routine does all OS specific shutdown procedures for the OpenGL
** subsystem. Under OpenGL this means NULLing out the current DC and
** HGLRC, deleting the rendering context, and releasing the DC acquired
** for the window. The state structure is also nulled out.
**
*/
void GLimp_Shutdown( void )
{
IN_Shutdown();
screen = NULL;
memset( &glConfig, 0, sizeof( glConfig ) );
memset( &glState, 0, sizeof( glState ) );
QGL_Shutdown();
}
开发者ID:martinez-zea,项目名称:localconflict,代码行数:19,代码来源:sdl_glimp.c
示例19: ShutdownId
void ShutdownId (void)
{
US_Shutdown (); // This line is completely useless...
SD_Shutdown ();
PM_Shutdown ();
IN_Shutdown ();
VW_Shutdown ();
CA_Shutdown ();
#if defined(GP2X_940)
GP2X_Shutdown();
#endif
}
开发者ID:EricSmekens,项目名称:Wolf3DClient,代码行数:12,代码来源:wl_main.cpp
示例20: IN_Restart_f
void IN_Restart_f(void)
{
if (!host_initialized)
{
// Sanity
Com_Printf("Can't do %s yet\n", Cmd_Argv(0));
return;
}
IN_Shutdown();
IN_Init();
}
开发者ID:jite,项目名称:jquake,代码行数:12,代码来源:in_win.c
注:本文中的IN_Shutdown函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论