Delegate resources
Create, update, bind, and destroy native textures.
Ruby helpers for native graphics
Adapters around metaco texture and pixel APIs, with normalized event data and resize dimensions.
gem install metaco metaco-ext
Delegate native resources to metaco and give Ruby applications a consistent event shape.
Create, update, bind, and destroy native textures.
Frozen, symbol-keyed event hashes with stable fields.
Keep logical and framebuffer dimensions on resize.
A small first step
Install the gem, then follow the project guide for platform requirements and the full API.
require "metaco/ext"
resize = Metaco::Ext.resize_event(
width: 800, height: 450,
framebuffer_width: 1600,
framebuffer_height: 900
)
puts resize[:framebuffer_width]