lib/mittsu/renderers/opengl/opengl_buffer.rb in mittsu-0.1.2 vs lib/mittsu/renderers/opengl/opengl_buffer.rb in mittsu-0.1.3
- old
+ new
@@ -1,5 +1,9 @@
module Mittsu
class OpenGLBuffer < Struct.new(:buffer, :object, :material, :z)
attr_accessor :render, :transparent, :opaque
+
+ def name
+ "BUFFER(#{object.name})"
+ end
end
end