Unit sdl2_gfx

Description

 

Overview

Classes, Interfaces, Objects and Records

Name Description
Record TFPSManager  

Functions and Procedures

Function aacircleColor(renderer: PSDL_Renderer; x, y, rad: cint16; colour: cuint32):cint32; cdecl; external GFX_LibName name '_aacircleColor';
Function aacircleRGBA(renderer: PSDL_Renderer; x, y, rad: cint16; r, g, b, a: cuint8):cint32; cdecl; external GFX_LibName name '_aacircleRGBA';
Function aaellipseColor(renderer: PSDL_Renderer; x, y, rx, ry: cint16; colour: cuint32):cint32; cdecl; external GFX_LibName name '_aaellipseColor';
Function aaellipseRGBA(renderer: PSDL_Renderer; x, y, rx, ry: cint16; r, g, b, a: cuint8):cint32; cdecl; external GFX_LibName name '_aaellipseRGBA';
Function aalineColor(renderer: PSDL_Renderer; x1, y1, x2, y2: cint16; colour: cuint32):cint32; cdecl; external GFX_LibName name '_aalineColor';
Function aalineRGBA(renderer: PSDL_Renderer; x1, y1, x2, y2: cint16; r, g, b, a: cuint8):cint32; cdecl; external GFX_LibName name '_aalineRGBA';
Function aapolygonColor(renderer: PSDL_Renderer; Const vx, vy: pcint16; n: cint32; colour: cuint32):cint32; cdecl; external GFX_LibName name '_aapolygonColor';
Function aapolygonRGBA(renderer: PSDL_Renderer; Const vx, vy: pcint16; n: cint32; r, g, b, a: cuint8):cint32; cdecl; external GFX_LibName name '_aapolygonRGBA';
Function aatrigonColor(renderer: PSDL_Renderer; x1, y1, x2, y2, x3, y3: cint16; colour: cuint32):cint32; cdecl; external GFX_LibName name '_aatrigonColor';
Function aatrigonRGBA(renderer: PSDL_Renderer; x1, y1, x2, y2, x3, y3: cint16; r, g, b, a: cuint8):cint32; cdecl; external GFX_LibName name '_aatrigonRGBA';
Function arcColor(renderer: PSDL_Renderer; x, y, rad, start, finish: cint16; colour: cuint32):cint32; cdecl; external GFX_LibName name '_arcColor';
Function arcRGBA(renderer: PSDL_Renderer; x, y, rad, start, finish: cint16; r, g, b, a: cuint8):cint32; cdecl; external GFX_LibName name '_arcRGBA';
Function bezierColor(renderer: PSDL_Renderer; Const vx, vy: pcint16; n, s: cint32; colour: cuint32):cint32; cdecl; external GFX_LibName name '_bezierColor';
Function bezierRGBA(renderer: PSDL_Renderer; Const vx, vy: pcint16; n, s: cint32; r, g, b, a: cuint8):cint32; cdecl; external GFX_LibName name '_bezierRGBA';
Function boxColor(renderer: PSDL_Renderer; x1, y1, x2, y2: cint16; colour: cuint32):cint32; cdecl; external GFX_LibName name '_boxColor';
Function boxRGBA(renderer: PSDL_Renderer; x1, y1, x2, y2: cint16; r, g, b, a: cuint8):cint32; cdecl; external GFX_LibName name '_boxRGBA';
Function characterColor(renderer: PSDL_Renderer; x, y: cint16; c: Char; colour: cuint32):cint32; cdecl; external GFX_LibName name '_characterColor';
Function characterRGBA(renderer: PSDL_Renderer; x, y: cint16; c: Char; r, g, b, a: cuint8):cint32; cdecl; external GFX_LibName name '_characterRGBA';
Function circleColor(renderer: PSDL_Renderer; x, y, rad: cint16; colour: cuint32):cint32; cdecl; external GFX_LibName name '_circleColor';
Function circleRGBA(renderer: PSDL_Renderer; x, y, rad: cint16; r, g, b, a: cuint8):cint32; cdecl; external GFX_LibName name '_circleRGBA';
Function ellipseColor(renderer: PSDL_Renderer; x, y, rx, ry: cint16; colour: cuint32):cint32; cdecl; external GFX_LibName name '_ellipseColor';
Function ellipseRGBA(renderer: PSDL_Renderer; x, y, rx, ry: cint16; r, g, b, a: cuint8):cint32; cdecl; external GFX_LibName name '_ellipseRGBA';
Function filledCircleColor(renderer: PSDL_Renderer; x, y, rad: cint16; colour: cuint32):cint32; cdecl; external GFX_LibName name '_filledCircleColor';
Function filledCircleRGBA(renderer: PSDL_Renderer; x, y, rad: cint16; r, g, b, a: cuint8):cint32; cdecl; external GFX_LibName name '_filledCircleRGBA';
Function filledEllipseColor(renderer: PSDL_Renderer; x, y, rx, ry: cint16; colour: cuint32):cint32; cdecl; external GFX_LibName name '_filledEllipseColor';
Function filledEllipseRGBA(renderer: PSDL_Renderer; x, y, rx, ry: cint16; r, g, b, a: cuint8):cint32; cdecl; external GFX_LibName name '_filledEllipseRGBA';
Function filledPieColor(renderer: PSDL_Renderer; x, y, rad, start, finish: cint16; colour: cuint32):cint32; cdecl; external GFX_LibName name '_filledPieColor';
Function filledPieRGBA(renderer: PSDL_Renderer; x, y, rad, start, finish: cint16; r, g, b, a: cuint8):cint32; cdecl; external GFX_LibName name '_filledPieRGBA';
Function filledPolygonColor(renderer: PSDL_Renderer; Const vx, vy: pcint16; n: cint32; colour: cuint32):cint32; cdecl; external GFX_LibName name '_filledPolygonColor';
Function filledPolygonRGBA(renderer: PSDL_Renderer; Const vx, vy: pcint16; n: cint32; r, g, b, a: cuint8):cint32; cdecl; external GFX_LibName name '_filledPolygonRGBA';
Function filledTrigonColor(renderer: PSDL_Renderer; x1, y1, x2, y2, x3, y3: cint16; colour: cuint32):cint32; cdecl; external GFX_LibName name '_filledTrigonColor';
Function filledTrigonRGBA(renderer: PSDL_Renderer; x1, y1, x2, y2, x3, y3: cint16; r, g, b, a: cuint8):cint32; cdecl; external GFX_LibName name '_filledTrigonRGBA';
Procedure gfxPrimitivesSetFont(Const fontdata: Pointer; cw, ch: cuint32); cdecl; external GFX_LibName name '_gfxPrimitivesSetFont';
Procedure gfxPrimitivesSetFontRotation(rotation: cuint32); cdecl; external GFX_LibName name '_gfxPrimitivesSetFontRotation';
Function hlineColor(renderer: PSDL_Renderer; x1, x2, y: cint16; colour: cuint32):cint32; cdecl; external GFX_LibName name '_hlineColor';
Function hlineRGBA(renderer: PSDL_Renderer; x1, x2, y:cint16; r, g, b, a: cuint8):cint32; cdecl; external GFX_LibName name '_hlineRGBA';
Function lineColor(renderer: PSDL_Renderer; x1, y1, x2, y2: cint16; colour: cuint32):cint32; cdecl; external GFX_LibName name '_lineColor';
Function lineRGBA(renderer: PSDL_Renderer; x1, y1, x2, y2: cint16; r, g, b, a: cuint8):cint32; cdecl; external GFX_LibName name '_lineRGBA';
Function pieColor(renderer: PSDL_Renderer; x, y, rad, start, finish: cint16; colour: cuint32):cint32; cdecl; external GFX_LibName name '_pieColor';
Function pieRGBA(renderer: PSDL_Renderer; x, y, rad, start, finish: cint16; r, g, b, a: cuint8):cint32; cdecl; external GFX_LibName name '_pieRGBA';
Function pixelColor(renderer: PSDL_Renderer; x, y: cint16; colour: cuint32):cint32; cdecl; external GFX_LibName name '_pixelColor';
Function pixelRGBA(renderer: PSDL_Renderer; x, y: cint16; r, g, b, a: cuint8):cint32; cdecl; external GFX_LibName name '_pixelRGBA';
Function polygonColor(renderer: PSDL_Renderer; Const vx, vy: pcint16; n: cint32; colour: cuint32):cint32; cdecl; external GFX_LibName name '_polygonColor';
Function polygonRGBA(renderer: PSDL_Renderer; Const vx, vy: pcint16; n: cint32; r, g, b, a: cuint8):cint32; cdecl; external GFX_LibName name '_polugonRGBA';
Function rectangleColor(renderer: PSDL_Renderer; x1, y1, x2, y2: cint16; colour: cuint32):cint32; cdecl; external GFX_LibName name '_rectangleColor';
Function rectangleRGBA(renderer: PSDL_Renderer; x1, y1, x2, y2: cint16; r, g, b, a: cuint8):cint32; cdecl; external GFX_LibName name '_rectangleRGBA';
Function rotateSurface90Degrees(src: PSDL_Surface; numClockwiseTurns: cint32):PSDL_Surface; cdecl; external GFX_LibName name '_rotateSurface90Degrees';
Function rotozoomSurface(src: PSDL_Surface; angle, zoom: Double; smooth: cint32):PSDL_Surface; cdecl; external GFX_LibName name '_rotozoomSurface';
Procedure rotozoomSurfaceSize(width, height: cint32; angle, zoom: Double; dstwidth, dstheight: pcuint32); cdecl; external GFX_LibName name '_rotozoomSurfaceSize';
Procedure rotozoomSurfaceSizeXY(width, height: cint32; angle, zoomx, zoomy: Double; dstwidth, dstheight:pcuint32); cdecl; external GFX_LibName name '_rotozoomSurfaceSizeXY';
Function rotozoomSurfaceXY(src: PSDL_Surface; angle, zoomx, zoomy: Double; smooth: cint32):PSDL_Surface; cdecl; external GFX_LibName name '_rotozoomSurfaceXY';
Function roundedBoxColor(renderer: PSDL_Renderer; x1, y1, x2, y2, rad: cint16; colour: cuint32):cint32; cdecl; external GFX_LibName name '_roundedBoxColor';
Function roundedBoxRGBA(renderer: PSDL_Renderer; x1, y1, x2, y2, rad: cint16; r, g, b, a: cuint8):cint32; cdecl; external GFX_LibName name '_roundedBoxRGBA';
Function roundedRectangleColor(renderer: PSDL_Renderer; x1, y1, x2, y2, rad: cint16; colour: cuint32):cint32; cdecl; external GFX_LibName name '_roundedRectangleColor';
Function roundedRectangleRGBA(renderer: PSDL_Renderer; x1, y1, x2, y2, rad: cint16; r, g, b, a: cuint8):cint32; cdecl; external GFX_LibName name '_roundedRectangleRGBA';
Function SDL_framerateDelay(manager: PFPSManager):cuint32; cdecl; external GFX_LibName name '_SDL_framerateDelay';
Function SDL_getFramecount(manager: PFPSManager):cint32; cdecl; external GFX_LibName name '_SDL_getFramecount';
Function SDL_getFramerate(manager: PFPSManager):cint32; cdecl; external GFX_LibName name '_SDL_getFramerate';
Procedure SDL_GFX_VERSION(Out X: TSDL_Version);
Function SDL_imageFilterAbsDiff(Src1, Src2, Dest : pcuint8; Length:cuint32):cint32; cdecl; external GFX_LibName name '_SDL_imageFilterAbsDiff';
Function SDL_imageFilterAdd(Src1, Src2, Dest : pcuint8; Length : cuint32):cint32; cdecl; external GFX_LibName name '_SDL_imageFilterAdd';
Function SDL_imageFilterAddByte(Src1, Dest : pcuint8; Length:cuint32; C : cuint8):cint32; cdecl; external GFX_LibName name '_SDL_imageFilterAddByte';
Function SDL_imageFilterAddByteToHalf(Src1, Dest : pcuint8; Length:cuint32; C : cuint8):cint32; cdecl; external GFX_LibName name '_SDL_imageFilterAddByteToHalf';
Function SDL_imageFilterAddUsInt32(Src1, Dest : pcuint8; Length:cuint32; C : cuint32):cint32; cdecl; external GFX_LibName name '_SDL_imageFilterAddUsInt32';
Function SDL_imageFilterBinarizeUsingThreshold(Src1, Dest : pcuint8; Length:cuint32; T: cuint8):cint32; cdecl; external GFX_LibName name '_SDL_imageFilterBinarizeUsingThreshold';
Function SDL_imageFilterBitAnd(Src1, Src2, Dest : pcuint8; Length:cuint32):cint32; cdecl; external GFX_LibName name '_SDL_imageFilterBitAnd';
Function SDL_imageFilterBitNegation(Src1, Dest : pcuint8; Length:cuint32):cint32; cdecl; external GFX_LibName name '_SDL_imageFilterBitNegation';
Function SDL_imageFilterBitOr(Src1, Src2, Dest : pcuint8; Length:cuint32):cint32; cdecl; external GFX_LibName name '_SDL_imageFilterBitOr';
Function SDL_imageFilterClipToRange(Src1, Dest : pcuint8; Length:cuint32; Tmin, Tmax: cuint8):cint32; cdecl; external GFX_LibName name '_SDL_imageFilterClipToRange';
Function SDL_imageFilterDiv(Src1, Src2, Dest : pcuint8; Length:cuint32):cint32; cdecl; external GFX_LibName name '_SDL_imageFilterDiv';
Function SDL_imageFilterMean(Src1, Src2, Dest : pcuint8; Length:cuint32):cint32; cdecl; external GFX_LibName name '_SDL_imageFilterMean';
Function SDL_imageFilterMMXdetect():cint32; cdecl; external GFX_LibName name '_SDL_imageFilterMMXdetect';
Procedure SDL_imageFilterMMXoff(); cdecl; external GFX_LibName name '_SDL_imageFilterMMXoff';
Procedure SDL_imageFilterMMXon(); cdecl; external GFX_LibName name '_SDL_imageFilterMMXon';
Function SDL_imageFilterMult(Src1, Src2, Dest : pcuint8; Length:cuint32):cint32; cdecl; external GFX_LibName name '_SDL_imageFilterMult';
Function SDL_imageFilterMultByByte(Src1, Dest : pcuint8; Length:cuint32; C : cuint8):cint32; cdecl; external GFX_LibName name '_SDL_imageFilterMultByByte';
Function SDL_imageFilterMultDivby2(Src1, Src2, Dest : pcuint8; Length: cuint32):cint32; cdecl; external GFX_LibName name '_SDL_imageFilterMultDivby2';
Function SDL_imageFilterMultDivby4(Src1, Src2, Dest : pcuint8; Length : cuint32):cint32; cdecl; external GFX_LibName name '_SDL_imageFilterMultDivby4';
Function SDL_imageFilterMultNor(Src1, Src2, Dest : pcuint8; Length:cuint32):cint32; cdecl; external GFX_LibName name '_SDL_imageFilterMultNor';
Function SDL_imageFilterNormalizeLinear(Src, Dest: pcuint8; Length, Cmin, Cmax, Nmin, Nmax: cint32):cint32; cdecl; external GFX_LibName name '_SDL_imageFilterNormalizeLinear';
Function SDL_imageFilterShiftLeft(Src1, Dest : pcuint8; Length:cuint32; N : cuint8):cint32; cdecl; external GFX_LibName name '_SDL_imageFilterShiftLeft';
Function SDL_imageFilterShiftLeftByte(Src1, Dest : pcuint8; Length:cuint32; N: cuint8):cint32; cdecl; external GFX_LibName name '_SDL_imageFilterShiftLeftByte';
Function SDL_imageFilterShiftLeftUsInt32(Src1, Dest : pcuint8; Length:cuint32; N:cuint8):cint32; cdecl; external GFX_LibName name '_SDL_imageFilterShiftLeftUsInt32';
Function SDL_imageFilterShiftRight(Src1, Dest : pcuint8; Length:cuint32; N : cuint8):cint32; cdecl; external GFX_LibName name '_SDL_imageFilterShiftRight';
Function SDL_imageFilterShiftRightAndMultByByte(Src1, Dest : pcuint8; Length:cuint32; N, C : cuint8):cint32; cdecl; external GFX_LibName name '_SDL_imageFilterShiftRightAndMultByByte';
Function SDL_imageFilterShiftRightUsInt32(Src1, Dest : pcuint8; Length:cuint32; N : cuint8):cint32; cdecl; external GFX_LibName name '_SDL_imageFilterShiftRightUsInt32';
Function SDL_imageFilterSub(Src1, Src2, Dest : pcuint8; Length:cuint32):cint32; cdecl; external GFX_LibName name '_SDL_imageFilterSub';
Function SDL_imageFilterSubByte(Src1, Dest : pcuint8; Length:cuint32; C : cuint8):cint32; cdecl; external GFX_LibName name '_SDL_imageFilterSubByte';
Function SDL_imageFilterSubUsInt32(Src1, Dest : pcuint8; Length:cuint32; C : cuint32):cint32; cdecl; external GFX_LibName name '_SDL_imageFilterSubUsInt32';
Procedure SDL_initFramerate(manager: PFPSManager); cdecl; external GFX_LibName name '_SDL_initFramerate';
Function SDL_setFramerate(manager: PFPSManager; rate: cuint32):cint32; cdecl; external GFX_LibName name '_SDL_setFramerate';
Function shrinkSurface(src: PSDL_Surface; factorx, factory: cint32):PSDL_Surface; cdecl; external GFX_LibName name '_shrinkSurface';
Function stringColor(renderer: PSDL_Renderer; x, y: cint16; Const str: PChar; colour: cuint32):cint32; cdecl; external GFX_LibName name '_stringColor';
Function stringRGBA(renderer: PSDL_Renderer; x, y: cint16; Const syt: PChar; r, g, b, a: cuint8):cint32; cdecl; external GFX_LibName name '_stringRGBA';
Function texturedPolygon(renderer: PSDL_Renderer; Const vx, vy: pcint16; n: cint32; texture: PSDL_Surface; texture_dx, texture_dy: cint32):cint32; cdecl; external GFX_LibName name '_texturedPolygon';
Function thickLineColor(renderer: PSDL_Renderer; x1, y1, x2, y2: cint16; width: cuint8; colour: cuint32):cint32; cdecl; external GFX_LibName name '_thickLineColor';
Function thickLineRGBA(renderer: PSDL_Renderer; x1, y1, x2, y2: cint16; width, r, g, b, a: cuint8):cint32; cdecl; external GFX_LibName name '_thickLineRGBA';
Function trigonColor(renderer: PSDL_Renderer; x1, y1, x2, y2, x3, y3: cint16; colour: cuint32):cint32; cdecl; external GFX_LibName name '_trigonColor';
Function trigonRGBA(renderer: PSDL_Renderer; x1, y1, x2, y2, x3, y3: cint16; r, g, b, a: cuint8):cint32; cdecl; external GFX_LibName name '_trigonRGBA';
Function vlineColor(renderer: PSDL_Renderer; x, y1, y2: cint16; colour: cuint32):cint32; cdecl; external GFX_LibName name '_vlineColor';
Function vlineRGBA(renderer: PSDL_Renderer; x, y1, y2: cint16; r, g, b, a: cuint8):cint32; cdecl; external GFX_LibName name '_vlineRGBA';
Function zoomSurface(src: PSDL_Surface; zoomx, zoomy: Double; smooth: cint32):PSDL_Surface; cdecl; external GFX_LibName name '_zoomSurface';
Procedure zoomSurfaceSize(width, height: cint32; zoomx, zoomy: Double; dstwidth, dstheight: pcuint32); cdecl; external GFX_LibName name '_zoomSurfaceSize';

