From: Ilmari Heikkinen Date: 2006-07-17T08:35:21+09:00 Subject: Re: [ANN][SoC] GlimR 0.1.0 Hi, On 7/16/06, Adam Sanderson wrote: > This seems pretty neat, I snagged the gem and ran the little sample > form below. It seemed a little slugish to respond, but on the > otherhand it handles resizing and such well from what I could tell. Thanks for trying it out :) Btw, what were the parts being sluggish? Text input? Everything? Could you also tell what OS and hardware you ran it on? I'll try to fix performance in a later release (after coding the main features) > So yeah, neat :) Want to post some more examples? Sure! Here's an image viewer (beware, if an image is larger than max OpenGL texture size (usually 2048x2048 or more), it won't show it): files = Dir["*.*"].grep(/\.(jpg|png)$/i) require 'glimr' include GlimR sc = ScrollableContainer.new( :content => Image.load(files.first)) sc.container.on_click{|o,e| case e.button when :left files.push files.shift sc.content.load(files.first) when :right files.unshift files.pop sc.content.load(files.first) end } w = GLUTWindow.new w.attach sc w.run That one had bad performance on Windows, on Linux it's a lot smoother for some reason. I put the integration_tests sample code online at http://glimr.rubyforge.org/samples/ > Thanks for your project, > .adam Cheers, Ilmari