Tao.Sdl SDK Documentation

SdlGfx Members

SdlGfx overview

Public Static (Shared) Fields

FPS_DEFAULT
FPS_LOWER_LIMIT
FPS_UPPER_LIMIT
SDL_GFXPRIMITIVES_MAJOR Major Version
SDL_GFXPRIMITIVES_MICRO Micro Version
SDL_GFXPRIMITIVES_MINOR Minor Version
SMOOTHING_OFF
SMOOTHING_ON

Public Static (Shared) Methods

aacircleColor AA Circle
aacircleRGBA AA Circle
aaellipseColor AA Ellipse
aaellipseRGBA AA Ellipse
aalineColor AA Line
aalineRGBA AA Line
aapolygonColor AA-Polygon
aapolygonRGBA AA-Polygon
aatrigonColor AA-Trigon
aatrigonRGBA AA-Trigon
bezierColor Bezier
bezierRGBA Bezier
boxColor Filled rectangle (Box)
boxRGBA Filled rectangle (Box)
characterColor Character
characterRGBA Character
circleColor Circle
circleRGBA Circle
ellipseColor Ellipse
ellipseRGBA Ellipse
filledCircleColor Filled Circle
filledCircleRGBA Filled Circle
filledEllipseColor Filled Ellipse
filledEllipseRGBA Filled Ellipse
filledPieColor Filled Pie
filledPieRGBA Filled Pie
filledPolygonColor Filled Polygon
filledPolygonRGBA Filled Polygon
filledTrigonColor Filled Trigon
filledTrigonRGBA Filled Trigon
gfxPrimitivesSetFont
hlineColor Horizontal line
hlineRGBA Horizontal line
lineColor Line
lineRGBA Line
pieColor Pie
pieRGBA Pie
pixelColor Pixel
pixelRGBA Pixel
polygonColor Polygon
polygonRGBA Polygon
rectangleColor Rectangle
rectangleRGBA Rectangle
rotozoomSurface Rotates and zoomes a 32bit or 8bit 'src' surface to newly created 'dst' surface. 'angle' is the rotation in degrees. 'zoom' a scaling factor. If 'smooth' is 1 then the destination 32bit surface is anti-aliased. If the surface is not 8bit or 32bit RGBA/ABGR it will be converted into a 32bit RGBA format on the fly.
rotozoomSurfaceSize Returns the size of the target surface for a rotozoomSurface() call
rotozoomSurfaceSizeXY Returns the size of the target surface for a rotozoomSurface() call
rotozoomSurfaceXY Rotates and zoomes a 32bit or 8bit 'src' surface to newly created 'dst' surface. 'angle' is the rotation in degrees. 'zoomx' and 'zoomy' are scaling factors that can also be negative. In this case the corresponding axis is flipped. If 'smooth' is 1 then the destination 32bit surface is anti-aliased. If the surface is not 8bit or 32bit RGBA/ABGR it will be converted into a 32bit RGBA format on the fly. Note: Flipping currently only works with antialiasing turned off.
SDL_framerateDelay
SDL_getFramerate
SDL_gfxBlitRGBA
SDL_gfxSetAlpha
SDL_imageFilterAbsDiff SDL_imageFilterAbsDiff: D = | S1 - S2 |
SDL_imageFilterAdd SDL_imageFilterAdd: D = saturation255(S1 + S2)
SDL_imageFilterAddByte SDL_imageFilterAddByte: D = saturation255(S + C)
SDL_imageFilterAddByteToHalf SDL_imageFilterAddByteToHalf: D = saturation255(S/2 + C)
SDL_imageFilterAddUint SDL_imageFilterAddUint: D = saturation255(S + (uint)C)
SDL_imageFilterAlignStack Align stack to 32 byte boundary -- Functionality untested! --. For MMX processors only.
SDL_imageFilterBinarizeUsingThreshold SDL_imageFilterBinarizeUsingThreshold: D = S >= T ? 255:0
SDL_imageFilterBitAnd SDL_imageFilterBitAnd: D = S1 & S2
SDL_imageFilterBitNegation SDL_imageFilterBitNegation: D = !S
SDL_imageFilterBitOr SDL_imageFilterBitOr: D = S1 | S2
SDL_imageFilterClipToRange SDL_imageFilterClipToRange: D = (S >= Tmin) & (S <= Tmax) 255:0
SDL_imageFilterConvolveKernel3x3Divide SDL_imageFilterConvolveKernel3x3Divide: Dij = saturation0and255( ... ). For MMX processors only.
SDL_imageFilterConvolveKernel3x3ShiftRight SDL_imageFilterConvolveKernel3x3ShiftRight: Dij = saturation0and255( ... ). For MMX processors only.
SDL_imageFilterConvolveKernel5x5Divide SDL_imageFilterConvolveKernel5x5Divide: Dij = saturation0and255( ... ). For MMX processors only.
SDL_imageFilterConvolveKernel5x5ShiftRight SDL_imageFilterConvolveKernel5x5ShiftRight: Dij = saturation0and255( ... ). For MMX processors only.
SDL_imageFilterConvolveKernel7x7Divide SDL_imageFilterConvolveKernel7x7Divide: Dij = saturation0and255( ... ). For MMX processors only.
SDL_imageFilterConvolveKernel7x7ShiftRight SDL_imageFilterConvolveKernel7x7ShiftRight: Dij = saturation0and255( ... ). For MMX processors only.
SDL_imageFilterConvolveKernel9x9Divide SDL_imageFilterConvolveKernel9x9Divide: Dij = saturation0and255( ... ). For MMX processors only.
SDL_imageFilterConvolveKernel9x9ShiftRight SDL_imageFilterConvolveKernel9x9ShiftRight: Dij = saturation0and255( ... ). For MMX processors only.
SDL_imageFilterDiv SDL_imageFilterDiv: D = S1 / S2 (non-MMX)
SDL_imageFilterMean SDL_imageFilterMean: D = S1/2 + S2/2
SDL_imageFilterMMXdetect Detect MMX capability in CPU
SDL_imageFilterMMXoff Force use of MMX off.
SDL_imageFilterMMXon Turn possible use of MMX back on
SDL_imageFilterMult SDL_imageFilterMult: D = saturation(S1 * S2)
SDL_imageFilterMultByByte SDL_imageFilterMultByByte: D = saturation255(S * C)
SDL_imageFilterMultDivby2 SDL_imageFilterMultDivby2: D = saturation255(S1/2 * S2)
SDL_imageFilterMultDivby4 SDL_imageFilterMultDivby4: D = saturation255(S1/2 * S2)
SDL_imageFilterMultNor SDL_imageFilterMultNor: D = S1 * S2 (non-MMX)
SDL_imageFilterNormalizeLinear SDL_imageFilterNormalizeLinear: D = saturation255((Nmax - Nmin)/(Cmax - Cmin)*(S - Cmin) + Nmin)
SDL_imageFilterRestoreStack Restore stack to 32 byte boundary -- Functionality untested! --. For MMX processors only.
SDL_imageFilterShiftLeft SDL_imageFilterShiftLeft: D = saturation255(S << N)
SDL_imageFilterShiftLeftByte SDL_imageFilterShiftLeftByte: D = (S << N)
SDL_imageFilterShiftLeftUint SDL_imageFilterShiftLeftUint: D = ((uint)S << N)
SDL_imageFilterShiftRight SDL_imageFilterShiftRight: D = saturation0(S >> N)
SDL_imageFilterShiftRightAndMultByByte SDL_imageFilterShiftRightAndMultByByte: D = saturation255((S >> N) * C)
SDL_imageFilterShiftRightUint SDL_imageFilterShiftRightUint: D = saturation0((uint)S >> N)
SDL_imageFilterSobelX SDL_imageFilterSobelX: Dij = saturation255( ... ). For MMX processors only.
SDL_imageFilterSobelXShiftRight SDL_imageFilterSobelXShiftRight: Dij = saturation255( ... ). For MMX processors only.
SDL_imageFilterSub SDL_imageFilterSub: D = saturation0(S1 - S2)
SDL_imageFilterSubByte SDL_imageFilterSubByte: D = saturation0(S - C)
SDL_imageFilterSubUint SDL_imageFilterSubUint: D = saturation0(S - (uint)C)
SDL_initFramerate
SDL_setFramerate
shrinkSurface Shrinks a 32bit or 8bit 'src' surface ti a newly created 'dst' surface. 'factorx' and 'factory' are the shrinking ratios (i.e. 2=1/2 the size, 3=1/3 the size, etc.) The destination surface is antialiased by averaging the source box RGBA or Y information. If the surface is not 8bit or 32bit RGBA/ABGR it will be converted into a 32bit RGBA format on the fly.
stringColor String
stringRGBA String
texturedPolygon Textured Polygon
trigonColor Trigon
trigonRGBA Trigon
vlineColor Vertical line
vlineRGBA Vertical Line
zoomSurface Zooms a 32bit or 8bit 'src' surface to newly created 'dst' surface. 'zoomx' and 'zoomy' are scaling factors for width and height. If 'smooth' is 1 then the destination 32bit surface is anti-aliased. If the surface is not 8bit or 32bit RGBA/ABGR it will be converted into a 32bit RGBA format on the fly.
zoomSurfaceSize Returns the size of the target surface for a zoomSurface() call

Public Instance Methods

Equals (inherited from Object) 
GetHashCode (inherited from Object) 
GetType (inherited from Object) 
ToString (inherited from Object) 

See Also

SdlGfx Class | Tao.Sdl Namespace