Types

cintptr_t = PtrInt;
cuintptr_t = PtrUInt;
PFPSManager = ˆTFPSManager;
ppcuint8 = ˆpcuint8;
PPUInt8Array = ˆPUInt8Array;
PUInt8Array = ˆTUInt8Array;
TUInt8Array = array [0..MAXINT shr 1] of cuint8;

Constants

FPS_DEFAULT = 30;
FPS_LOWER_LIMIT = 1;
FPS_UPPER_LIMIT = 200;
SDL2_GFXPRIMITIVES_MAJOR = 1;
SDL2_GFXPRIMITIVES_MICRO = 1;
SDL2_GFXPRIMITIVES_MINOR = 0;
SMOOTHING_OFF = 0;
SMOOTHING_ON = 1;

Description

Functions and Procedures

Function aacircleColor(renderer: PSDL_Renderer; x, y, rad: cint16; colour: cuint32):cint32; cdecl; external GFX_LibName name '_aacircleColor';

AA Circle

Function aacircleRGBA(renderer: PSDL_Renderer; x, y, rad: cint16; r, g, b, a: cuint8):cint32; cdecl; external GFX_LibName name '_aacircleRGBA';
 
Function aaellipseColor(renderer: PSDL_Renderer; x, y, rx, ry: cint16; colour: cuint32):cint32; cdecl; external GFX_LibName name '_aaellipseColor';

