📄 sdl_gfxprimitives.h
字号:
/* SDL_gfxPrimitives: graphics primitives for SDL LGPL (c) A. Schiffler */#ifndef _SDL_gfxPrimitives_h#define _SDL_gfxPrimitives_h#include <math.h>#ifndef M_PI#define M_PI 3.141592654#endif#include <SDL.h>/* Set up for C function definitions, even when using C++ */#ifdef __cplusplusextern "C" {#endif/* ----- Versioning */#define SDL_GFXPRIMITIVES_MAJOR 1#define SDL_GFXPRIMITIVES_MINOR 5/* ----- W32 DLL interface */#ifdef WIN32#ifdef BUILD_DLL#define DLLINTERFACE __declspec(dllexport)#else#define DLLINTERFACE __declspec(dllimport)#endif#else#define DLLINTERFACE#endif/* ----- Prototypes *//* Note: all ___Color routines expect the color to be in format 0xRRGGBBAA *//* Pixel */ DLLINTERFACE int fastPixelColor(SDL_Surface * dst, Sint16 x, Sint16 y, Uint32 color);/* Line */ DLLINTERFACE int lineColor(SDL_Surface * dst, Sint16 x1, Sint16 y1, Sint16 x2, Sint16 y2, Uint32 color);/* Ends C function definitions when using C++ */#ifdef __cplusplus};#endif#endif /* _SDL_gfxPrimitives_h */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -