SdlRendererPointerEx extension

on

Methods

clear() bool

Available on Pointer<SdlRenderer>, provided by the SdlRendererPointerEx extension

Clear the current rendering target with the drawing color.
clipEnabled() bool

Available on Pointer<SdlRenderer>, provided by the SdlRendererPointerEx extension

Get whether clipping is enabled on the given renderer.
convertEventToCoordinates(Pointer<SdlEvent> event) bool

Available on Pointer<SdlRenderer>, provided by the SdlRendererPointerEx extension

Convert the coordinates in an event to render coordinates.
coordinatesFromWindow(double windowX, double windowY) Point<double>

Available on Pointer<SdlRenderer>, provided by the SdlRendererPointerEx extension

Get a point in render coordinates when given a point in window coordinates.
coordinatesToWindow(double x, double y) Point<double>

Available on Pointer<SdlRenderer>, provided by the SdlRendererPointerEx extension

Get a point in window coordinates when given a point in render coordinates.
createTexture(int format, int access, int w, int h) Pointer<SdlTexture>

Available on Pointer<SdlRenderer>, provided by the SdlRendererPointerEx extension

Create a texture for a rendering context.
createTextureFromSurface(Pointer<SdlSurface> surface) Pointer<SdlTexture>

Available on Pointer<SdlRenderer>, provided by the SdlRendererPointerEx extension

Create a texture from an existing surface.
createTextureWithProperties(int props) Pointer<SdlTexture>

Available on Pointer<SdlRenderer>, provided by the SdlRendererPointerEx extension

Create a texture for a rendering context with the specified properties.
destroy() bool

Available on Pointer<SdlRenderer>, provided by the SdlRendererPointerEx extension

Destroy the rendering context for a window and free all associated textures.
fillRect([Rectangle<double>? rect]) bool

Available on Pointer<SdlRenderer>, provided by the SdlRendererPointerEx extension

Fill a rectangle on the current rendering target with the drawing color at subpixel precision.
fillRects(List<Rectangle<double>> rects) bool

Available on Pointer<SdlRenderer>, provided by the SdlRendererPointerEx extension

Fill some number of rectangles on the current rendering target with the drawing color at subpixel precision.
flush() bool

Available on Pointer<SdlRenderer>, provided by the SdlRendererPointerEx extension

Force the rendering context to flush any pending commands and state.
geometry(Pointer<SdlVertex> vertices, Pointer<SdlTexture> texture, int numVertices, Pointer<Int32> indices, int numIndices) bool

Available on Pointer<SdlRenderer>, provided by the SdlRendererPointerEx extension

Render a list of triangles, optionally using a texture and indices into the vertex array Color and alpha modulation is done per vertex (SDL_SetTextureColorMod and SDL_SetTextureAlphaMod are ignored).
geometryRaw(Pointer<SdlTexture> texture, Pointer<Float> xy, int xyStride, Pointer<SdlFColor> color, int colorStride, Pointer<Float> uv, int uvStride, int numVertices, Pointer<NativeType> indices, int numIndices, int sizeIndices) bool

Available on Pointer<SdlRenderer>, provided by the SdlRendererPointerEx extension

Render a list of triangles, optionally using a texture and indices into the vertex arrays Color and alpha modulation is done per vertex (SDL_SetTextureColorMod and SDL_SetTextureAlphaMod are ignored).
getClipRect() Rectangle<double>

Available on Pointer<SdlRenderer>, provided by the SdlRendererPointerEx extension

Get the clip rectangle for the current target.
getColorScale() double

Available on Pointer<SdlRenderer>, provided by the SdlRendererPointerEx extension

Get the color scale used for render operations.
getCurrentOutputSize() Point<double>

Available on Pointer<SdlRenderer>, provided by the SdlRendererPointerEx extension

Get the current output size in pixels of a rendering context.
getDrawBlendMode() int

Available on Pointer<SdlRenderer>, provided by the SdlRendererPointerEx extension

Get the blend mode used for drawing operations.
getDrawColor(Pointer<SdlColor> color) bool

Available on Pointer<SdlRenderer>, provided by the SdlRendererPointerEx extension

Get the color used for drawing operations (Rect, Line and Clear).
getDrawColorFloat(Pointer<SdlFColor> color) bool

Available on Pointer<SdlRenderer>, provided by the SdlRendererPointerEx extension

Get the color used for drawing operations (Rect, Line and Clear).
getLogicalMode() int

Available on Pointer<SdlRenderer>, provided by the SdlRendererPointerEx extension

Get device independent resolution and presentation mode for rendering.
getLogicalPresentation(Pointer<Int32> w, Pointer<Int32> h, Pointer<Int32> mode) bool

Available on Pointer<SdlRenderer>, provided by the SdlRendererPointerEx extension

Get device independent resolution and presentation mode for rendering.
getLogicalSize() Point<double>

Available on Pointer<SdlRenderer>, provided by the SdlRendererPointerEx extension

Get device independent resolution and presentation mode for rendering.
getMetalCommandEncoder() Pointer<NativeType>

Available on Pointer<SdlRenderer>, provided by the SdlRendererPointerEx extension

Get the Metal command encoder for the current frame.
getMetalLayer() Pointer<NativeType>