AA Ellipse

Function aaellipseRGBA(renderer: PSDL_Renderer; x, y, rx, ry: cint16; r, g, b, a: cuint8):cint32; cdecl; external GFX_LibName name '_aaellipseRGBA';
 
Function aalineColor(renderer: PSDL_Renderer; x1, y1, x2, y2: cint16; colour: cuint32):cint32; cdecl; external GFX_LibName name '_aalineColor';

AA Line

Function aalineRGBA(renderer: PSDL_Renderer; x1, y1, x2, y2: cint16; r, g, b, a: cuint8):cint32; cdecl; external GFX_LibName name '_aalineRGBA';
 
Function aapolygonColor(renderer: PSDL_Renderer; Const vx, vy: pcint16; n: cint32; colour: cuint32):cint32; cdecl; external GFX_LibName name '_aapolygonColor';

AA-Polygon

Function aapolygonRGBA(renderer: PSDL_Renderer; Const vx, vy: pcint16; n: cint32; r, g, b, a: cuint8):cint32; cdecl; external GFX_LibName name '_aapolygonRGBA';
 
Function aatrigonColor(renderer: PSDL_Renderer; x1, y1, x2, y2, x3, y3: cint16; colour: cuint32):cint32; cdecl; external GFX_LibName name '_aatrigonColor';

