Makes an SDL renderer for a window
Makes a renderer from an already existing SDL_Renderer
Ensures that SDL can properly dispose of the renderer
Fills the screen with the existing renderer color
Sets the renderer's color and clears the screen
Copies a texture to the window at the given point Uses the dimensions of the given sourceRect or if not given, the dimensions of the original texture
Copies a texture to the window at the given rectangle If sourceRect is null, it will copy the entire texture, otherwise, it will copy the slice defined by sourceRect
Copies a texture to the window at the given rectangle with the given angle If sourceRect is null, it will copy the entire texture, otherwise, it will copy the slice defined by sourceRect Angles are given in radians
Draws a line between the given points
Draws a line of a given color between the given points
Draws a line given a segment
Draws a line with a specific color
Draws a point
Draws a point
Draws a point in the given color
Draws a rectangle
Draws a rectangle with the given color
Draws the given bezier curve with numPoints number of points on the curve More points is smoother but slower
Draws the given bezier curve with the given color and amount of points on the curve More points is smoother but slower
Draws a polygon
Draws a polygon with the given color
Draws the ellipse bounded by the given box between the given angles in radians More points generally means a slower but more well drawn ellipse
Draws the ellipse bounded by the given box between the given angles in radians with the given color More points generally means a slower but more well drawn ellipse
Fills a rectangle in
Fills a rectangle in with the given color
Fills the ellipse bounded by the given box between the given angles in radians Fills the ellipse between the arc endpoints: fills ellipse as arc rather than filling as ellipse (not a pizza slice) More points generally means a slower but more well drawn ellipse
Fills the ellipse bounded by the given box between the given angles in radians with the given color Fills the ellipse between the arc endpoints: fills ellipse as arc rather than filling as ellipse (not a pizza slice) More points generally means a slower but more well drawn ellipse
Fills a polygon Uses scanlining
Fills a polygon with a given color
Updates what the renderer has drawn by actually outputting or presenting it
Sets the clip area for the renderer Anything that is rendered outside of the clip area gets discarded
Gets the clip area for the renderer Anything that is rendered outside of the clip area gets discarded
Sets the renderer's draw blend mode that affects how the renderer draws
Gets the renderer's draw blend mode that affects how the renderer draws
Sets the color of the renderer will draw with
Returns the color that the renderer will draw with
Returns the raw SDL data of this object
Gets the renderer's information and returns it as an SDL_RendererInfo struct
Sets the renderer's logical size Logical size works in that you only need to give coordinates for one specific resolution, and SDL will handle scaling that to the best resolution matching the logical size's aspect ratio
Gets the renderer's logical size Logical size works in that you only need to give coordinates for one specific resolution, and SDL will handle scaling that to the best resolution matching the logical size's aspect ratio
Gets the renderer's output size
Sets the renderer's x and y scale to the given point's x and y values
Gets the renderer's x and y scale as a point with the scales as the x and y coordinates
Sets the viewport of the renderer to the given rectangle
Gets the viewport of the renderer as a rectangle
Renderers are objects that handle drawing things such as textures or shapes A renderer can be obtained from a window, and could be used to draw on the window Renderers draw using buffers; when a renderer draws, it isn't visible to the screen until the present method is called While most of these functions are ported directly off of LibSDL2, most of them have been renamed into standard OOP convention Many SDL functions are now property methods (eg. SDL_SetRenderDrawColor => renderer.drawColor = ...) All functions defined in renderer are based off of SDL functions and SDL documentation can be viewed as well