class SDL::Renderer
- SDL::Renderer
- Reference
- Object
Defined in:
renderer.crConstructors
Instance Method Summary
-
#clear
Fills the target texture using the current
#draw_color
. - #clip_rect
- #clip_rect=(rect)
-
#copy(surface : Surface, srcrect = nil, dstrect = nil, angle = 0, center = nil, flip : Flip = Flip::NONE)
Transforms a surface into a texture, then copies it to the renderer's target texture, with extra rotation and flipping options.
-
#copy(texture, srcrect = nil, dstrect = nil, angle = 0, center = nil, flip : Flip = Flip::NONE)
Copy a texture to the renderer's target texture, with extra rotation and flipping options.
-
#draw_blend_mode
Get the current drawing blend mode.
-
#draw_blend_mode=(blend_mode : BlendMode)
Set the blen mode for drawing operations (fill, lines).
-
#draw_color
Get the current drawing color.
-
#draw_color=(color)
Set the color for drawing operations (lines, rectangles and clear).
-
#draw_line(x1, y1, x2, y2)
Draw a single line between two
Point
. -
#draw_line(a, b)
Draw a single line between two
Point
. -
#draw_lines(points)
Draw a line between following a series of
Point
. - #draw_point(x, y)
-
#draw_point(point)
Draw a single
Point
. -
#draw_points(points)
Draw many
Point
at once. -
#draw_rect(x, y, w, h)
Draw a single
Rect
. -
#draw_rect(rect)
Draw a single
Rect
. -
#draw_rects(rects)
Draw many
Rect
at once. -
#fill_rect(x, y, w, h)
Fill a
Rect
with the current#draw_color
and#draw_blend_mode
. -
#fill_rect(rect)
Fill a
Rect
with the current#draw_color
and#draw_blend_mode
. -
#fill_rects(rects)
Fill many
Rect
at once with the current#draw_color
and#draw_blend_mode
. - #finalize
- #info
- #logical_size
- #logical_size=(xy)
- #output_size
-
#present
Render the target texture to the screen.
- #read_pixels(rect : Rect, format : PixelFormat, buffer : Bytes)
- #scale
- #scale=(xy)
- #target
- #target=(texture = nil)
- #target_supported?
- #to_unsafe : Pointer(LibSDL::Renderer)
- #viewport
- #viewport=(rect)
Constructor Detail
Instance Method Detail
Transforms a surface into a texture, then copies it to the renderer's target texture, with extra rotation and flipping options.
Copy a texture to the renderer's target texture, with extra rotation and flipping options.
Set the blen mode for drawing operations (fill, lines).