PointClickEngine::Graphics::Core::Renderer
Inherits Reference < Object
Main rendering pipeline coordinator
The Renderer manages the entire rendering process, coordinating between the display, camera, layers, and effects. It provides the main entry point for all rendering operations.
Rendering Pipeline
- Clear screen and letterbox
- Apply camera transformation
- Render each layer in order
- Apply post-processing effects
- Render UI overlay
Example
renderer = Renderer.new(display)
renderer.render do |context|
# Render game objects using context
context.draw_sprite(sprite, position)
end
Constructors
new(display : Display)
SourceInstance methods
blit_logical_texture(texture : RL::Texture2D, width : Int32 = logical_width, height : Int32 = logical_height, tint : RL::Color = RL::WHITE)
Sourcebuild_frame_context(scene_width : Int32 | Nil = nil, scene_height : Int32 | Nil = nil, cinematic_width : Int32 | Nil = nil, cinematic_height : Int32 | Nil = nil) : FrameContext
Sourcecamera
Sourcedebug_mode?
Sourcedisable_post_processing
Sourceensure_render_textures
Sourcefinal_render_texture
Sourcelogical_height
Sourcelogical_rect
Sourcelogical_width
Sourcerender(apply_display_transform : Bool = true, &block : RenderContext -> )
Main render method with context
render_multi_viewport(viewports : Array(Tuple(Viewport, Camera)), &block : RenderContext, Int32 -> )
Render with multiple viewports (for split-screen, minimap, etc.)
scene_render_texture_a
Sourcescene_render_texture_b
Sourceviewport
Sourcevisible?(world_x : Float32, world_y : Float32, margin : Float32 = 50.0_f32) : Bool
Check if a world position is visible
world_render_texture
Source