class

SDL3::Renderer

Inherits Reference < Object

Constructors

new(window : Window, name : String | Nil = nil)
Source

Instance methods

blend_mode
Source
blend_mode=(blend_mode : LibSDL3::BlendMode)
Source
clear
Source
clip_rect
Source
clip_rect=(rect : Rect)
Source
clip_rect=(rect : Nil)
Source
create_gpu_render_state(create_info : LibSDL3::GPURenderStateCreateInfo) : GPURenderState
Source
create_text_engine
Source
create_texture(format : LibSDL3::PixelFormat, access : Int32, w : Int32, h : Int32)
Source
default_texture_scale_mode
Source
default_texture_scale_mode=(mode : LibSDL3::ScaleMode)
Source
destroy
Source
draw_color
Source
draw_color=(color : Tuple(UInt8, UInt8, UInt8, UInt8))
Source
draw_line(x1 : Float32, y1 : Float32, x2 : Float32, y2 : Float32)
Source
draw_lines(points : Slice(FPoint))
Source
draw_point(x : Float32, y : Float32)
Source
draw_points(points : Slice(FPoint))
Source
draw_rect(rect : FRect)
Source
draw_rects(rects : Slice(FRect))
Source
fill_rect(rect : FRect)
Source
fill_rects(rects : Slice(FRect))
Source
get_logical_presentation(w : Pointer(Int32), h : Pointer(Int32), mode : Pointer(LibSDL3::RendererLogicalPresentation))
Source
get_render_draw_blend_mode
Source
get_render_target
Source
gpu_device
Source
gpu_render_state=(state : GPURenderState | Nil)
Source
logical_presentation
Source
logical_presentation=(data : Tuple(Int32, Int32, LibSDL3::RendererLogicalPresentation))
Source
max_texture_size
Source
name
Source
output_size
Source
present
Source
properties
Source
render_debug_text(x : Float32, y : Float32, text : String)
Source
render_geometry(texture : Texture, vertices : Array(Vertex), indices : Array(Int32))
Source
render_geometry(vertices : Array(Vertex), indices : Array(Int32))
Source
render_target
Source
render_target=(texture : Texture | Nil)
Source
render_texture(texture : Texture, source_rect : FRect, dest_rect : FRect)
Source
render_texture(texture : Texture, x : Float32, y : Float32, source_rect : FRect | Nil = nil)
Source
render_texture(texture : Texture, dest_rect : FRect)
Source
render_texture_rotated(texture : Texture, x : Float32, y : Float32, source_rect : FRect | Nil, angle : Float64, center : FPoint, flip : Int32)
Source
render_texture_rotated(texture : Texture, source_rect : FRect, dest_rect : FRect, angle : Float64 = 0.0, flip : Int32 = 0)
Source
render_texture_rotated(texture : Texture, source_rect : FRect, dest_rect : FRect, angle : Float64 = 0.0, center : FPoint = FPoint.new, flip : Int32 = 0)
Source
render_texture_rotated(texture : Texture, dest_rect : FRect, angle : Float64 = 0.0, flip : Int32 = 0)
Source
render_texture_rotated(texture : Texture, dest_rect : FRect, angle : Float64 = 0.0, center : FPoint = FPoint.new, flip : Int32 = 0)
Source
render_texture_rotated(texture : Texture, x : Float32, y : Float32, angle : Float64 = 0.0, flip : Int32 = 0)
Source
scale
Source
scale=(val : Tuple(Float32, Float32))
Source
set_logical_presentation(w : Int32, h : Int32, mode : LibSDL3::RendererLogicalPresentation)
Source
set_render_draw_blend_mode(blend_mode : LibSDL3::BlendMode) : Bool
Source
set_render_target(texture : Texture | Nil) : Bool
Source
to_unsafe
Source
vsync=(vsync : Int32)
Source