metaco-ext

Ruby helpers for native graphics

Keep native events predictable.

Adapters around metaco texture and pixel APIs, with normalized event data and resize dimensions.

gem install metaco metaco-ext

NATIVE EVENTresize
800 × 450
1600 × 900
→
METACO::EXT{ type: :resize,
width: 800,
framebuffer_width: 1600 }
Event normalizationnative input → stable Ruby data

Small adapters at the boundary.

Delegate native resources to metaco and give Ruby applications a consistent event shape.

01

Delegate resources

Create, update, bind, and destroy native textures.

02

Normalize events

Frozen, symbol-keyed event hashes with stable fields.

03

Track both sizes

Keep logical and framebuffer dimensions on resize.

A small first step

Start with one example.

Install the gem, then follow the project guide for platform requirements and the full API.

Read the installation guide ↗

require "metaco/ext"

resize = Metaco::Ext.resize_event(
  width: 800, height: 450,
  framebuffer_width: 1600,
  framebuffer_height: 900
)
puts resize[:framebuffer_width]