PointClickEngine::Graphics::Core::RenderContext
Inherits Reference < Object
Rendering context passed to draw operations
Provides camera-aware drawing methods that automatically handle coordinate transformations and culling.
Constructors
new(renderer : Renderer, camera : Camera, viewport : Viewport)
SourceInstance methods
camera
Sourcedraw_rectangle(x : Float32, y : Float32, width : Float32, height : Float32, color : RL::Color)
Draw rectangle
draw_rectangle_lines(x : Float32, y : Float32, width : Float32, height : Float32, color : RL::Color)
Draw rectangle lines
draw_sprite(sprite : Sprite, position : RL::Vector2, tint : RL::Color = RL::WHITE)
Draw a sprite (convenience method)
draw_text(text : String, x : Float32, y : Float32, font_size : Int32, color : RL::Color)
Draw text
draw_texture(texture : RL::Texture2D, world_x : Float32, world_y : Float32, tint : RL::Color = RL::WHITE)
Draw texture at world position
draw_texture_ex(texture : RL::Texture2D, position : RL::Vector2, rotation : Float32, scale : Float32, tint : RL::Color)
Draw texture with extended parameters
draw_texture_pro(texture : RL::Texture2D, source : RL::Rectangle, dest : RL::Rectangle, origin : RL::Vector2, rotation : Float32, tint : RL::Color)
Draw texture with full transform options
draw_texture_rect(texture : RL::Texture2D, source : RL::Rectangle, position : RL::Vector2, tint : RL::Color = RL::WHITE)
Draw texture region
renderer
Sourceviewport
Sourcevisible?(world_x : Float32, world_y : Float32, margin : Float32 = 0.0_f32) : Bool
Check if world position is visible