AA-Trigon

Function aatrigonRGBA(renderer: PSDL_Renderer; x1, y1, x2, y2, x3, y3: cint16; r, g, b, a: cuint8):cint32; cdecl; external GFX_LibName name '_aatrigonRGBA';
 
Function arcColor(renderer: PSDL_Renderer; x, y, rad, start, finish: cint16; colour: cuint32):cint32; cdecl; external GFX_LibName name '_arcColor';

Arc

Function arcRGBA(renderer: PSDL_Renderer; x, y, rad, start, finish: cint16; r, g, b, a: cuint8):cint32; cdecl; external GFX_LibName name '_arcRGBA';
 
Function bezierColor(renderer: PSDL_Renderer; Const vx, vy: pcint16; n, s: cint32; colour: cuint32):cint32; cdecl; external GFX_LibName name '_bezierColor';

Bezier

Function bezierRGBA(renderer: PSDL_Renderer; Const vx, vy: pcint16; n, s: cint32; r, g, b, a: cuint8):cint32; cdecl; external GFX_LibName name '_bezierRGBA';
 
Function boxColor(renderer: PSDL_Renderer; x1, y1, x2, y2: cint16; colour: cuint32):cint32; cdecl; external GFX_LibName name '_boxColor';

Filled rectangle (Box)

