Sha256: 6c70c9e63246463c270b91cab205e7d9a4b8c1a80159251aae012b1d74710e3c
Contents?: true
Size: 424 Bytes
Versions: 6
Compression:
Stored size: 424 Bytes
Contents
require 'test/unit' require 'fox12' require 'testcase' include Fox class TC_FXGLViewer < TestCase def setup super(self.class.name) vis = FXGLVisual.new(app, VISUAL_DOUBLEBUFFER) @viewer = FXGLViewer.new(mainWindow, vis) end def test_readPixels pixels = @viewer.readPixels(0, 0, @viewer.width, @viewer.height) assert(pixels) assert_equal(3*@viewer.width*@viewer.height, pixels.size) end end
Version data entries
6 entries across 6 versions & 1 rubygems