diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-10-10 22:14:45 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-10-10 22:15:57 +0300 |
commit | aa3f63fd497558a02feb3ddbc44f31eac091f39b (patch) | |
tree | 0e28b9b1f0501dd8be9e1a38db4ec1777fa3fbfa /src/sdl2gfx/SDL2_framerate.h | |
parent | 7c10a6b61e9d06a4ae9cc9f942dfacb6fcfd9d3d (diff) | |
download | mv-aa3f63fd497558a02feb3ddbc44f31eac091f39b.tar.gz mv-aa3f63fd497558a02feb3ddbc44f31eac091f39b.tar.bz2 mv-aa3f63fd497558a02feb3ddbc44f31eac091f39b.tar.xz mv-aa3f63fd497558a02feb3ddbc44f31eac091f39b.zip |
Remove most unused files.
Diffstat (limited to 'src/sdl2gfx/SDL2_framerate.h')
-rw-r--r-- | src/sdl2gfx/SDL2_framerate.h | 110 |
1 files changed, 0 insertions, 110 deletions
diff --git a/src/sdl2gfx/SDL2_framerate.h b/src/sdl2gfx/SDL2_framerate.h deleted file mode 100644 index add1b28c9..000000000 --- a/src/sdl2gfx/SDL2_framerate.h +++ /dev/null @@ -1,110 +0,0 @@ -/* - -SDL2_framerate.h: framerate manager - -Copyright (C) 2012-2014 Andreas Schiffler - -This software is provided 'as-is', without any express or implied -warranty. In no event will the authors be held liable for any damages -arising from the use of this software. - -Permission is granted to anyone to use this software for any purpose, -including commercial applications, and to alter it and redistribute it -freely, subject to the following restrictions: - -1. The origin of this software must not be misrepresented; you must not -claim that you wrote the original software. If you use this software -in a product, an acknowledgment in the product documentation would be -appreciated but is not required. - -2. Altered source versions must be plainly marked as such, and must not be -misrepresented as being the original software. - -3. This notice may not be removed or altered from any source -distribution. - -Andreas Schiffler -- aschiffler at ferzkopp dot net - -Changed for ManaPlus (C) 2013-2017 ManaPlus developers - -*/ - -#ifndef _SDL2_framerate_h -#define _SDL2_framerate_h - -/* Set up for C function definitions, even when using C++ */ -#ifdef __cplusplus -extern "C" -{ -#endif - - /* --- */ - -#include "localconsts.h" - -PRAGMA48(GCC diagnostic push) -PRAGMA48(GCC diagnostic ignored "-Wshadow") -#include <SDL.h> -PRAGMA48(GCC diagnostic pop) - - /* --------- Definitions */ - - /*! - \brief Highest possible rate supported by framerate controller in Hz (1/s). - */ -#define FPS_UPPER_LIMIT 200 - - /*! - \brief Lowest possible rate supported by framerate controller in Hz (1/s). - */ -#define FPS_LOWER_LIMIT 1 - - /*! - \brief Default rate of framerate controller in Hz (1/s). - */ -#define FPS_DEFAULT 30 - - /*! - \brief Structure holding the state and timing information of the framerate controller. - */ - typedef struct - { - Uint32 framecount; - float rateticks; - Uint32 baseticks; - Uint32 lastticks; - Uint32 rate; - } FPSmanager; - - /* ---- Function Prototypes */ - -#ifdef _MSC_VER -# if defined(DLL_EXPORT) && !defined(LIBSDL2_GFX_DLL_IMPORT) -# define SDL2_FRAMERATE_SCOPE __declspec(dllexport) -# else -# ifdef LIBSDL2_GFX_DLL_IMPORT -# define SDL2_FRAMERATE_SCOPE __declspec(dllimport) -# endif -# endif -#endif -#ifndef SDL2_FRAMERATE_SCOPE -# define SDL2_FRAMERATE_SCOPE extern -#endif - - /* Functions return 0 or value for sucess and -1 for error */ - - SDL2_FRAMERATE_SCOPE void SDL_initFramerate(FPSmanager * manager); - SDL2_FRAMERATE_SCOPE int SDL_setFramerate(FPSmanager * manager, - Uint32 rate); - SDL2_FRAMERATE_SCOPE int SDL_getFramerate(FPSmanager * manager); - SDL2_FRAMERATE_SCOPE int SDL_getFramecount(FPSmanager * manager); - SDL2_FRAMERATE_SCOPE Uint32 SDL_framerateDelay(FPSmanager * manager); - - /* --- */ - - /* Ends C function definitions when using C++ */ -#ifdef __cplusplus -} -#endif - -#endif /* _SDL2_framerate_h */ |