danini-the-panini/mittsu

View on GitHub
lib/mittsu/renderers/opengl/opengl_buffer.rb

Summary

Maintainability
A
0 mins
Test Coverage
C
71%
module Mittsu
  class OpenGLBuffer < Struct.new(:buffer, :object, :material, :z)
    attr_accessor :render, :transparent, :opaque

    def name
      "BUFFER(#{object.name})"
    end

    def id
      object.id
    end
  end
end