Function boxRGBA(renderer: PSDL_Renderer; x1, y1, x2, y2: cint16; r, g, b, a: cuint8):cint32; cdecl; external GFX_LibName name '_boxRGBA';
 
Function characterColor(renderer: PSDL_Renderer; x, y: cint16; c: Char; colour: cuint32):cint32; cdecl; external GFX_LibName name '_characterColor';
 
Function characterRGBA(renderer: PSDL_Renderer; x, y: cint16; c: Char; r, g, b, a: cuint8):cint32; cdecl; external GFX_LibName name '_characterRGBA';
 
Function circleColor(renderer: PSDL_Renderer; x, y, rad: cint16; colour: cuint32):cint32; cdecl; external GFX_LibName name '_circleColor';

Circle

Function circleRGBA(renderer: PSDL_Renderer; x, y, rad: cint16; r, g, b, a: cuint8):cint32; cdecl; external GFX_LibName name '_circleRGBA';
 
Function ellipseColor(renderer: PSDL_Renderer; x, y, rx, ry: cint16; colour: cuint32):cint32; cdecl; external GFX_LibName name '_ellipseColor';

Ellipse

Function ellipseRGBA(renderer: PSDL_Renderer; x, y, rx, ry: cint16; r, g, b, a: cuint8):cint32; cdecl; external GFX_LibName name '_ellipseRGBA';
 
Function filledCircleColor(renderer: PSDL_Renderer; x, y, rad: cint16; colour: cuint32):cint32; cdecl; external GFX_LibName name '_filledCircleColor';

Filled Circle

Function filledCircleRGBA(renderer: PSDL_Renderer; x, y, rad: cint16; r, g, b, a: cuint8):cint32; cdecl; external GFX_LibName name '_filledCircleRGBA';
 
Function filledEllipseColor(renderer: PSDL_Renderer; x, y, rx, ry: cint16; colour: cuint32):cint32; cdecl; external GFX_LibName name '_filledEllipseColor';

Filled Ellipse

Function filledEllipseRGBA(renderer: PSDL_Renderer; x, y, rx, ry: cint16; r, g, b, a: cuint8):cint32; cdecl; external GFX_LibName name '_filledEllipseRGBA';
 
Function filledPieColor(renderer: PSDL_Renderer; x, y, rad, start, finish: cint16; colour: cuint32):cint32; cdecl; external GFX_LibName name '_filledPieColor';

Filled Pie

Function filledPieRGBA(renderer: PSDL_Renderer; x, y, rad, start, finish: cint16; r, g, b, a: cuint8):cint32; cdecl; external GFX_LibName name '_filledPieRGBA';
 
Function filledPolygonColor(renderer: PSDL_Renderer; Const vx, vy: pcint16; n: cint32; colour: cuint32):cint32; cdecl; external GFX_LibName name '_filledPolygonColor';

Filled Polygon

Function filledPolygonRGBA(renderer: PSDL_Renderer; Const vx, vy: pcint16; n: cint32; r, g, b, a: cuint8):cint32; cdecl; external GFX_LibName name '_filledPolygonRGBA';
 
Function filledTrigonColor(renderer: PSDL_Renderer; x1, y1, x2, y2, x3, y3: cint16; colour: cuint32):cint32; cdecl; external GFX_LibName name '_filledTrigonColor';

Filled Trigon

Function filledTrigonRGBA(renderer: PSDL_Renderer; x1, y1, x2, y2, x3, y3: cint16; r, g, b, a: cuint8):cint32; cdecl; external GFX_LibName name '_filledTrigonRGBA';
 
Procedure gfxPrimitivesSetFont(Const fontdata: Pointer; cw, ch: cuint32); cdecl; external GFX_LibName name '_gfxPrimitivesSetFont';

Characters/Strings

Procedure gfxPrimitivesSetFontRotation(rotation: cuint32); cdecl; external GFX_LibName name '_gfxPrimitivesSetFontRotation';
 
Function hlineColor(renderer: PSDL_Renderer; x1, x2, y: cint16; colour: cuint32):cint32; cdecl; external GFX_LibName name '_hlineColor';

Horizontal line

Function hlineRGBA(renderer: PSDL_Renderer; x1, x2, y:cint16; r, g, b, a: cuint8):cint32; cdecl; external GFX_LibName name '_hlineRGBA';
 
