SdlRendererPointerEx extension
- on
Methods
-
clear(
) → bool -
Available on Pointer<
Clear the current rendering target with the drawing color.SdlRenderer> , provided by the SdlRendererPointerEx extension -
clipEnabled(
) → bool -
Available on Pointer<
Get whether clipping is enabled on the given renderer.SdlRenderer> , provided by the SdlRendererPointerEx extension -
convertEventToCoordinates(
Pointer< SdlEvent> event) → bool -
Available on Pointer<
Convert the coordinates in an event to render coordinates.SdlRenderer> , provided by the SdlRendererPointerEx extension -
coordinatesFromWindow(
double windowX, double windowY) → Point< double> -
Available on Pointer<
Get a point in render coordinates when given a point in window coordinates.SdlRenderer> , provided by the SdlRendererPointerEx extension -
coordinatesToWindow(
double x, double y) → Point< double> -
Available on Pointer<
Get a point in window coordinates when given a point in render coordinates.SdlRenderer> , provided by the SdlRendererPointerEx extension -
createTexture(
int format, int access, int w, int h) → Pointer< SdlTexture> -
Available on Pointer<
Create a texture for a rendering context.SdlRenderer> , provided by the SdlRendererPointerEx extension -
createTextureFromSurface(
Pointer< SdlSurface> surface) → Pointer<SdlTexture> -
Available on Pointer<
Create a texture from an existing surface.SdlRenderer> , provided by the SdlRendererPointerEx extension -
createTextureWithProperties(
int props) → Pointer< SdlTexture> -
Available on Pointer<
Create a texture for a rendering context with the specified properties.SdlRenderer> , provided by the SdlRendererPointerEx extension -
destroy(
) → bool -
Available on Pointer<
Destroy the rendering context for a window and free all associated textures.SdlRenderer> , provided by the SdlRendererPointerEx extension -
fillRect(
[Rectangle< double> ? rect]) → bool -
Available on Pointer<
Fill a rectangle on the current rendering target with the drawing color at subpixel precision.SdlRenderer> , provided by the SdlRendererPointerEx extension -
fillRects(
List< Rectangle< rects) → booldouble> > -
Available on Pointer<
Fill some number of rectangles on the current rendering target with the drawing color at subpixel precision.SdlRenderer> , provided by the SdlRendererPointerEx extension -
flush(
) → bool -
Available on Pointer<
Force the rendering context to flush any pending commands and state.SdlRenderer> , provided by the SdlRendererPointerEx extension -
geometry(
Pointer< SdlVertex> vertices, Pointer<SdlTexture> texture, int numVertices, Pointer<Int32> indices, int numIndices) → bool -
Available on Pointer<
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).SdlRenderer> , provided by the SdlRendererPointerEx extension -
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<
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).SdlRenderer> , provided by the SdlRendererPointerEx extension -
getClipRect(
) → Rectangle< double> -
Available on Pointer<
Get the clip rectangle for the current target.SdlRenderer> , provided by the SdlRendererPointerEx extension -
getColorScale(
) → double -
Available on Pointer<
Get the color scale used for render operations.SdlRenderer> , provided by the SdlRendererPointerEx extension -
getCurrentOutputSize(
) → Point< double> -
Available on Pointer<
Get the current output size in pixels of a rendering context.SdlRenderer> , provided by the SdlRendererPointerEx extension -
getDrawBlendMode(
) → int -
Available on Pointer<
Get the blend mode used for drawing operations.SdlRenderer> , provided by the SdlRendererPointerEx extension -
getDrawColor(
Pointer< SdlColor> color) → bool -
Available on Pointer<
Get the color used for drawing operations (Rect, Line and Clear).SdlRenderer> , provided by the SdlRendererPointerEx extension -
getDrawColorFloat(
Pointer< SdlFColor> color) → bool -
Available on Pointer<
Get the color used for drawing operations (Rect, Line and Clear).SdlRenderer> , provided by the SdlRendererPointerEx extension -
getLogicalMode(
) → int -
Available on Pointer<
Get device independent resolution and presentation mode for rendering.SdlRenderer> , provided by the SdlRendererPointerEx extension -
getLogicalPresentation(
Pointer< Int32> w, Pointer<Int32> h, Pointer<Int32> mode) → bool -
Available on Pointer<
Get device independent resolution and presentation mode for rendering.SdlRenderer> , provided by the SdlRendererPointerEx extension -
getLogicalSize(
) → Point< double> -
Available on Pointer<
Get device independent resolution and presentation mode for rendering.SdlRenderer> , provided by the SdlRendererPointerEx extension -
getMetalCommandEncoder(
) → Pointer< NativeType> -
Available on Pointer<
Get the Metal command encoder for the current frame.SdlRenderer> , provided by the SdlRendererPointerEx extension -
getMetalLayer(
) → Pointer< NativeType> -
Available on Pointer<
Get the CAMetalLayer associated with the given Metal renderer.SdlRenderer> , provided by the SdlRendererPointerEx extension -
getOutputSize(
) → Point< double> -
Available on Pointer<
Get the output size in pixels of a rendering context.SdlRenderer> , provided by the SdlRendererPointerEx extension -
getProperties(
) → int -
Available on Pointer<
Get the properties associated with a renderer.SdlRenderer> , provided by the SdlRendererPointerEx extension -
getScale(
) → Point< double> -
Available on Pointer<
Get the drawing scale for the current target.SdlRenderer> , provided by the SdlRendererPointerEx extension -
getTarget(
) → Pointer< SdlTexture> -
Available on Pointer<
Get the current render target.SdlRenderer> , provided by the SdlRendererPointerEx extension -
getViewport(
) → Rectangle< double> -
Available on Pointer<
Get the drawing area for the current target.SdlRenderer> , provided by the SdlRendererPointerEx extension -
getVSync(
) → int -
Available on Pointer<
Get VSync of the given renderer.SdlRenderer> , provided by the SdlRendererPointerEx extension -
getWindow(
) → Pointer< SdlWindow> -
Available on Pointer<
Get the window associated with a renderer.SdlRenderer> , provided by the SdlRendererPointerEx extension -
line(
Point< double> p1, Point<double> p2) → bool -
Available on Pointer<
Draw a line on the current rendering target at subpixel precision.SdlRenderer> , provided by the SdlRendererPointerEx extension -
lines(
List< Point< points) → booldouble> > -
Available on Pointer<
Draw a series of connected lines on the current rendering target at subpixel precision.SdlRenderer> , provided by the SdlRendererPointerEx extension -
point(
Point< double> point) → bool -
Available on Pointer<
Draw a point on the current rendering target at subpixel precision.SdlRenderer> , provided by the SdlRendererPointerEx extension -
points(
List< Point< points) → booldouble> > -
Available on Pointer<
Draw multiple points on the current rendering target at subpixel precision.SdlRenderer> , provided by the SdlRendererPointerEx extension -
present(
) → bool -
Available on Pointer<
Update the screen with any rendering performed since the previous call.SdlRenderer> , provided by the SdlRendererPointerEx extension -
readPixels(
Rectangle< double> rect) → Pointer<SdlSurface> -
Available on Pointer<
SdlRenderer> , provided by the SdlRendererPointerEx extension -
rect(
Rectangle< double> ? rect) → bool -
Available on Pointer<
Draw a rectangle on the current rendering target at subpixel precision.SdlRenderer> , provided by the SdlRendererPointerEx extension -
rects(
List< Rectangle< rects) → booldouble> > -
Available on Pointer<
Draw some number of rectangles on the current rendering target at subpixel precision.SdlRenderer> , provided by the SdlRendererPointerEx extension -
setClipRect(
[Rectangle< double> ? rect]) → bool -
Available on Pointer<
Set the clip rectangle for rendering on the specified target.SdlRenderer> , provided by the SdlRendererPointerEx extension -
setColorScale(
double scale) → bool -
Available on Pointer<
Set the color scale used for render operations.SdlRenderer> , provided by the SdlRendererPointerEx extension -
setDrawBlendMode(
int blendMode) → bool -
Available on Pointer<
Set the blend mode used for drawing operations (Fill and Line).SdlRenderer> , provided by the SdlRendererPointerEx extension -
setDrawColor(
int r, int g, int b, int a) → bool -
Available on Pointer<
Set the color used for drawing operations.SdlRenderer> , provided by the SdlRendererPointerEx extension -
setDrawColorFloat(
double r, double g, double b, double a) → bool -
Available on Pointer<
Set the color used for drawing operations (Rect, Line and Clear).SdlRenderer> , provided by the SdlRendererPointerEx extension -
setLogicalPresentation(
int w, int h, int mode) → bool -
Available on Pointer<
Set a device independent resolution and presentation mode for rendering.SdlRenderer> , provided by the SdlRendererPointerEx extension -
setScale(
double scaleX, double scaleY) → bool -
Available on Pointer<
Set the drawing scale for rendering on the current target.SdlRenderer> , provided by the SdlRendererPointerEx extension -
setTarget(
Pointer< SdlTexture> texture) → bool -
Available on Pointer<
Set a texture as the current rendering target.SdlRenderer> , provided by the SdlRendererPointerEx extension -
setViewport(
[Rectangle< double> ? rect]) → bool -
Available on Pointer<
Set the drawing area for rendering on the current target.SdlRenderer> , provided by the SdlRendererPointerEx extension -
setVSync(
int vsync) → bool -
Available on Pointer<
Toggle VSync of the given renderer.SdlRenderer> , provided by the SdlRendererPointerEx extension -
texture(
Pointer< SdlTexture> texture, {Rectangle<double> ? srcrect, Rectangle<double> ? dstrect}) → bool -
Available on Pointer<
Copy a portion of the texture to the current rendering target at subpixel precision.SdlRenderer> , provided by the SdlRendererPointerEx extension -
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<
Copy a portion of the source texture to the current rendering target, with rotation and flipping, at subpixel precision.SdlRenderer> , provided by the SdlRendererPointerEx extension