SDL2# - C# Wrapper for SDL2

SDL2_gfx library bindings (#230)

authored by Refrag and committed by GitHub 0a8a135a 298a725a

+1
Makefile
··· 4 4 # Source Lists 5 5 SRC = \ 6 6 src/SDL2.cs \ 7 + src/SDL2_gfx.cs \ 7 8 src/SDL2_image.cs \ 8 9 src/SDL2_mixer.cs \ 9 10 src/SDL2_ttf.cs
+1
SDL2-CS.Core.csproj
··· 20 20 </Target> 21 21 <ItemGroup> 22 22 <Compile Include="src\SDL2.cs" /> 23 + <Compile Include="src\SDL2_gfx.cs" /> 23 24 <Compile Include="src\SDL2_image.cs" /> 24 25 <Compile Include="src\SDL2_mixer.cs" /> 25 26 <Compile Include="src\SDL2_ttf.cs" />
+1
SDL2-CS.csproj
··· 85 85 </Target> 86 86 <ItemGroup> 87 87 <Compile Include="src\SDL2.cs" /> 88 + <Compile Include="src\SDL2_gfx.cs" /> 88 89 <Compile Include="src\SDL2_image.cs" /> 89 90 <Compile Include="src\SDL2_mixer.cs" /> 90 91 <Compile Include="src\SDL2_ttf.cs" />
+362
src/SDL2_gfx.cs
··· 1 + #region Using Statements 2 + using System; 3 + using System.Runtime.InteropServices; 4 + #endregion 5 + 6 + namespace SDL2 7 + { 8 + public static class SDL_gfx 9 + { 10 + #region SDL2# Variables 11 + 12 + /* Used by DllImport to load the native library. */ 13 + private const string nativeLibName = "SDL2_gfx"; 14 + 15 + #endregion 16 + 17 + public const double M_PI = 3.1415926535897932384626433832795; 18 + 19 + #region SDL2_gfxPrimitives.h 20 + 21 + public const uint SDL2_GFXPRIMITIVES_MAJOR = 1; 22 + public const uint SDL2_GFXPRIMITIVES_MINOR = 0; 23 + public const uint SDL2_GFXPRIMITIVES_MICRO = 1; 24 + 25 + [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] 26 + public static extern int pixelColor(IntPtr renderer, short x, short y, uint color); 27 + 28 + [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] 29 + public static extern int pixelRGBA(IntPtr renderer, short x, short y, byte r, byte g, byte b, byte a); 30 + 31 + [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] 32 + public static extern int hlineColor(IntPtr renderer, short x1, short x2, short y, uint color); 33 + 34 + [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] 35 + public static extern int hlineRGBA(IntPtr renderer, short x1, short x2, short y, byte r, byte g, byte b, byte a); 36 + 37 + [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] 38 + public static extern int vlineColor(IntPtr renderer, short x, short y1, short y2, uint color); 39 + 40 + [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] 41 + public static extern int vlineRGBA(IntPtr renderer, short x, short y1, short y2, byte r, byte g, byte b, byte a); 42 + 43 + [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] 44 + public static extern int rectangleColor(IntPtr renderer, short x1, short y1, short x2, short y2, uint color); 45 + 46 + [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] 47 + public static extern int rectangleRGBA(IntPtr renderer, short x1, short y1, short x2, short y2, byte r, byte g, byte b, byte a); 48 + 49 + [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] 50 + public static extern int roundedRectangleColor(IntPtr renderer, short x1, short y1, short x2, short y2, short rad, uint color); 51 + 52 + [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] 53 + public static extern int roundedRectangleRGBA(IntPtr renderer, short x1, short y1, short x2, short y2, short rad, byte r, byte g, byte b, byte a); 54 + 55 + [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] 56 + public static extern int boxColor(IntPtr renderer, short x1, short y1, short x2, short y2, uint color); 57 + 58 + [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] 59 + public static extern int boxRGBA(IntPtr renderer, short x1, short y1, short x2, short y2, byte r, byte g, byte b, byte a); 60 + 61 + [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] 62 + public static extern int roundedBoxColor(IntPtr renderer, short x1, short y1, short x2, short y2, short rad, uint color); 63 + 64 + [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] 65 + public static extern int roundedBoxRGBA(IntPtr renderer, short x1, short y1, short x2, short y2, short rad, byte r, byte g, byte b, byte a); 66 + 67 + [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] 68 + public static extern int lineColor(IntPtr renderer, short x1, short y1, short x2, short y2, uint color); 69 + 70 + [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] 71 + public static extern int lineRGBA(IntPtr renderer, short x1, short y1, short x2, short y2, byte r, byte g, byte b, byte a); 72 + 73 + [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] 74 + public static extern int aalineColor(IntPtr renderer, short x1, short y1, short x2, short y2, uint color); 75 + 76 + [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] 77 + public static extern int aalineRGBA(IntPtr renderer, short x1, short y1, short x2, short y2, byte r, byte g, byte b, byte a); 78 + 79 + [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] 80 + public static extern int thickLineColor(IntPtr renderer, short x1, short y1, short x2, short y2, byte width, uint color); 81 + 82 + [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] 83 + public static extern int thickLineRGBA(IntPtr renderer, short x1, short y1, short x2, short y2, byte width, byte r, byte g, byte b, byte a); 84 + 85 + [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] 86 + public static extern int circleColor(IntPtr renderer, short x, short y, short rad, uint color); 87 + 88 + [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] 89 + public static extern int circleRGBA(IntPtr renderer, short x, short y, short rad, byte r, byte g, byte b, byte a); 90 + 91 + [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] 92 + public static extern int arcColor(IntPtr renderer, short x, short y, short rad, short start, short end, uint color); 93 + 94 + [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] 95 + public static extern int arcRGBA(IntPtr renderer, short x, short y, short rad, short start, short end, byte r, byte g, byte b, byte a); 96 + 97 + [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] 98 + public static extern int aacircleColor(IntPtr renderer, short x, short y, short rad, uint color); 99 + 100 + [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] 101 + public static extern int aacircleRGBA(IntPtr renderer, short x, short y, short rad, byte r, byte g, byte b, byte a); 102 + 103 + [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] 104 + public static extern int filledCircleColor(IntPtr renderer, short x, short y, short rad, uint color); 105 + 106 + [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] 107 + public static extern int filledCircleRGBA(IntPtr renderer, short x, short y, short rad, byte r, byte g, byte b, byte a); 108 + 109 + [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] 110 + public static extern int ellipseColor(IntPtr renderer, short x, short y, short rx, short ry, uint color); 111 + 112 + [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] 113 + public static extern int ellipseRGBA(IntPtr renderer, short x, short y, short rx, short ry, byte r, byte g, byte b, byte a); 114 + 115 + [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] 116 + public static extern int aaellipseColor(IntPtr renderer, short x, short y, short rx, short ry, uint color); 117 + 118 + [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] 119 + public static extern int aaellipseRGBA(IntPtr renderer, short x, short y, short rx, short ry, byte r, byte g, byte b, byte a); 120 + 121 + [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] 122 + public static extern int filledEllipseColor(IntPtr renderer, short x, short y, short rx, short ry, uint color); 123 + 124 + [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] 125 + public static extern int filledEllipseRGBA(IntPtr renderer, short x, short y, short rx, short ry, byte r, byte g, byte b, byte a); 126 + 127 + [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] 128 + public static extern int pieColor(IntPtr renderer, short x, short y, short rad, short start, short end, uint color); 129 + 130 + [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] 131 + public static extern int pieRGBA(IntPtr renderer, short x, short y, short rad, short start, short end, byte r, byte g, byte b, byte a); 132 + 133 + [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] 134 + public static extern int filledPieColor(IntPtr renderer, short x, short y, short rad, short start, short end, uint color); 135 + 136 + [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] 137 + public static extern int filledPieRGBA(IntPtr renderer, short x, short y, short rad, short start, short end, byte r, byte g, byte b, byte a); 138 + 139 + [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] 140 + public static extern int trigonColor(IntPtr renderer, short x1, short y1, short x2, short y2, short x3, short y3, uint color); 141 + 142 + [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] 143 + public static extern int trigonRGBA(IntPtr renderer, short x1, short y1, short x2, short y2, short x3, short y3, byte r, byte g, byte b, byte a); 144 + 145 + [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] 146 + public static extern int aatrigonColor(IntPtr renderer, short x1, short y1, short x2, short y2, short x3, short y3, uint color); 147 + 148 + [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] 149 + public static extern int aatrigonRGBA(IntPtr renderer, short x1, short y1, short x2, short y2, short x3, short y3, byte r, byte g, byte b, byte a); 150 + 151 + [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] 152 + public static extern int filledTrigonColor(IntPtr renderer, short x1, short y1, short x2, short y2, short x3, short y3, uint color); 153 + 154 + [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] 155 + public static extern int filledTrigonRGBA(IntPtr renderer, short x1, short y1, short x2, short y2, short x3, short y3, byte r, byte g, byte b, byte a); 156 + 157 + [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] 158 + public static extern int polygonColor(IntPtr renderer, [In] short[] vx, [In] short[] vy, int n, uint color); 159 + 160 + [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] 161 + public static extern int polygonRGBA(IntPtr renderer, [In] short[] vx, [In] short[] vy, int n, byte r, byte g, byte b, byte a); 162 + 163 + [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] 164 + public static extern int aapolygonColor(IntPtr renderer, [In] short[] vx, [In] short[] vy, int n, uint color); 165 + 166 + [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] 167 + public static extern int aapolygonRGBA(IntPtr renderer, [In] short[] vx, [In] short[] vy, int n, byte r, byte g, byte b, byte a); 168 + 169 + [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] 170 + public static extern int filledPolygonColor(IntPtr renderer, [In] short[] vx, [In] short[] vy, int n, uint color); 171 + 172 + [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] 173 + public static extern int filledPolygonRGBA(IntPtr renderer, [In] short[] vx, [In] short[] vy, int n, byte r, byte g, byte b, byte a); 174 + 175 + [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] 176 + public static extern int texturedPolygon(IntPtr renderer, [In] short[] vx, [In] short[] vy, int n, IntPtr texture, int texture_dx, int texture_dy); 177 + 178 + [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] 179 + public static extern int bezierColor(IntPtr renderer, [In] short[] vx, [In] short[] vy, int n, int s, uint color); 180 + 181 + [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] 182 + public static extern int bezierRGBA(IntPtr renderer, [In] short[] vx, [In] short[] vy, int n, int s, byte r, byte g, byte b, byte a); 183 + 184 + [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] 185 + public static extern void gfxPrimitivesSetFont([In] byte[] fontdata, uint cw, uint ch); 186 + 187 + [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] 188 + public static extern void gfxPrimitivesSetFontRotation(uint rotation); 189 + 190 + [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] 191 + public static extern int characterColor(IntPtr renderer, short x, short y, char c, uint color); 192 + 193 + [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] 194 + public static extern int characterRGBA(IntPtr renderer, short x, short y, char c, byte r, byte g, byte b, byte a); 195 + 196 + [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] 197 + public static extern int stringColor(IntPtr renderer, short x, short y, string s, uint color); 198 + 199 + [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] 200 + public static extern int stringRGBA(IntPtr renderer, short x, short y, string s, byte r, byte g, byte b, byte a); 201 + 202 + #endregion 203 + 204 + #region SDL2_rotozoom.h 205 + 206 + public const int SMOOTHING_OFF = 0; 207 + public const int SMOOTHING_ON = 1; 208 + 209 + [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] 210 + public static extern IntPtr rotozoomSurface(IntPtr src, double angle, double zoom, int smooth); 211 + 212 + [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] 213 + public static extern IntPtr rotozoomSurfaceXY(IntPtr src, double angle, double zoomx, double zoomy, int smooth); 214 + 215 + [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] 216 + public static extern void rotozoomSurfaceSize(int width, int height, double angle, double zoom, out int dstwidth, out int dstheight); 217 + 218 + [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] 219 + public static extern void rotozoomSurfaceSizeXY(int width, int height, double angle, double zoomx, double zoomy, out int dstwidth, out int dstheight); 220 + 221 + [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] 222 + public static extern IntPtr zoomSurface(IntPtr src, double zoomx, double zoomy, int smooth); 223 + 224 + [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] 225 + public static extern void zoomSurfaceSize(int width, int height, double zoomx, double zoomy, out int dstwidth, out int dstheight); 226 + 227 + [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] 228 + public static extern IntPtr shrinkSurface(IntPtr src, int factorx, int factory); 229 + 230 + [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] 231 + public static extern IntPtr rotateSurface90Degrees(IntPtr src, int numClockwiseTurns); 232 + 233 + #endregion 234 + 235 + #region SDL2_framerate.h 236 + 237 + public const int FPS_UPPER_LIMIT = 200; 238 + public const int FPS_LOWER_LIMIT = 1; 239 + public const int FPS_DEFAULT = 30; 240 + 241 + [StructLayout(LayoutKind.Sequential)] 242 + public struct FPSmanager 243 + { 244 + public uint framecount; 245 + public float rateticks; 246 + public uint baseticks; 247 + public uint lastticks; 248 + public uint rate; 249 + } 250 + 251 + [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] 252 + public static extern void SDL_initFramerate(ref FPSmanager manager); 253 + 254 + [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] 255 + public static extern int SDL_setFramerate(ref FPSmanager manager, uint rate); 256 + 257 + [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] 258 + public static extern int SDL_getFramerate(ref FPSmanager manager); 259 + 260 + [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] 261 + public static extern int SDL_getFramecount(ref FPSmanager manager); 262 + 263 + [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] 264 + public static extern uint SDL_framerateDelay(ref FPSmanager manager); 265 + 266 + #endregion 267 + 268 + #region SDL2_imageFilter.h 269 + 270 + [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] 271 + public static extern int SDL_imageFilterMMXdetect(); 272 + 273 + [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] 274 + public static extern void SDL_imageFilterMMXoff(); 275 + 276 + [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] 277 + public static extern void SDL_imageFilterMMXon(); 278 + 279 + [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] 280 + public static extern int SDL_imageFilterAdd([In] byte[] src1, [In] byte[] src2, [Out] byte[] dest, uint length); 281 + 282 + [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] 283 + public static extern int SDL_imageFilterMean([In] byte[] src1, [In] byte[] src2, [Out] byte[] dest, uint length); 284 + 285 + [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] 286 + public static extern int SDL_imageFilterSub([In] byte[] src1, [In] byte[] src2, [Out] byte[] dest, uint length); 287 + 288 + [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] 289 + public static extern int SDL_imageFilterAbsDiff([In] byte[] src1, [In] byte[] src2, [Out] byte[] dest, uint length); 290 + 291 + [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] 292 + public static extern int SDL_imageFilterMult([In] byte[] src1, [In] byte[] src2, [Out] byte[] dest, uint length); 293 + 294 + [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] 295 + public static extern int SDL_imageFilterMultNor([In] byte[] src1, [In] byte[] src2, [Out] byte[] dest, uint length); 296 + 297 + [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] 298 + public static extern int SDL_imageFilterMultDivby2([In] byte[] src1, [In] byte[] src2, [Out] byte[] dest, uint length); 299 + 300 + [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] 301 + public static extern int SDL_imageFilterMultDivby4([In] byte[] src1, [In] byte[] src2, [Out] byte[] dest, uint length); 302 + 303 + [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] 304 + public static extern int SDL_imageFilterBitAnd([In] byte[] src1, [In] byte[] src2, [Out] byte[] dest, uint length); 305 + 306 + [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] 307 + public static extern int SDL_imageFilterBitOr([In] byte[] src1, [In] byte[] src2, [Out] byte[] dest, uint length); 308 + 309 + [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] 310 + public static extern int SDL_imageFilterDiv([In] byte[] src1, [In] byte[] src2, [Out] byte[] dest, uint length); 311 + 312 + [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] 313 + public static extern int SDL_imageFilterBitNegation([In] byte[] src1, [Out] byte[] dest, uint length); 314 + 315 + [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] 316 + public static extern int SDL_imageFilterAddByte([In] byte[] src1, [Out] byte[] dest, uint length, byte c); 317 + 318 + [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] 319 + public static extern int SDL_imageFilterAddUint([In] byte[] src1, [Out] byte[] dest, uint length, uint c); 320 + 321 + [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] 322 + public static extern int SDL_imageFilterAddByteToHalf([In] byte[] src1, [Out] byte[] dest, uint length, byte c); 323 + 324 + [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] 325 + public static extern int SDL_imageFilterSubByte([In] byte[] src1, [Out] byte[] dest, uint length, byte c); 326 + 327 + [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] 328 + public static extern int SDL_imageFilterSubUint([In] byte[] src1, [Out] byte[] dest, uint length, uint c); 329 + 330 + [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] 331 + public static extern int SDL_imageFilterShiftRight([In] byte[] src1, [Out] byte[] dest, uint length, byte n); 332 + 333 + [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] 334 + public static extern int SDL_imageFilterShiftRightUint([In] byte[] src1, [Out] byte[] dest, uint length, byte n); 335 + 336 + [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] 337 + public static extern int SDL_imageFilterMultByByte([In] byte[] src1, [Out] byte[] dest, uint length, byte c); 338 + 339 + [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] 340 + public static extern int SDL_imageFilterShiftRightAndMultByByte([In] byte[] src1, [Out] byte[] dest, uint length, byte n, byte c); 341 + 342 + [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] 343 + public static extern int SDL_imageFilterShiftLeftByte([In] byte[] src1, [Out] byte[] dest, uint length, byte n); 344 + 345 + [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] 346 + public static extern int SDL_imageFilterShiftLeftUint([In] byte[] src1, [Out] byte[] dest, uint length, byte n); 347 + 348 + [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] 349 + public static extern int SDL_imageFilterShiftLeft([In] byte[] src1, [Out] byte[] dest, uint length, byte n); 350 + 351 + [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] 352 + public static extern int SDL_imageFilterBinarizeUsingThreshold([In] byte[] src1, [Out] byte[] dest, uint length, byte t); 353 + 354 + [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] 355 + public static extern int SDL_imageFilterClipToRange([In] byte[] src1, [Out] byte[] dest, uint length, byte tmin, byte tmax); 356 + 357 + [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] 358 + public static extern int SDL_imageFilterNormalizeLinear([In] byte[] src1, [Out] byte[] dest, uint length, int cmin, int cmax, int nmin, int nmax); 359 + 360 + #endregion 361 + } 362 + }