Available on Pointer<SdlRenderer>, provided by the SdlRendererPointerEx extension

Get the CAMetalLayer associated with the given Metal renderer.
getOutputSize() Point<double>

Available on Pointer<SdlRenderer>, provided by the SdlRendererPointerEx extension

Get the output size in pixels of a rendering context.
getProperties() int

Available on Pointer<SdlRenderer>, provided by the SdlRendererPointerEx extension

Get the properties associated with a renderer.
getScale() Point<double>

Available on Pointer<SdlRenderer>, provided by the SdlRendererPointerEx extension

Get the drawing scale for the current target.
getTarget() Pointer<SdlTexture>

Available on Pointer<SdlRenderer>, provided by the SdlRendererPointerEx extension

Get the current render target.
getViewport() Rectangle<double>

Available on Pointer<SdlRenderer>, provided by the SdlRendererPointerEx extension

Get the drawing area for the current target.
getVSync() int

Available on Pointer<SdlRenderer>, provided by the SdlRendererPointerEx extension

Get VSync of the given renderer.
getWindow() Pointer<SdlWindow>

Available on Pointer<SdlRenderer>, provided by the SdlRendererPointerEx extension

Get the window associated with a renderer.
line(Point<double> p1, Point<double> p2) bool

Available on Pointer<SdlRenderer>, provided by the SdlRendererPointerEx extension

Draw a line on the current rendering target at subpixel precision.
lines(List<Point<double>> points) bool

Available on Pointer<SdlRenderer>, provided by the SdlRendererPointerEx extension

Draw a series of connected lines on the current rendering target at subpixel precision.
point(Point<double> point) bool

Available on Pointer<SdlRenderer>, provided by the SdlRendererPointerEx extension

Draw a point on the current rendering target at subpixel precision.
points(List<Point<double>> points) bool

Available on Pointer<SdlRenderer>, provided by the SdlRendererPointerEx extension

Draw multiple points on the current rendering target at subpixel precision.
present() bool

Available on Pointer<SdlRenderer>, provided by the SdlRendererPointerEx extension

Update the screen with any rendering performed since the previous call.
readPixels(Rectangle<double> rect) Pointer<SdlSurface>

Available on Pointer<SdlRenderer>, provided by the SdlRendererPointerEx extension

rect(Rectangle<double>? rect) bool

Available on Pointer<SdlRenderer>, provided by the SdlRendererPointerEx extension

Draw a rectangle on the current rendering target at subpixel precision.
rects(List<Rectangle<double>> rects) bool

Available on Pointer<SdlRenderer>, provided by the SdlRendererPointerEx extension

Draw some number of rectangles on the current rendering target at subpixel precision.
setClipRect([Rectangle<double>? rect]) bool

Available on Pointer<SdlRenderer>, provided by the SdlRendererPointerEx extension

Set the clip rectangle for rendering on the specified target.
setColorScale(double scale) bool

Available on Pointer<SdlRenderer>, provided by the SdlRendererPointerEx extension

Set the color scale used for render operations.
setDrawBlendMode(int blendMode) bool

Available on Pointer<SdlRenderer>, provided by the SdlRendererPointerEx extension

Set the blend mode used for drawing operations (Fill and Line).
setDrawColor(int r, int g, int b, int a) bool

Available on Pointer<SdlRenderer>, provided by the SdlRendererPointerEx extension

Set the color used for drawing operations.
setDrawColorFloat(double r, double g, double b, double a) bool

Available on Pointer<SdlRenderer>, provided by the SdlRendererPointerEx extension

Set the color used for drawing operations (Rect, Line and Clear).
setLogicalPresentation(int w, int h, int mode) bool

Available on Pointer<SdlRenderer>, provided by the SdlRendererPointerEx extension

Set a device independent resolution and presentation mode for rendering.
setScale(double scaleX, double scaleY) bool

Available on Pointer<SdlRenderer>, provided by the SdlRendererPointerEx extension

Set the drawing scale for rendering on the current target.
setTarget(Pointer<SdlTexture> texture) bool

Available on Pointer<SdlRenderer>, provided by the SdlRendererPointerEx extension

Set a texture as the current rendering target.
setViewport([Rectangle<double>? rect]) bool

Available on Pointer<SdlRenderer>, provided by the SdlRendererPointerEx extension

Set the drawing area for rendering on the current target.
setVSync(int vsync) bool

Available on Pointer<SdlRenderer>, provided by the SdlRendererPointerEx extension

Toggle VSync of the given renderer.
texture(Pointer<SdlTexture> texture, {Rectangle<double>? srcrect, Rectangle<double>? dstrect}) bool

Available on Pointer<SdlRenderer>, provided by the SdlRendererPointerEx extension

Copy a portion of the texture to the current rendering target at subpixel precision.
textureRotated(Pointer<SdlTexture> texture, {Rectangle<double>? srcrect, Rectangle<double>? dstrect, double angle = 0, Point<double>? center, int flip = SDL_FLIP_NONE}) bool

Available on Pointer<SdlRenderer>, provided by the SdlRendererPointerEx extension

Copy a portion of the source texture to the current rendering target, with rotation and flipping, at subpixel precision.