lib/mittsu/renderers/opengl/opengl_program.rb in mittsu-0.3.1 vs lib/mittsu/renderers/opengl/opengl_program.rb in mittsu-0.3.2

- old
+ new

@@ -1,11 +1,10 @@ require 'erb' - require 'mittsu/renderers/opengl/opengl_shader' module Mittsu class OpenGLProgram - attr_reader :id, :program, :uniforms, :attributes + attr_reader :id, :program, :uniforms attr_accessor :code, :used_times, :attributes, :vertex_shader, :fragment_shader def initialize(renderer, code, material, parameters) @id = (@@id ||= 1).tap { @@id += 1 } @renderer = renderer