- Timestamp:
- Apr 18, 2016, 11:16:56 PM (9 years ago)
- Location:
- sdl_gfx/trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified sdl_gfx/trunk/SDL_framerate.h ¶
r1430 r1538 70 70 /* ---- Function Prototypes */ 71 71 72 #if def _MSC_VER72 #if defined(_MSC_VER) || defined(__EMX__) 73 73 # if defined(DLL_EXPORT) && !defined(LIBSDL_GFX_DLL_IMPORT) 74 74 # define SDL_FRAMERATE_SCOPE __declspec(dllexport) … … 85 85 /* Functions return 0 or value for sucess and -1 for error */ 86 86 87 SDL_FRAMERATE_SCOPE void SDL _initFramerate(FPSmanager * manager);88 SDL_FRAMERATE_SCOPE int SDL _setFramerate(FPSmanager * manager, Uint32 rate);89 SDL_FRAMERATE_SCOPE int SDL _getFramerate(FPSmanager * manager);90 SDL_FRAMERATE_SCOPE int SDL _getFramecount(FPSmanager * manager);91 SDL_FRAMERATE_SCOPE Uint32 SDL _framerateDelay(FPSmanager * manager);87 SDL_FRAMERATE_SCOPE void SDLCALL SDL_initFramerate(FPSmanager * manager); 88 SDL_FRAMERATE_SCOPE int SDLCALL SDL_setFramerate(FPSmanager * manager, Uint32 rate); 89 SDL_FRAMERATE_SCOPE int SDLCALL SDL_getFramerate(FPSmanager * manager); 90 SDL_FRAMERATE_SCOPE int SDLCALL SDL_getFramecount(FPSmanager * manager); 91 SDL_FRAMERATE_SCOPE Uint32 SDLCALL SDL_framerateDelay(FPSmanager * manager); 92 92 93 93 /* --- */ -
TabularUnified sdl_gfx/trunk/SDL_gfxBlitFunc.h ¶
r1430 r1538 47 47 /* ---- Function Prototypes */ 48 48 49 #if def _MSC_VER49 #if defined(_MSC_VER) || defined(__EMX__) 50 50 # if defined(DLL_EXPORT) && !defined(LIBSDL_GFX_DLL_IMPORT) 51 51 # define SDL_GFXBLITFUNC_SCOPE __declspec(dllexport) … … 61 61 62 62 63 SDL_GFXBLITFUNC_SCOPE int SDL _gfxBlitRGBA(SDL_Surface * src, SDL_Rect * srcrect, SDL_Surface * dst, SDL_Rect * dstrect);63 SDL_GFXBLITFUNC_SCOPE int SDLCALL SDL_gfxBlitRGBA(SDL_Surface * src, SDL_Rect * srcrect, SDL_Surface * dst, SDL_Rect * dstrect); 64 64 65 SDL_GFXBLITFUNC_SCOPE int SDL _gfxSetAlpha(SDL_Surface * src, Uint8 a);65 SDL_GFXBLITFUNC_SCOPE int SDLCALL SDL_gfxSetAlpha(SDL_Surface * src, Uint8 a); 66 66 67 SDL_GFXBLITFUNC_SCOPE int SDL _gfxMultiplyAlpha(SDL_Surface * src, Uint8 a);67 SDL_GFXBLITFUNC_SCOPE int SDLCALL SDL_gfxMultiplyAlpha(SDL_Surface * src, Uint8 a); 68 68 69 69 /* -------- Macros */ -
TabularUnified sdl_gfx/trunk/SDL_gfxPrimitives.h ¶
r1430 r1538 52 52 /* ---- Function Prototypes */ 53 53 54 #if def _MSC_VER54 #if define(_MSC_VER) || define(__EMX__) 55 55 # if defined(DLL_EXPORT) && !defined(LIBSDL_GFX_DLL_IMPORT) 56 56 # define SDL_GFXPRIMITIVES_SCOPE __declspec(dllexport) … … 69 69 /* Pixel */ 70 70 71 SDL_GFXPRIMITIVES_SCOPE int pixelColor(SDL_Surface * dst, Sint16 x, Sint16 y, Uint32 color);72 SDL_GFXPRIMITIVES_SCOPE int pixelRGBA(SDL_Surface * dst, Sint16 x, Sint16 y, Uint8 r, Uint8 g, Uint8 b, Uint8 a);71 SDL_GFXPRIMITIVES_SCOPE int SDLCALL pixelColor(SDL_Surface * dst, Sint16 x, Sint16 y, Uint32 color); 72 SDL_GFXPRIMITIVES_SCOPE int SDLCALL pixelRGBA(SDL_Surface * dst, Sint16 x, Sint16 y, Uint8 r, Uint8 g, Uint8 b, Uint8 a); 73 73 74 74 /* Horizontal line */ 75 75 76 SDL_GFXPRIMITIVES_SCOPE int hlineColor(SDL_Surface * dst, Sint16 x1, Sint16 x2, Sint16 y, Uint32 color);77 SDL_GFXPRIMITIVES_SCOPE int hlineRGBA(SDL_Surface * dst, Sint16 x1, Sint16 x2, Sint16 y, Uint8 r, Uint8 g, Uint8 b, Uint8 a);76 SDL_GFXPRIMITIVES_SCOPE int SDLCALL hlineColor(SDL_Surface * dst, Sint16 x1, Sint16 x2, Sint16 y, Uint32 color); 77 SDL_GFXPRIMITIVES_SCOPE int SDLCALL hlineRGBA(SDL_Surface * dst, Sint16 x1, Sint16 x2, Sint16 y, Uint8 r, Uint8 g, Uint8 b, Uint8 a); 78 78 79 79 /* Vertical line */ 80 80 81 SDL_GFXPRIMITIVES_SCOPE int vlineColor(SDL_Surface * dst, Sint16 x, Sint16 y1, Sint16 y2, Uint32 color);82 SDL_GFXPRIMITIVES_SCOPE int vlineRGBA(SDL_Surface * dst, Sint16 x, Sint16 y1, Sint16 y2, Uint8 r, Uint8 g, Uint8 b, Uint8 a);81 SDL_GFXPRIMITIVES_SCOPE int SDLCALL vlineColor(SDL_Surface * dst, Sint16 x, Sint16 y1, Sint16 y2, Uint32 color); 82 SDL_GFXPRIMITIVES_SCOPE int SDLCALL vlineRGBA(SDL_Surface * dst, Sint16 x, Sint16 y1, Sint16 y2, Uint8 r, Uint8 g, Uint8 b, Uint8 a); 83 83 84 84 /* Rectangle */ 85 85 86 SDL_GFXPRIMITIVES_SCOPE int rectangleColor(SDL_Surface * dst, Sint16 x1, Sint16 y1, Sint16 x2, Sint16 y2, Uint32 color);87 SDL_GFXPRIMITIVES_SCOPE int rectangleRGBA(SDL_Surface * dst, Sint16 x1, Sint16 y1,86 SDL_GFXPRIMITIVES_SCOPE int SDLCALL rectangleColor(SDL_Surface * dst, Sint16 x1, Sint16 y1, Sint16 x2, Sint16 y2, Uint32 color); 87 SDL_GFXPRIMITIVES_SCOPE int SDLCALL rectangleRGBA(SDL_Surface * dst, Sint16 x1, Sint16 y1, 88 88 Sint16 x2, Sint16 y2, Uint8 r, Uint8 g, Uint8 b, Uint8 a); 89 89 90 90 /* Rounded-Corner Rectangle */ 91 91 92 SDL_GFXPRIMITIVES_SCOPE int roundedRectangleColor(SDL_Surface * dst, Sint16 x1, Sint16 y1, Sint16 x2, Sint16 y2, Sint16 rad, Uint32 color);93 SDL_GFXPRIMITIVES_SCOPE int roundedRectangleRGBA(SDL_Surface * dst, Sint16 x1, Sint16 y1,92 SDL_GFXPRIMITIVES_SCOPE int SDLCALL roundedRectangleColor(SDL_Surface * dst, Sint16 x1, Sint16 y1, Sint16 x2, Sint16 y2, Sint16 rad, Uint32 color); 93 SDL_GFXPRIMITIVES_SCOPE int SDLCALL roundedRectangleRGBA(SDL_Surface * dst, Sint16 x1, Sint16 y1, 94 94 Sint16 x2, Sint16 y2, Sint16 rad, Uint8 r, Uint8 g, Uint8 b, Uint8 a); 95 95 96 96 /* Filled rectangle (Box) */ 97 97 98 SDL_GFXPRIMITIVES_SCOPE int boxColor(SDL_Surface * dst, Sint16 x1, Sint16 y1, Sint16 x2, Sint16 y2, Uint32 color);99 SDL_GFXPRIMITIVES_SCOPE int boxRGBA(SDL_Surface * dst, Sint16 x1, Sint16 y1, Sint16 x2,98 SDL_GFXPRIMITIVES_SCOPE int SDLCALL boxColor(SDL_Surface * dst, Sint16 x1, Sint16 y1, Sint16 x2, Sint16 y2, Uint32 color); 99 SDL_GFXPRIMITIVES_SCOPE int SDLCALL boxRGBA(SDL_Surface * dst, Sint16 x1, Sint16 y1, Sint16 x2, 100 100 Sint16 y2, Uint8 r, Uint8 g, Uint8 b, Uint8 a); 101 101 102 102 /* Rounded-Corner Filled rectangle (Box) */ 103 103 104 SDL_GFXPRIMITIVES_SCOPE int roundedBoxColor(SDL_Surface * dst, Sint16 x1, Sint16 y1, Sint16 x2, Sint16 y2, Sint16 rad, Uint32 color);105 SDL_GFXPRIMITIVES_SCOPE int roundedBoxRGBA(SDL_Surface * dst, Sint16 x1, Sint16 y1, Sint16 x2,104 SDL_GFXPRIMITIVES_SCOPE int SDLCALL roundedBoxColor(SDL_Surface * dst, Sint16 x1, Sint16 y1, Sint16 x2, Sint16 y2, Sint16 rad, Uint32 color); 105 SDL_GFXPRIMITIVES_SCOPE int SDLCALL roundedBoxRGBA(SDL_Surface * dst, Sint16 x1, Sint16 y1, Sint16 x2, 106 106 Sint16 y2, Sint16 rad, Uint8 r, Uint8 g, Uint8 b, Uint8 a); 107 107 108 108 /* Line */ 109 109 110 SDL_GFXPRIMITIVES_SCOPE int lineColor(SDL_Surface * dst, Sint16 x1, Sint16 y1, Sint16 x2, Sint16 y2, Uint32 color);111 SDL_GFXPRIMITIVES_SCOPE int lineRGBA(SDL_Surface * dst, Sint16 x1, Sint16 y1,110 SDL_GFXPRIMITIVES_SCOPE int SDLCALL lineColor(SDL_Surface * dst, Sint16 x1, Sint16 y1, Sint16 x2, Sint16 y2, Uint32 color); 111 SDL_GFXPRIMITIVES_SCOPE int SDLCALL lineRGBA(SDL_Surface * dst, Sint16 x1, Sint16 y1, 112 112 Sint16 x2, Sint16 y2, Uint8 r, Uint8 g, Uint8 b, Uint8 a); 113 113 114 114 /* AA Line */ 115 115 116 SDL_GFXPRIMITIVES_SCOPE int aalineColor(SDL_Surface * dst, Sint16 x1, Sint16 y1, Sint16 x2, Sint16 y2, Uint32 color);117 SDL_GFXPRIMITIVES_SCOPE int aalineRGBA(SDL_Surface * dst, Sint16 x1, Sint16 y1,116 SDL_GFXPRIMITIVES_SCOPE int SDLCALL aalineColor(SDL_Surface * dst, Sint16 x1, Sint16 y1, Sint16 x2, Sint16 y2, Uint32 color); 117 SDL_GFXPRIMITIVES_SCOPE int SDLCALL aalineRGBA(SDL_Surface * dst, Sint16 x1, Sint16 y1, 118 118 Sint16 x2, Sint16 y2, Uint8 r, Uint8 g, Uint8 b, Uint8 a); 119 119 120 120 /* Thick Line */ 121 SDL_GFXPRIMITIVES_SCOPE int thickLineColor(SDL_Surface * dst, Sint16 x1, Sint16 y1, Sint16 x2, Sint16 y2,121 SDL_GFXPRIMITIVES_SCOPE int SDLCALL thickLineColor(SDL_Surface * dst, Sint16 x1, Sint16 y1, Sint16 x2, Sint16 y2, 122 122 Uint8 width, Uint32 color); 123 SDL_GFXPRIMITIVES_SCOPE int thickLineRGBA(SDL_Surface * dst, Sint16 x1, Sint16 y1, Sint16 x2, Sint16 y2,123 SDL_GFXPRIMITIVES_SCOPE int SDLCALL thickLineRGBA(SDL_Surface * dst, Sint16 x1, Sint16 y1, Sint16 x2, Sint16 y2, 124 124 Uint8 width, Uint8 r, Uint8 g, Uint8 b, Uint8 a); 125 125 126 126 /* Circle */ 127 127 128 SDL_GFXPRIMITIVES_SCOPE int circleColor(SDL_Surface * dst, Sint16 x, Sint16 y, Sint16 rad, Uint32 color);129 SDL_GFXPRIMITIVES_SCOPE int circleRGBA(SDL_Surface * dst, Sint16 x, Sint16 y, Sint16 rad, Uint8 r, Uint8 g, Uint8 b, Uint8 a);128 SDL_GFXPRIMITIVES_SCOPE int SDLCALL circleColor(SDL_Surface * dst, Sint16 x, Sint16 y, Sint16 rad, Uint32 color); 129 SDL_GFXPRIMITIVES_SCOPE int SDLCALL circleRGBA(SDL_Surface * dst, Sint16 x, Sint16 y, Sint16 rad, Uint8 r, Uint8 g, Uint8 b, Uint8 a); 130 130 131 131 /* Arc */ 132 132 133 SDL_GFXPRIMITIVES_SCOPE int arcColor(SDL_Surface * dst, Sint16 x, Sint16 y, Sint16 rad, Sint16 start, Sint16 end, Uint32 color);134 SDL_GFXPRIMITIVES_SCOPE int arcRGBA(SDL_Surface * dst, Sint16 x, Sint16 y, Sint16 rad, Sint16 start, Sint16 end,133 SDL_GFXPRIMITIVES_SCOPE int SDLCALL arcColor(SDL_Surface * dst, Sint16 x, Sint16 y, Sint16 rad, Sint16 start, Sint16 end, Uint32 color); 134 SDL_GFXPRIMITIVES_SCOPE int SDLCALL arcRGBA(SDL_Surface * dst, Sint16 x, Sint16 y, Sint16 rad, Sint16 start, Sint16 end, 135 135 Uint8 r, Uint8 g, Uint8 b, Uint8 a); 136 136 137 137 /* AA Circle */ 138 138 139 SDL_GFXPRIMITIVES_SCOPE int aacircleColor(SDL_Surface * dst, Sint16 x, Sint16 y, Sint16 rad, Uint32 color);140 SDL_GFXPRIMITIVES_SCOPE int aacircleRGBA(SDL_Surface * dst, Sint16 x, Sint16 y,139 SDL_GFXPRIMITIVES_SCOPE int SDLCALL aacircleColor(SDL_Surface * dst, Sint16 x, Sint16 y, Sint16 rad, Uint32 color); 140 SDL_GFXPRIMITIVES_SCOPE int SDLCALL aacircleRGBA(SDL_Surface * dst, Sint16 x, Sint16 y, 141 141 Sint16 rad, Uint8 r, Uint8 g, Uint8 b, Uint8 a); 142 142 143 143 /* Filled Circle */ 144 144 145 SDL_GFXPRIMITIVES_SCOPE int filledCircleColor(SDL_Surface * dst, Sint16 x, Sint16 y, Sint16 r, Uint32 color);146 SDL_GFXPRIMITIVES_SCOPE int filledCircleRGBA(SDL_Surface * dst, Sint16 x, Sint16 y,145 SDL_GFXPRIMITIVES_SCOPE int SDLCALL filledCircleColor(SDL_Surface * dst, Sint16 x, Sint16 y, Sint16 r, Uint32 color); 146 SDL_GFXPRIMITIVES_SCOPE int SDLCALL filledCircleRGBA(SDL_Surface * dst, Sint16 x, Sint16 y, 147 147 Sint16 rad, Uint8 r, Uint8 g, Uint8 b, Uint8 a); 148 148 149 149 /* Ellipse */ 150 150 151 SDL_GFXPRIMITIVES_SCOPE int ellipseColor(SDL_Surface * dst, Sint16 x, Sint16 y, Sint16 rx, Sint16 ry, Uint32 color);152 SDL_GFXPRIMITIVES_SCOPE int ellipseRGBA(SDL_Surface * dst, Sint16 x, Sint16 y,151 SDL_GFXPRIMITIVES_SCOPE int SDLCALL ellipseColor(SDL_Surface * dst, Sint16 x, Sint16 y, Sint16 rx, Sint16 ry, Uint32 color); 152 SDL_GFXPRIMITIVES_SCOPE int SDLCALL ellipseRGBA(SDL_Surface * dst, Sint16 x, Sint16 y, 153 153 Sint16 rx, Sint16 ry, Uint8 r, Uint8 g, Uint8 b, Uint8 a); 154 154 155 155 /* AA Ellipse */ 156 156 157 SDL_GFXPRIMITIVES_SCOPE int aaellipseColor(SDL_Surface * dst, Sint16 x, Sint16 y, Sint16 rx, Sint16 ry, Uint32 color);158 SDL_GFXPRIMITIVES_SCOPE int aaellipseRGBA(SDL_Surface * dst, Sint16 x, Sint16 y,157 SDL_GFXPRIMITIVES_SCOPE int SDLCALL aaellipseColor(SDL_Surface * dst, Sint16 x, Sint16 y, Sint16 rx, Sint16 ry, Uint32 color); 158 SDL_GFXPRIMITIVES_SCOPE int SDLCALL aaellipseRGBA(SDL_Surface * dst, Sint16 x, Sint16 y, 159 159 Sint16 rx, Sint16 ry, Uint8 r, Uint8 g, Uint8 b, Uint8 a); 160 160 161 161 /* Filled Ellipse */ 162 162 163 SDL_GFXPRIMITIVES_SCOPE int filledEllipseColor(SDL_Surface * dst, Sint16 x, Sint16 y, Sint16 rx, Sint16 ry, Uint32 color);164 SDL_GFXPRIMITIVES_SCOPE int filledEllipseRGBA(SDL_Surface * dst, Sint16 x, Sint16 y,163 SDL_GFXPRIMITIVES_SCOPE int SDLCALL filledEllipseColor(SDL_Surface * dst, Sint16 x, Sint16 y, Sint16 rx, Sint16 ry, Uint32 color); 164 SDL_GFXPRIMITIVES_SCOPE int SDLCALL filledEllipseRGBA(SDL_Surface * dst, Sint16 x, Sint16 y, 165 165 Sint16 rx, Sint16 ry, Uint8 r, Uint8 g, Uint8 b, Uint8 a); 166 166 167 167 /* Pie */ 168 168 169 SDL_GFXPRIMITIVES_SCOPE int pieColor(SDL_Surface * dst, Sint16 x, Sint16 y, Sint16 rad,169 SDL_GFXPRIMITIVES_SCOPE int SDLCALL pieColor(SDL_Surface * dst, Sint16 x, Sint16 y, Sint16 rad, 170 170 Sint16 start, Sint16 end, Uint32 color); 171 SDL_GFXPRIMITIVES_SCOPE int pieRGBA(SDL_Surface * dst, Sint16 x, Sint16 y, Sint16 rad,171 SDL_GFXPRIMITIVES_SCOPE int SDLCALL pieRGBA(SDL_Surface * dst, Sint16 x, Sint16 y, Sint16 rad, 172 172 Sint16 start, Sint16 end, Uint8 r, Uint8 g, Uint8 b, Uint8 a); 173 173 174 174 /* Filled Pie */ 175 175 176 SDL_GFXPRIMITIVES_SCOPE int filledPieColor(SDL_Surface * dst, Sint16 x, Sint16 y, Sint16 rad,176 SDL_GFXPRIMITIVES_SCOPE int SDLCALL filledPieColor(SDL_Surface * dst, Sint16 x, Sint16 y, Sint16 rad, 177 177 Sint16 start, Sint16 end, Uint32 color); 178 SDL_GFXPRIMITIVES_SCOPE int filledPieRGBA(SDL_Surface * dst, Sint16 x, Sint16 y, Sint16 rad,178 SDL_GFXPRIMITIVES_SCOPE int SDLCALL filledPieRGBA(SDL_Surface * dst, Sint16 x, Sint16 y, Sint16 rad, 179 179 Sint16 start, Sint16 end, Uint8 r, Uint8 g, Uint8 b, Uint8 a); 180 180 181 181 /* Trigon */ 182 182 183 SDL_GFXPRIMITIVES_SCOPE int trigonColor(SDL_Surface * dst, Sint16 x1, Sint16 y1, Sint16 x2, Sint16 y2, Sint16 x3, Sint16 y3, Uint32 color);184 SDL_GFXPRIMITIVES_SCOPE int trigonRGBA(SDL_Surface * dst, Sint16 x1, Sint16 y1, Sint16 x2, Sint16 y2, Sint16 x3, Sint16 y3,183 SDL_GFXPRIMITIVES_SCOPE int SDLCALL trigonColor(SDL_Surface * dst, Sint16 x1, Sint16 y1, Sint16 x2, Sint16 y2, Sint16 x3, Sint16 y3, Uint32 color); 184 SDL_GFXPRIMITIVES_SCOPE int SDLCALL trigonRGBA(SDL_Surface * dst, Sint16 x1, Sint16 y1, Sint16 x2, Sint16 y2, Sint16 x3, Sint16 y3, 185 185 Uint8 r, Uint8 g, Uint8 b, Uint8 a); 186 186 187 187 /* AA-Trigon */ 188 188 189 SDL_GFXPRIMITIVES_SCOPE int aatrigonColor(SDL_Surface * dst, Sint16 x1, Sint16 y1, Sint16 x2, Sint16 y2, Sint16 x3, Sint16 y3, Uint32 color);190 SDL_GFXPRIMITIVES_SCOPE int aatrigonRGBA(SDL_Surface * dst, Sint16 x1, Sint16 y1, Sint16 x2, Sint16 y2, Sint16 x3, Sint16 y3,189 SDL_GFXPRIMITIVES_SCOPE int SDLCALL aatrigonColor(SDL_Surface * dst, Sint16 x1, Sint16 y1, Sint16 x2, Sint16 y2, Sint16 x3, Sint16 y3, Uint32 color); 190 SDL_GFXPRIMITIVES_SCOPE int SDLCALL aatrigonRGBA(SDL_Surface * dst, Sint16 x1, Sint16 y1, Sint16 x2, Sint16 y2, Sint16 x3, Sint16 y3, 191 191 Uint8 r, Uint8 g, Uint8 b, Uint8 a); 192 192 193 193 /* Filled Trigon */ 194 194 195 SDL_GFXPRIMITIVES_SCOPE int filledTrigonColor(SDL_Surface * dst, Sint16 x1, Sint16 y1, Sint16 x2, Sint16 y2, Sint16 x3, Sint16 y3, Uint32 color);196 SDL_GFXPRIMITIVES_SCOPE int filledTrigonRGBA(SDL_Surface * dst, Sint16 x1, Sint16 y1, Sint16 x2, Sint16 y2, Sint16 x3, Sint16 y3,195 SDL_GFXPRIMITIVES_SCOPE int SDLCALL filledTrigonColor(SDL_Surface * dst, Sint16 x1, Sint16 y1, Sint16 x2, Sint16 y2, Sint16 x3, Sint16 y3, Uint32 color); 196 SDL_GFXPRIMITIVES_SCOPE int SDLCALL filledTrigonRGBA(SDL_Surface * dst, Sint16 x1, Sint16 y1, Sint16 x2, Sint16 y2, Sint16 x3, Sint16 y3, 197 197 Uint8 r, Uint8 g, Uint8 b, Uint8 a); 198 198 199 199 /* Polygon */ 200 200 201 SDL_GFXPRIMITIVES_SCOPE int polygonColor(SDL_Surface * dst, const Sint16 * vx, const Sint16 * vy, int n, Uint32 color);202 SDL_GFXPRIMITIVES_SCOPE int polygonRGBA(SDL_Surface * dst, const Sint16 * vx, const Sint16 * vy,201 SDL_GFXPRIMITIVES_SCOPE int SDLCALL polygonColor(SDL_Surface * dst, const Sint16 * vx, const Sint16 * vy, int n, Uint32 color); 202 SDL_GFXPRIMITIVES_SCOPE int SDLCALL polygonRGBA(SDL_Surface * dst, const Sint16 * vx, const Sint16 * vy, 203 203 int n, Uint8 r, Uint8 g, Uint8 b, Uint8 a); 204 204 205 205 /* AA-Polygon */ 206 206 207 SDL_GFXPRIMITIVES_SCOPE int aapolygonColor(SDL_Surface * dst, const Sint16 * vx, const Sint16 * vy, int n, Uint32 color);208 SDL_GFXPRIMITIVES_SCOPE int aapolygonRGBA(SDL_Surface * dst, const Sint16 * vx, const Sint16 * vy,207 SDL_GFXPRIMITIVES_SCOPE int SDLCALL aapolygonColor(SDL_Surface * dst, const Sint16 * vx, const Sint16 * vy, int n, Uint32 color); 208 SDL_GFXPRIMITIVES_SCOPE int SDLCALL aapolygonRGBA(SDL_Surface * dst, const Sint16 * vx, const Sint16 * vy, 209 209 int n, Uint8 r, Uint8 g, Uint8 b, Uint8 a); 210 210 211 211 /* Filled Polygon */ 212 212 213 SDL_GFXPRIMITIVES_SCOPE int filledPolygonColor(SDL_Surface * dst, const Sint16 * vx, const Sint16 * vy, int n, Uint32 color);214 SDL_GFXPRIMITIVES_SCOPE int filledPolygonRGBA(SDL_Surface * dst, const Sint16 * vx,213 SDL_GFXPRIMITIVES_SCOPE int SDLCALL filledPolygonColor(SDL_Surface * dst, const Sint16 * vx, const Sint16 * vy, int n, Uint32 color); 214 SDL_GFXPRIMITIVES_SCOPE int SDLCALL filledPolygonRGBA(SDL_Surface * dst, const Sint16 * vx, 215 215 const Sint16 * vy, int n, Uint8 r, Uint8 g, Uint8 b, Uint8 a); 216 SDL_GFXPRIMITIVES_SCOPE int texturedPolygon(SDL_Surface * dst, const Sint16 * vx, const Sint16 * vy, int n, SDL_Surface * texture,int texture_dx,int texture_dy);216 SDL_GFXPRIMITIVES_SCOPE int SDLCALL texturedPolygon(SDL_Surface * dst, const Sint16 * vx, const Sint16 * vy, int n, SDL_Surface * texture,int texture_dx,int texture_dy); 217 217 218 218 /* (Note: These MT versions are required for multi-threaded operation.) */ 219 219 220 SDL_GFXPRIMITIVES_SCOPE int filledPolygonColorMT(SDL_Surface * dst, const Sint16 * vx, const Sint16 * vy, int n, Uint32 color, int **polyInts, int *polyAllocated);221 SDL_GFXPRIMITIVES_SCOPE int filledPolygonRGBAMT(SDL_Surface * dst, const Sint16 * vx,220 SDL_GFXPRIMITIVES_SCOPE int SDLCALL filledPolygonColorMT(SDL_Surface * dst, const Sint16 * vx, const Sint16 * vy, int n, Uint32 color, int **polyInts, int *polyAllocated); 221 SDL_GFXPRIMITIVES_SCOPE int SDLCALL filledPolygonRGBAMT(SDL_Surface * dst, const Sint16 * vx, 222 222 const Sint16 * vy, int n, Uint8 r, Uint8 g, Uint8 b, Uint8 a, 223 223 int **polyInts, int *polyAllocated); 224 SDL_GFXPRIMITIVES_SCOPE int texturedPolygonMT(SDL_Surface * dst, const Sint16 * vx, const Sint16 * vy, int n, SDL_Surface * texture,int texture_dx,int texture_dy, int **polyInts, int *polyAllocated);224 SDL_GFXPRIMITIVES_SCOPE int SDLCALL texturedPolygonMT(SDL_Surface * dst, const Sint16 * vx, const Sint16 * vy, int n, SDL_Surface * texture,int texture_dx,int texture_dy, int **polyInts, int *polyAllocated); 225 225 226 226 /* Bezier */ 227 227 228 SDL_GFXPRIMITIVES_SCOPE int bezierColor(SDL_Surface * dst, const Sint16 * vx, const Sint16 * vy, int n, int s, Uint32 color);229 SDL_GFXPRIMITIVES_SCOPE int bezierRGBA(SDL_Surface * dst, const Sint16 * vx, const Sint16 * vy,228 SDL_GFXPRIMITIVES_SCOPE int SDLCALL bezierColor(SDL_Surface * dst, const Sint16 * vx, const Sint16 * vy, int n, int s, Uint32 color); 229 SDL_GFXPRIMITIVES_SCOPE int SDLCALL bezierRGBA(SDL_Surface * dst, const Sint16 * vx, const Sint16 * vy, 230 230 int n, int s, Uint8 r, Uint8 g, Uint8 b, Uint8 a); 231 231 232 232 /* Characters/Strings */ 233 233 234 SDL_GFXPRIMITIVES_SCOPE void gfxPrimitivesSetFont(const void *fontdata, Uint32 cw, Uint32 ch);235 SDL_GFXPRIMITIVES_SCOPE void gfxPrimitivesSetFontRotation(Uint32 rotation);236 SDL_GFXPRIMITIVES_SCOPE int characterColor(SDL_Surface * dst, Sint16 x, Sint16 y, char c, Uint32 color);237 SDL_GFXPRIMITIVES_SCOPE int characterRGBA(SDL_Surface * dst, Sint16 x, Sint16 y, char c, Uint8 r, Uint8 g, Uint8 b, Uint8 a);238 SDL_GFXPRIMITIVES_SCOPE int stringColor(SDL_Surface * dst, Sint16 x, Sint16 y, const char *s, Uint32 color);239 SDL_GFXPRIMITIVES_SCOPE int stringRGBA(SDL_Surface * dst, Sint16 x, Sint16 y, const char *s, Uint8 r, Uint8 g, Uint8 b, Uint8 a);234 SDL_GFXPRIMITIVES_SCOPE void SDLCALL gfxPrimitivesSetFont(const void *fontdata, Uint32 cw, Uint32 ch); 235 SDL_GFXPRIMITIVES_SCOPE void SDLCALL gfxPrimitivesSetFontRotation(Uint32 rotation); 236 SDL_GFXPRIMITIVES_SCOPE int SDLCALL characterColor(SDL_Surface * dst, Sint16 x, Sint16 y, char c, Uint32 color); 237 SDL_GFXPRIMITIVES_SCOPE int SDLCALL characterRGBA(SDL_Surface * dst, Sint16 x, Sint16 y, char c, Uint8 r, Uint8 g, Uint8 b, Uint8 a); 238 SDL_GFXPRIMITIVES_SCOPE int SDLCALL stringColor(SDL_Surface * dst, Sint16 x, Sint16 y, const char *s, Uint32 color); 239 SDL_GFXPRIMITIVES_SCOPE int SDLCALL stringRGBA(SDL_Surface * dst, Sint16 x, Sint16 y, const char *s, Uint8 r, Uint8 g, Uint8 b, Uint8 a); 240 240 241 241 /* Ends C function definitions when using C++ */ -
TabularUnified sdl_gfx/trunk/SDL_imageFilter.h ¶
r1430 r1538 38 38 /* ---- Function Prototypes */ 39 39 40 #if def _MSC_VER40 #if defined(_MSC_VER) || defined(__EMX__) 41 41 # if defined(DLL_EXPORT) && !defined(LIBSDL_GFX_DLL_IMPORT) 42 42 # define SDL_IMAGEFILTER_SCOPE __declspec(dllexport) … … 57 57 58 58 // Detect MMX capability in CPU 59 SDL_IMAGEFILTER_SCOPE int SDL _imageFilterMMXdetect(void);59 SDL_IMAGEFILTER_SCOPE int SDLCALL SDL_imageFilterMMXdetect(void); 60 60 61 61 // Force use of MMX off (or turn possible use back on) 62 SDL_IMAGEFILTER_SCOPE void SDL _imageFilterMMXoff(void);63 SDL_IMAGEFILTER_SCOPE void SDL _imageFilterMMXon(void);62 SDL_IMAGEFILTER_SCOPE void SDLCALL SDL_imageFilterMMXoff(void); 63 SDL_IMAGEFILTER_SCOPE void SDLCALL SDL_imageFilterMMXon(void); 64 64 65 65 // … … 70 70 71 71 // SDL_imageFilterAdd: D = saturation255(S1 + S2) 72 SDL_IMAGEFILTER_SCOPE int SDL _imageFilterAdd(unsigned char *Src1, unsigned char *Src2, unsigned char *Dest, unsigned int length);72 SDL_IMAGEFILTER_SCOPE int SDLCALL SDL_imageFilterAdd(unsigned char *Src1, unsigned char *Src2, unsigned char *Dest, unsigned int length); 73 73 74 74 // SDL_imageFilterMean: D = S1/2 + S2/2 75 SDL_IMAGEFILTER_SCOPE int SDL _imageFilterMean(unsigned char *Src1, unsigned char *Src2, unsigned char *Dest, unsigned int length);75 SDL_IMAGEFILTER_SCOPE int SDLCALL SDL_imageFilterMean(unsigned char *Src1, unsigned char *Src2, unsigned char *Dest, unsigned int length); 76 76 77 77 // SDL_imageFilterSub: D = saturation0(S1 - S2) 78 SDL_IMAGEFILTER_SCOPE int SDL _imageFilterSub(unsigned char *Src1, unsigned char *Src2, unsigned char *Dest, unsigned int length);78 SDL_IMAGEFILTER_SCOPE int SDLCALL SDL_imageFilterSub(unsigned char *Src1, unsigned char *Src2, unsigned char *Dest, unsigned int length); 79 79 80 80 // SDL_imageFilterAbsDiff: D = | S1 - S2 | 81 SDL_IMAGEFILTER_SCOPE int SDL _imageFilterAbsDiff(unsigned char *Src1, unsigned char *Src2, unsigned char *Dest, unsigned int length);81 SDL_IMAGEFILTER_SCOPE int SDLCALL SDL_imageFilterAbsDiff(unsigned char *Src1, unsigned char *Src2, unsigned char *Dest, unsigned int length); 82 82 83 83 // SDL_imageFilterMult: D = saturation(S1 * S2) 84 SDL_IMAGEFILTER_SCOPE int SDL _imageFilterMult(unsigned char *Src1, unsigned char *Src2, unsigned char *Dest, unsigned int length);84 SDL_IMAGEFILTER_SCOPE int SDLCALL SDL_imageFilterMult(unsigned char *Src1, unsigned char *Src2, unsigned char *Dest, unsigned int length); 85 85 86 86 // SDL_imageFilterMultNor: D = S1 * S2 (non-MMX) 87 SDL_IMAGEFILTER_SCOPE int SDL _imageFilterMultNor(unsigned char *Src1, unsigned char *Src2, unsigned char *Dest, unsigned int length);87 SDL_IMAGEFILTER_SCOPE int SDLCALL SDL_imageFilterMultNor(unsigned char *Src1, unsigned char *Src2, unsigned char *Dest, unsigned int length); 88 88 89 89 // SDL_imageFilterMultDivby2: D = saturation255(S1/2 * S2) 90 SDL_IMAGEFILTER_SCOPE int SDL _imageFilterMultDivby2(unsigned char *Src1, unsigned char *Src2, unsigned char *Dest,90 SDL_IMAGEFILTER_SCOPE int SDLCALL SDL_imageFilterMultDivby2(unsigned char *Src1, unsigned char *Src2, unsigned char *Dest, 91 91 unsigned int length); 92 92 93 93 // SDL_imageFilterMultDivby4: D = saturation255(S1/2 * S2/2) 94 SDL_IMAGEFILTER_SCOPE int SDL _imageFilterMultDivby4(unsigned char *Src1, unsigned char *Src2, unsigned char *Dest,94 SDL_IMAGEFILTER_SCOPE int SDLCALL SDL_imageFilterMultDivby4(unsigned char *Src1, unsigned char *Src2, unsigned char *Dest, 95 95 unsigned int length); 96 96 97 97 // SDL_imageFilterBitAnd: D = S1 & S2 98 SDL_IMAGEFILTER_SCOPE int SDL _imageFilterBitAnd(unsigned char *Src1, unsigned char *Src2, unsigned char *Dest, unsigned int length);98 SDL_IMAGEFILTER_SCOPE int SDLCALL SDL_imageFilterBitAnd(unsigned char *Src1, unsigned char *Src2, unsigned char *Dest, unsigned int length); 99 99 100 100 // SDL_imageFilterBitOr: D = S1 | S2 101 SDL_IMAGEFILTER_SCOPE int SDL _imageFilterBitOr(unsigned char *Src1, unsigned char *Src2, unsigned char *Dest, unsigned int length);101 SDL_IMAGEFILTER_SCOPE int SDLCALL SDL_imageFilterBitOr(unsigned char *Src1, unsigned char *Src2, unsigned char *Dest, unsigned int length); 102 102 103 103 // SDL_imageFilterDiv: D = S1 / S2 (non-MMX) 104 SDL_IMAGEFILTER_SCOPE int SDL _imageFilterDiv(unsigned char *Src1, unsigned char *Src2, unsigned char *Dest, unsigned int length);104 SDL_IMAGEFILTER_SCOPE int SDLCALL SDL_imageFilterDiv(unsigned char *Src1, unsigned char *Src2, unsigned char *Dest, unsigned int length); 105 105 106 106 // SDL_imageFilterBitNegation: D = !S 107 SDL_IMAGEFILTER_SCOPE int SDL _imageFilterBitNegation(unsigned char *Src1, unsigned char *Dest, unsigned int length);107 SDL_IMAGEFILTER_SCOPE int SDLCALL SDL_imageFilterBitNegation(unsigned char *Src1, unsigned char *Dest, unsigned int length); 108 108 109 109 // SDL_imageFilterAddByte: D = saturation255(S + C) 110 SDL_IMAGEFILTER_SCOPE int SDL _imageFilterAddByte(unsigned char *Src1, unsigned char *Dest, unsigned int length, unsigned char C);110 SDL_IMAGEFILTER_SCOPE int SDLCALL SDL_imageFilterAddByte(unsigned char *Src1, unsigned char *Dest, unsigned int length, unsigned char C); 111 111 112 112 // SDL_imageFilterAddUint: D = saturation255(S + (uint)C) 113 SDL_IMAGEFILTER_SCOPE int SDL _imageFilterAddUint(unsigned char *Src1, unsigned char *Dest, unsigned int length, unsigned int C);113 SDL_IMAGEFILTER_SCOPE int SDLCALL SDL_imageFilterAddUint(unsigned char *Src1, unsigned char *Dest, unsigned int length, unsigned int C); 114 114 115 115 // SDL_imageFilterAddByteToHalf: D = saturation255(S/2 + C) 116 SDL_IMAGEFILTER_SCOPE int SDL _imageFilterAddByteToHalf(unsigned char *Src1, unsigned char *Dest, unsigned int length,116 SDL_IMAGEFILTER_SCOPE int SDLCALL SDL_imageFilterAddByteToHalf(unsigned char *Src1, unsigned char *Dest, unsigned int length, 117 117 unsigned char C); 118 118 119 119 // SDL_imageFilterSubByte: D = saturation0(S - C) 120 SDL_IMAGEFILTER_SCOPE int SDL _imageFilterSubByte(unsigned char *Src1, unsigned char *Dest, unsigned int length, unsigned char C);120 SDL_IMAGEFILTER_SCOPE int SDLCALL SDL_imageFilterSubByte(unsigned char *Src1, unsigned char *Dest, unsigned int length, unsigned char C); 121 121 122 122 // SDL_imageFilterSubUint: D = saturation0(S - (uint)C) 123 SDL_IMAGEFILTER_SCOPE int SDL _imageFilterSubUint(unsigned char *Src1, unsigned char *Dest, unsigned int length, unsigned int C);123 SDL_IMAGEFILTER_SCOPE int SDLCALL SDL_imageFilterSubUint(unsigned char *Src1, unsigned char *Dest, unsigned int length, unsigned int C); 124 124 125 125 // SDL_imageFilterShiftRight: D = saturation0(S >> N) 126 SDL_IMAGEFILTER_SCOPE int SDL _imageFilterShiftRight(unsigned char *Src1, unsigned char *Dest, unsigned int length, unsigned char N);126 SDL_IMAGEFILTER_SCOPE int SDLCALL SDL_imageFilterShiftRight(unsigned char *Src1, unsigned char *Dest, unsigned int length, unsigned char N); 127 127 128 128 // SDL_imageFilterShiftRightUint: D = saturation0((uint)S >> N) 129 SDL_IMAGEFILTER_SCOPE int SDL _imageFilterShiftRightUint(unsigned char *Src1, unsigned char *Dest, unsigned int length, unsigned char N);129 SDL_IMAGEFILTER_SCOPE int SDLCALL SDL_imageFilterShiftRightUint(unsigned char *Src1, unsigned char *Dest, unsigned int length, unsigned char N); 130 130 131 131 // SDL_imageFilterMultByByte: D = saturation255(S * C) 132 SDL_IMAGEFILTER_SCOPE int SDL _imageFilterMultByByte(unsigned char *Src1, unsigned char *Dest, unsigned int length, unsigned char C);132 SDL_IMAGEFILTER_SCOPE int SDLCALL SDL_imageFilterMultByByte(unsigned char *Src1, unsigned char *Dest, unsigned int length, unsigned char C); 133 133 134 134 // SDL_imageFilterShiftRightAndMultByByte: D = saturation255((S >> N) * C) 135 SDL_IMAGEFILTER_SCOPE int SDL _imageFilterShiftRightAndMultByByte(unsigned char *Src1, unsigned char *Dest, unsigned int length,135 SDL_IMAGEFILTER_SCOPE int SDLCALL SDL_imageFilterShiftRightAndMultByByte(unsigned char *Src1, unsigned char *Dest, unsigned int length, 136 136 unsigned char N, unsigned char C); 137 137 138 138 // SDL_imageFilterShiftLeftByte: D = (S << N) 139 SDL_IMAGEFILTER_SCOPE int SDL _imageFilterShiftLeftByte(unsigned char *Src1, unsigned char *Dest, unsigned int length,139 SDL_IMAGEFILTER_SCOPE int SDLCALL SDL_imageFilterShiftLeftByte(unsigned char *Src1, unsigned char *Dest, unsigned int length, 140 140 unsigned char N); 141 141 142 142 // SDL_imageFilterShiftLeftUint: D = ((uint)S << N) 143 SDL_IMAGEFILTER_SCOPE int SDL _imageFilterShiftLeftUint(unsigned char *Src1, unsigned char *Dest, unsigned int length,143 SDL_IMAGEFILTER_SCOPE int SDLCALL SDL_imageFilterShiftLeftUint(unsigned char *Src1, unsigned char *Dest, unsigned int length, 144 144 unsigned char N); 145 145 146 146 // SDL_imageFilterShiftLeft: D = saturation255(S << N) 147 SDL_IMAGEFILTER_SCOPE int SDL _imageFilterShiftLeft(unsigned char *Src1, unsigned char *Dest, unsigned int length, unsigned char N);147 SDL_IMAGEFILTER_SCOPE int SDLCALL SDL_imageFilterShiftLeft(unsigned char *Src1, unsigned char *Dest, unsigned int length, unsigned char N); 148 148 149 149 // SDL_imageFilterBinarizeUsingThreshold: D = S >= T ? 255:0 150 SDL_IMAGEFILTER_SCOPE int SDL _imageFilterBinarizeUsingThreshold(unsigned char *Src1, unsigned char *Dest, unsigned int length,150 SDL_IMAGEFILTER_SCOPE int SDLCALL SDL_imageFilterBinarizeUsingThreshold(unsigned char *Src1, unsigned char *Dest, unsigned int length, 151 151 unsigned char T); 152 152 153 153 // SDL_imageFilterClipToRange: D = (S >= Tmin) & (S <= Tmax) 255:0 154 SDL_IMAGEFILTER_SCOPE int SDL _imageFilterClipToRange(unsigned char *Src1, unsigned char *Dest, unsigned int length,154 SDL_IMAGEFILTER_SCOPE int SDLCALL SDL_imageFilterClipToRange(unsigned char *Src1, unsigned char *Dest, unsigned int length, 155 155 unsigned char Tmin, unsigned char Tmax); 156 156 157 157 // SDL_imageFilterNormalizeLinear: D = saturation255((Nmax - Nmin)/(Cmax - Cmin)*(S - Cmin) + Nmin) 158 SDL_IMAGEFILTER_SCOPE int SDL _imageFilterNormalizeLinear(unsigned char *Src, unsigned char *Dest, unsigned int length, int Cmin,158 SDL_IMAGEFILTER_SCOPE int SDLCALL SDL_imageFilterNormalizeLinear(unsigned char *Src, unsigned char *Dest, unsigned int length, int Cmin, 159 159 int Cmax, int Nmin, int Nmax); 160 160 … … 162 162 163 163 // SDL_imageFilterConvolveKernel3x3Divide: Dij = saturation0and255( ... ) 164 SDL_IMAGEFILTER_SCOPE int SDL _imageFilterConvolveKernel3x3Divide(unsigned char *Src, unsigned char *Dest, int rows,164 SDL_IMAGEFILTER_SCOPE int SDLCALL SDL_imageFilterConvolveKernel3x3Divide(unsigned char *Src, unsigned char *Dest, int rows, 165 165 int columns, signed short *Kernel, unsigned char Divisor); 166 166 167 167 // SDL_imageFilterConvolveKernel5x5Divide: Dij = saturation0and255( ... ) 168 SDL_IMAGEFILTER_SCOPE int SDL _imageFilterConvolveKernel5x5Divide(unsigned char *Src, unsigned char *Dest, int rows,168 SDL_IMAGEFILTER_SCOPE int SDLCALL SDL_imageFilterConvolveKernel5x5Divide(unsigned char *Src, unsigned char *Dest, int rows, 169 169 int columns, signed short *Kernel, unsigned char Divisor); 170 170 171 171 // SDL_imageFilterConvolveKernel7x7Divide: Dij = saturation0and255( ... ) 172 SDL_IMAGEFILTER_SCOPE int SDL _imageFilterConvolveKernel7x7Divide(unsigned char *Src, unsigned char *Dest, int rows,172 SDL_IMAGEFILTER_SCOPE int SDLCALL SDL_imageFilterConvolveKernel7x7Divide(unsigned char *Src, unsigned char *Dest, int rows, 173 173 int columns, signed short *Kernel, unsigned char Divisor); 174 174 175 175 // SDL_imageFilterConvolveKernel9x9Divide: Dij = saturation0and255( ... ) 176 SDL_IMAGEFILTER_SCOPE int SDL _imageFilterConvolveKernel9x9Divide(unsigned char *Src, unsigned char *Dest, int rows,176 SDL_IMAGEFILTER_SCOPE int SDLCALL SDL_imageFilterConvolveKernel9x9Divide(unsigned char *Src, unsigned char *Dest, int rows, 177 177 int columns, signed short *Kernel, unsigned char Divisor); 178 178 179 179 // SDL_imageFilterConvolveKernel3x3ShiftRight: Dij = saturation0and255( ... ) 180 SDL_IMAGEFILTER_SCOPE int SDL _imageFilterConvolveKernel3x3ShiftRight(unsigned char *Src, unsigned char *Dest, int rows,180 SDL_IMAGEFILTER_SCOPE int SDLCALL SDL_imageFilterConvolveKernel3x3ShiftRight(unsigned char *Src, unsigned char *Dest, int rows, 181 181 int columns, signed short *Kernel, 182 182 unsigned char NRightShift); 183 183 184 184 // SDL_imageFilterConvolveKernel5x5ShiftRight: Dij = saturation0and255( ... ) 185 SDL_IMAGEFILTER_SCOPE int SDL _imageFilterConvolveKernel5x5ShiftRight(unsigned char *Src, unsigned char *Dest, int rows,185 SDL_IMAGEFILTER_SCOPE int SDLCALL SDL_imageFilterConvolveKernel5x5ShiftRight(unsigned char *Src, unsigned char *Dest, int rows, 186 186 int columns, signed short *Kernel, 187 187 unsigned char NRightShift); 188 188 189 189 // SDL_imageFilterConvolveKernel7x7ShiftRight: Dij = saturation0and255( ... ) 190 SDL_IMAGEFILTER_SCOPE int SDL _imageFilterConvolveKernel7x7ShiftRight(unsigned char *Src, unsigned char *Dest, int rows,190 SDL_IMAGEFILTER_SCOPE int SDLCALL SDL_imageFilterConvolveKernel7x7ShiftRight(unsigned char *Src, unsigned char *Dest, int rows, 191 191 int columns, signed short *Kernel, 192 192 unsigned char NRightShift); 193 193 194 194 // SDL_imageFilterConvolveKernel9x9ShiftRight: Dij = saturation0and255( ... ) 195 SDL_IMAGEFILTER_SCOPE int SDL _imageFilterConvolveKernel9x9ShiftRight(unsigned char *Src, unsigned char *Dest, int rows,195 SDL_IMAGEFILTER_SCOPE int SDLCALL SDL_imageFilterConvolveKernel9x9ShiftRight(unsigned char *Src, unsigned char *Dest, int rows, 196 196 int columns, signed short *Kernel, 197 197 unsigned char NRightShift); 198 198 199 199 // SDL_imageFilterSobelX: Dij = saturation255( ... ) 200 SDL_IMAGEFILTER_SCOPE int SDL _imageFilterSobelX(unsigned char *Src, unsigned char *Dest, int rows, int columns);200 SDL_IMAGEFILTER_SCOPE int SDLCALL SDL_imageFilterSobelX(unsigned char *Src, unsigned char *Dest, int rows, int columns); 201 201 202 202 // SDL_imageFilterSobelXShiftRight: Dij = saturation255( ... ) 203 SDL_IMAGEFILTER_SCOPE int SDL _imageFilterSobelXShiftRight(unsigned char *Src, unsigned char *Dest, int rows, int columns,203 SDL_IMAGEFILTER_SCOPE int SDLCALL SDL_imageFilterSobelXShiftRight(unsigned char *Src, unsigned char *Dest, int rows, int columns, 204 204 unsigned char NRightShift); 205 205 206 206 // Align/restore stack to 32 byte boundary -- Functionality untested! -- 207 SDL_IMAGEFILTER_SCOPE void SDL _imageFilterAlignStack(void);208 SDL_IMAGEFILTER_SCOPE void SDL _imageFilterRestoreStack(void);207 SDL_IMAGEFILTER_SCOPE void SDLCALL SDL_imageFilterAlignStack(void); 208 SDL_IMAGEFILTER_SCOPE void SDLCALL SDL_imageFilterRestoreStack(void); 209 209 210 210 /* Ends C function definitions when using C++ */ -
TabularUnified sdl_gfx/trunk/SDL_rotozoom.h ¶
r1430 r1538 58 58 /* ---- Function Prototypes */ 59 59 60 #if def _MSC_VER60 #if defined(_MSC_VER) || defined(__EMX__) 61 61 # if defined(DLL_EXPORT) && !defined(LIBSDL_GFX_DLL_IMPORT) 62 62 # define SDL_ROTOZOOM_SCOPE __declspec(dllexport) … … 77 77 */ 78 78 79 SDL_ROTOZOOM_SCOPE SDL_Surface * rotozoomSurface(SDL_Surface * src, double angle, double zoom, int smooth);79 SDL_ROTOZOOM_SCOPE SDL_Surface * SDLCALL rotozoomSurface(SDL_Surface * src, double angle, double zoom, int smooth); 80 80 81 SDL_ROTOZOOM_SCOPE SDL_Surface * rotozoomSurfaceXY81 SDL_ROTOZOOM_SCOPE SDL_Surface * SDLCALL rotozoomSurfaceXY 82 82 (SDL_Surface * src, double angle, double zoomx, double zoomy, int smooth); 83 83 84 84 85 SDL_ROTOZOOM_SCOPE void rotozoomSurfaceSize(int width, int height, double angle, double zoom, int *dstwidth,85 SDL_ROTOZOOM_SCOPE void SDLCALL rotozoomSurfaceSize(int width, int height, double angle, double zoom, int *dstwidth, 86 86 int *dstheight); 87 87 88 SDL_ROTOZOOM_SCOPE void rotozoomSurfaceSizeXY88 SDL_ROTOZOOM_SCOPE void SDLCALL rotozoomSurfaceSizeXY 89 89 (int width, int height, double angle, double zoomx, double zoomy, 90 90 int *dstwidth, int *dstheight); … … 96 96 */ 97 97 98 SDL_ROTOZOOM_SCOPE SDL_Surface * zoomSurface(SDL_Surface * src, double zoomx, double zoomy, int smooth);98 SDL_ROTOZOOM_SCOPE SDL_Surface * SDLCALL zoomSurface(SDL_Surface * src, double zoomx, double zoomy, int smooth); 99 99 100 SDL_ROTOZOOM_SCOPE void zoomSurfaceSize(int width, int height, double zoomx, double zoomy, int *dstwidth, int *dstheight);100 SDL_ROTOZOOM_SCOPE void SDLCALL zoomSurfaceSize(int width, int height, double zoomx, double zoomy, int *dstwidth, int *dstheight); 101 101 102 102 /* … … 106 106 */ 107 107 108 SDL_ROTOZOOM_SCOPE SDL_Surface * shrinkSurface(SDL_Surface * src, int factorx, int factory);108 SDL_ROTOZOOM_SCOPE SDL_Surface * SDLCALL shrinkSurface(SDL_Surface * src, int factorx, int factory); 109 109 110 110 /* … … 114 114 */ 115 115 116 SDL_ROTOZOOM_SCOPE SDL_Surface* rotateSurface90Degrees(SDL_Surface* src, int numClockwiseTurns);116 SDL_ROTOZOOM_SCOPE SDL_Surface* SDLCALL rotateSurface90Degrees(SDL_Surface* src, int numClockwiseTurns); 117 117 118 118 /* Ends C function definitions when using C++ */
Note:
See TracChangeset
for help on using the changeset viewer.