Function lineColor(renderer: PSDL_Renderer; x1, y1, x2, y2: cint16; colour: cuint32):cint32; cdecl; external GFX_LibName name '_lineColor';

Line

Function lineRGBA(renderer: PSDL_Renderer; x1, y1, x2, y2: cint16; r, g, b, a: cuint8):cint32; cdecl; external GFX_LibName name '_lineRGBA';
 
Function pieColor(renderer: PSDL_Renderer; x, y, rad, start, finish: cint16; colour: cuint32):cint32; cdecl; external GFX_LibName name '_pieColor';

Pie

Function pieRGBA(renderer: PSDL_Renderer; x, y, rad, start, finish: cint16; r, g, b, a: cuint8):cint32; cdecl; external GFX_LibName name '_pieRGBA';
 
Function pixelColor(renderer: PSDL_Renderer; x, y: cint16; colour: cuint32):cint32; cdecl; external GFX_LibName name '_pixelColor';

Pixel *

Function pixelRGBA(renderer: PSDL_Renderer; x, y: cint16; r, g, b, a: cuint8):cint32; cdecl; external GFX_LibName name '_pixelRGBA';
 
Function polygonColor(renderer: PSDL_Renderer; Const vx, vy: pcint16; n: cint32; colour: cuint32):cint32; cdecl; external GFX_LibName name '_polygonColor';

Polygon

Function polygonRGBA(renderer: PSDL_Renderer; Const vx, vy: pcint16; n: cint32; r, g, b, a: cuint8):cint32; cdecl; external GFX_LibName name '_polugonRGBA';
 
Function rectangleColor(renderer: PSDL_Renderer; x1, y1, x2, y2: cint16; colour: cuint32):cint32; cdecl; external GFX_LibName name '_rectangleColor';

Rectangle

Function rectangleRGBA(renderer: PSDL_Renderer; x1, y1, x2, y2: cint16; r, g, b, a: cuint8):cint32; cdecl; external GFX_LibName name '_rectangleRGBA';
 
Function rotateSurface90Degrees(src: PSDL_Surface; numClockwiseTurns: cint32):PSDL_Surface; cdecl; external GFX_LibName name '_rotateSurface90Degrees';

Specialized rotation functions

Function rotozoomSurface(src: PSDL_Surface; angle, zoom: Double; smooth: cint32):PSDL_Surface; cdecl; external GFX_LibName name '_rotozoomSurface';

Rotozoom functions

Procedure rotozoomSurfaceSize(width, height: cint32; angle, zoom: Double; dstwidth, dstheight: pcuint32); cdecl; external GFX_LibName name '_rotozoomSurfaceSize';
 
Procedure rotozoomSurfaceSizeXY(width, height: cint32; angle, zoomx, zoomy: Double; dstwidth, dstheight:pcuint32); cdecl; external GFX_LibName name '_rotozoomSurfaceSizeXY';
 
Function rotozoomSurfaceXY(src: PSDL_Surface; angle, zoomx, zoomy: Double; smooth: cint32):PSDL_Surface; cdecl; external GFX_LibName name '_rotozoomSurfaceXY';
 
Function roundedBoxColor(renderer: PSDL_Renderer; x1, y1, x2, y2, rad: cint16; colour: cuint32):cint32; cdecl; external GFX_LibName name '_roundedBoxColor';

Rounded-Corner Filled rectangle (Box)

Function roundedBoxRGBA(renderer: PSDL_Renderer; x1, y1, x2, y2, rad: cint16; r, g, b, a: cuint8):cint32; cdecl; external GFX_LibName name '_roundedBoxRGBA';
 
Function roundedRectangleColor(renderer: PSDL_Renderer; x1, y1, x2, y2, rad: cint16; colour: cuint32):cint32; cdecl; external GFX_LibName name '_roundedRectangleColor';

Rounded-Corner Rectangle

Function roundedRectangleRGBA(renderer: PSDL_Renderer; x1, y1, x2, y2, rad: cint16; r, g, b, a: cuint8):cint32; cdecl; external GFX_LibName name '_roundedRectangleRGBA';
 
Function SDL_framerateDelay(manager: PFPSManager):cuint32; cdecl; external GFX_LibName name '_SDL_framerateDelay';
 
Function SDL_getFramecount(manager: PFPSManager):cint32; cdecl; external GFX_LibName name '_SDL_getFramecount';
 
Function SDL_getFramerate(manager: PFPSManager):cint32; cdecl; external GFX_LibName name '_SDL_getFramerate';
 
Procedure SDL_GFX_VERSION(Out X: TSDL_Version);
 
Function SDL_imageFilterAbsDiff(Src1, Src2, Dest : pcuint8; Length:cuint32):cint32; cdecl; external GFX_LibName name '_SDL_imageFilterAbsDiff';

SDL_imageFilterAbsDiff: D = | S1 - S2 |

Function SDL_imageFilterAdd(Src1, Src2, Dest : pcuint8; Length : cuint32):cint32; cdecl; external GFX_LibName name '_SDL_imageFilterAdd';

SDL_imageFilterAdd: D = saturation255(S1 + S2)

Function SDL_imageFilterAddByte(Src1, Dest : pcuint8; Length:cuint32; C : cuint8):cint32; cdecl; external GFX_LibName name '_SDL_imageFilterAddByte';

SDL_imageFilterAddByte: D = saturation255(S + C)

Function SDL_imageFilterAddByteToHalf(Src1, Dest : pcuint8; Length:cuint32; C : cuint8):cint32; cdecl; external GFX_LibName name '_SDL_imageFilterAddByteToHalf';

SDL_imageFilterAddByteToHalf: D = saturation255(S/2 + C)

