⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 sdl_gfxprimitives.h

📁 国外一套很好的游戏代码,款经典的小游戏 希望大家提出宝贵意见 让我们一起进步
💻 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 + -