Mercurial > sdl-ios-xcode
comparison include/SDL_video.h @ 3025:54fac87e1f34
Added an API to enable/disable the screen saver.
The screensaver is disabled by default when using SDL 1.2 compatibility.
Use the new XScreenSaver extension, removed unused DPMS extension.
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Mon, 12 Jan 2009 06:19:05 +0000 |
parents | 502adab079a4 |
children | 4e4f47c5f941 |
comparison
equal
deleted
inserted
replaced
3024:1a08749aebce | 3025:54fac87e1f34 |
---|---|
1309 * | 1309 * |
1310 * \sa SDL_CreateRenderer() | 1310 * \sa SDL_CreateRenderer() |
1311 */ | 1311 */ |
1312 extern DECLSPEC void SDLCALL SDL_DestroyRenderer(SDL_WindowID windowID); | 1312 extern DECLSPEC void SDLCALL SDL_DestroyRenderer(SDL_WindowID windowID); |
1313 | 1313 |
1314 /** | |
1315 * \fn SDL_bool SDL_IsScreenSaverEnabled(); | |
1316 * | |
1317 * \brief Returns whether the screensaver is currently enabled (default off). | |
1318 * | |
1319 * \sa SDL_EnableScreenSaver() | |
1320 * \sa SDL_DisableScreenSaver() | |
1321 */ | |
1322 extern DECLSPEC SDL_bool SDLCALL SDL_IsScreenSaverEnabled(); | |
1323 | |
1324 /** | |
1325 * \fn void SDL_EnableScreenSaver(); | |
1326 * | |
1327 * \brief Allow the screen to be blanked by a screensaver | |
1328 * | |
1329 * \sa SDL_IsScreenSaverEnabled() | |
1330 * \sa SDL_DisableScreenSaver() | |
1331 */ | |
1332 extern DECLSPEC void SDLCALL SDL_EnableScreenSaver(); | |
1333 | |
1334 /** | |
1335 * \fn void SDL_DisableScreenSaver(); | |
1336 * | |
1337 * \brief Prevent the screen from being blanked by a screensaver | |
1338 * | |
1339 * \sa SDL_IsScreenSaverEnabled() | |
1340 * \sa SDL_EnableScreenSaver() | |
1341 */ | |
1342 extern DECLSPEC void SDLCALL SDL_DisableScreenSaver(); | |
1343 | |
1314 | 1344 |
1315 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ | 1345 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ |
1316 /* OpenGL support functions. */ | 1346 /* OpenGL support functions. */ |
1317 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ | 1347 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ |
1318 | 1348 |