Function SDL_imageFilterAddUsInt32(Src1, Dest : pcuint8; Length:cuint32; C : cuint32):cint32; cdecl; external GFX_LibName name '_SDL_imageFilterAddUsInt32';

SDL_imageFilterAddUsInt32: D = saturation255(S + (usInt32)C)

Function SDL_imageFilterBinarizeUsingThreshold(Src1, Dest : pcuint8; Length:cuint32; T: cuint8):cint32; cdecl; external GFX_LibName name '_SDL_imageFilterBinarizeUsingThreshold';

SDL_imageFilterBinarizeUsingThreshold: D = S >= T ? 255:0

Function SDL_imageFilterBitAnd(Src1, Src2, Dest : pcuint8; Length:cuint32):cint32; cdecl; external GFX_LibName name '_SDL_imageFilterBitAnd';

SDL_imageFilterBitAnd: D = S1 & S2

Function SDL_imageFilterBitNegation(Src1, Dest : pcuint8; Length:cuint32):cint32; cdecl; external GFX_LibName name '_SDL_imageFilterBitNegation';

SDL_imageFilterBitNegation: D = !S

Function SDL_imageFilterBitOr(Src1, Src2, Dest : pcuint8; Length:cuint32):cint32; cdecl; external GFX_LibName name '_SDL_imageFilterBitOr';

SDL_imageFilterBitOr: D = S1 | S2

Function SDL_imageFilterClipToRange(Src1, Dest : pcuint8; Length:cuint32; Tmin, Tmax: cuint8):cint32; cdecl; external GFX_LibName name '_SDL_imageFilterClipToRange';

SDL_imageFilterClipToRange: D = (S >= Tmin) & (S <= Tmax) 255:0

Function SDL_imageFilterDiv(Src1, Src2, Dest : pcuint8; Length:cuint32):cint32; cdecl; external GFX_LibName name '_SDL_imageFilterDiv';

SDL_imageFilterDiv: D = S1 / S2 (non-MMX)

Function SDL_imageFilterMean(Src1, Src2, Dest : pcuint8; Length:cuint32):cint32; cdecl; external GFX_LibName name '_SDL_imageFilterMean';

SDL_imageFilterMean: D = S1/2 + S2/2

Function SDL_imageFilterMMXdetect():cint32; cdecl; external GFX_LibName name '_SDL_imageFilterMMXdetect';

Detect MMX capability in CPU

Procedure SDL_imageFilterMMXoff(); cdecl; external GFX_LibName name '_SDL_imageFilterMMXoff';

Force use of MMX off (or turn possible use back on)

Procedure SDL_imageFilterMMXon(); cdecl; external GFX_LibName name '_SDL_imageFilterMMXon';
 
Function SDL_imageFilterMult(Src1, Src2, Dest : pcuint8; Length:cuint32):cint32; cdecl; external GFX_LibName name '_SDL_imageFilterMult';

SDL_imageFilterMult: D = saturation(S1 * S2)

Function SDL_imageFilterMultByByte(Src1, Dest : pcuint8; Length:cuint32; C : cuint8):cint32; cdecl; external GFX_LibName name '_SDL_imageFilterMultByByte';

SDL_imageFilterMultByByte: D = saturation255(S * C)

Function SDL_imageFilterMultDivby2(Src1, Src2, Dest : pcuint8; Length: cuint32):cint32; cdecl; external GFX_LibName name '_SDL_imageFilterMultDivby2';

SDL_imageFilterMultDivby2: D = saturation255(S1/2 * S2)

Function SDL_imageFilterMultDivby4(Src1, Src2, Dest : pcuint8; Length : cuint32):cint32; cdecl; external GFX_LibName name '_SDL_imageFilterMultDivby4';

SDL_imageFilterMultDivby4: D = saturation255(S1/2 * S2/2)

Function SDL_imageFilterMultNor(Src1, Src2, Dest : pcuint8; Length:cuint32):cint32; cdecl; external GFX_LibName name '_SDL_imageFilterMultNor';

SDL_imageFilterMultNor: D = S1 * S2 (non-MMX)

Function SDL_imageFilterNormalizeLinear(Src, Dest: pcuint8; Length, Cmin, Cmax, Nmin, Nmax: cint32):cint32; cdecl; external GFX_LibName name '_SDL_imageFilterNormalizeLinear';

SDL_imageFilterNormalizeLinear: D = saturation255((Nmax - Nmin)/(Cmax - Cmin)*(S - Cmin) + Nmin)

Function SDL_imageFilterShiftLeft(Src1, Dest : pcuint8; Length:cuint32; N : cuint8):cint32; cdecl; external GFX_LibName name '_SDL_imageFilterShiftLeft';

SDL_imageFilterShiftLeft: D = saturation255(S << N)

Function SDL_imageFilterShiftLeftByte(Src1, Dest : pcuint8; Length:cuint32; N: cuint8):cint32; cdecl; external GFX_LibName name '_SDL_imageFilterShiftLeftByte';

SDL_imageFilterShiftLeftByte: D = (S << N)

Function SDL_imageFilterShiftLeftUsInt32(Src1, Dest : pcuint8; Length:cuint32; N:cuint8):cint32; cdecl; external GFX_LibName name '_SDL_imageFilterShiftLeftUsInt32';

SDL_imageFilterShiftLeftUsInt32: D = ((usInt32)S << N)

Function SDL_imageFilterShiftRight(Src1, Dest : pcuint8; Length:cuint32; N : cuint8):cint32; cdecl; external GFX_LibName name '_SDL_imageFilterShiftRight';

SDL_imageFilterShiftRight: D = saturation0(S >> N)

