There are two packages for embedding opengl in a tk window: togl and
tkogl, both available for using tk with tcl. Haven't seen it ported to
ruby, though. A better idea is to move from tk to fox (FXruby), which
is nicer (IMHO) than tk and supports opengl natively.