sdl_gfxprimitives.h

来自「国外一套很好的游戏代码,款经典的小游戏 希望大家提出宝贵意见 让我们一起进步」· C头文件 代码 · 共 60 行

H
60
字号
/*  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 + =
减小字号Ctrl + -
显示快捷键?