samples/buffer/index_buffer.rb in ray-0.1.1 vs samples/buffer/index_buffer.rb in ray-0.2.0

- old
+ new

@@ -26,9 +26,11 @@ # We need this: projection matrix isn't set if you don't use drawables window.shader["in_Projection"] = window.view.matrix render do |win| win.make_current + @buffer.bind + @index_buffer.bind Ray::GL.draw_elements :triangles, 3, 0 end end scenes << :triangle