Function SDL_imageFilterShiftRightAndMultByByte(Src1, Dest : pcuint8; Length:cuint32; N, C : cuint8):cint32; cdecl; external GFX_LibName name '_SDL_imageFilterShiftRightAndMultByByte';

SDL_imageFilterShiftRightAndMultByByte: D = saturation255((S >> N) * C)

Function SDL_imageFilterShiftRightUsInt32(Src1, Dest : pcuint8; Length:cuint32; N : cuint8):cint32; cdecl; external GFX_LibName name '_SDL_imageFilterShiftRightUsInt32';

SDL_imageFilterShiftRightUsInt32: D = saturation0((usInt32)S >> N)

Function SDL_imageFilterSub(Src1, Src2, Dest : pcuint8; Length:cuint32):cint32; cdecl; external GFX_LibName name '_SDL_imageFilterSub';

SDL_imageFilterSub: D = saturation0(S1 - S2)

Function SDL_imageFilterSubByte(Src1, Dest : pcuint8; Length:cuint32; C : cuint8):cint32; cdecl; external GFX_LibName name '_SDL_imageFilterSubByte';

SDL_imageFilterSubByte: D = saturation0(S - C)

Function SDL_imageFilterSubUsInt32(Src1, Dest : pcuint8; Length:cuint32; C : cuint32):cint32; cdecl; external GFX_LibName name '_SDL_imageFilterSubUsInt32';

SDL_imageFilterSubUsInt32: D = saturation0(S - (usInt32)C)

Procedure SDL_initFramerate(manager: PFPSManager); cdecl; external GFX_LibName name '_SDL_initFramerate';
 
Function SDL_setFramerate(manager: PFPSManager; rate: cuint32):cint32; cdecl; external GFX_LibName name '_SDL_setFramerate';
 
Function shrinkSurface(src: PSDL_Surface; factorx, factory: cint32):PSDL_Surface; cdecl; external GFX_LibName name '_shrinkSurface';

Shrinking functions

Function stringColor(renderer: PSDL_Renderer; x, y: cint16; Const str: PChar; colour: cuint32):cint32; cdecl; external GFX_LibName name '_stringColor';
 
Function stringRGBA(renderer: PSDL_Renderer; x, y: cint16; Const syt: PChar; r, g, b, a: cuint8):cint32; cdecl; external GFX_LibName name '_stringRGBA';
 
Function texturedPolygon(renderer: PSDL_Renderer; Const vx, vy: pcint16; n: cint32; texture: PSDL_Surface; texture_dx, texture_dy: cint32):cint32; cdecl; external GFX_LibName name '_texturedPolygon';

Textured Polygon

Function thickLineColor(renderer: PSDL_Renderer; x1, y1, x2, y2: cint16; width: cuint8; colour: cuint32):cint32; cdecl; external GFX_LibName name '_thickLineColor';

Thick Line

Function thickLineRGBA(renderer: PSDL_Renderer; x1, y1, x2, y2: cint16; width, r, g, b, a: cuint8):cint32; cdecl; external GFX_LibName name '_thickLineRGBA';
 
Function trigonColor(renderer: PSDL_Renderer; x1, y1, x2, y2, x3, y3: cint16; colour: cuint32):cint32; cdecl; external GFX_LibName name '_trigonColor';

Trigon

Function trigonRGBA(renderer: PSDL_Renderer; x1, y1, x2, y2, x3, y3: cint16; r, g, b, a: cuint8):cint32; cdecl; external GFX_LibName name '_trigonRGBA';
 
Function vlineColor(renderer: PSDL_Renderer; x, y1, y2: cint16; colour: cuint32):cint32; cdecl; external GFX_LibName name '_vlineColor';

Vertical line

Function vlineRGBA(renderer: PSDL_Renderer; x, y1, y2: cint16; r, g, b, a: cuint8):cint32; cdecl; external GFX_LibName name '_vlineRGBA';
 
Function zoomSurface(src: PSDL_Surface; zoomx, zoomy: Double; smooth: cint32):PSDL_Surface; cdecl; external GFX_LibName name '_zoomSurface';

Zooming functions

Procedure zoomSurfaceSize(width, height: cint32; zoomx, zoomy: Double; dstwidth, dstheight: pcuint32); cdecl; external GFX_LibName name '_zoomSurfaceSize';
 

Types

cintptr_t = PtrInt;
 
cuintptr_t = PtrUInt;

"The following type designates an unsigned integer type [or signed respectivly] with the property that any valid pointer to void can be converted to this type, then converted back to a pointer to void, and the result will compare equal to the original pointer: uintptr_t" Source: https://pubs.opengroup.org/onlinepubs/000095399/basedefs/stdint.h.html

PFPSManager = ˆTFPSManager;
 
ppcuint8 = ˆpcuint8;
 
PPUInt8Array = ˆPUInt8Array;

Data types for all compilers

PUInt8Array = ˆTUInt8Array;
 
TUInt8Array = array [0..MAXINT shr 1] of cuint8;
 

Constants

FPS_DEFAULT = 30;

! \brief Default rate of framerate controller in Hz (1/s).

FPS_LOWER_LIMIT = 1;

! \brief Lowest possible rate supported by framerate controller in Hz (1/s).

FPS_UPPER_LIMIT = 200;

! \brief Highest possible rate supported by framerate controller in Hz (1/s).

SDL2_GFXPRIMITIVES_MAJOR = 1;

—< SDL2_gfxPrimitives.h >—

SDL2_GFXPRIMITIVES_MICRO = 1;
 
SDL2_GFXPRIMITIVES_MINOR = 0;
 
SMOOTHING_OFF = 0;

! \brief Disable anti-aliasing (no smoothing).

SMOOTHING_ON = 1;

! \brief Enable anti-aliasing (smoothing).


Generated by PasDoc 0.16.0.