fill in GLProgram#initialize

This commit is contained in:
Josh Holtrop 2014-07-23 15:33:39 -04:00
parent 2ae76e55f1
commit d85a0de9df

View File

@ -4,5 +4,13 @@ class GLProgram
# @param shaders [Array<GLShader>] Shaders to attach to the program.
# @param options [Hash] Optional parameters.
def initialize(*args)
args.each do |arg|
if arg.is_a?(GLShader)
attach_shader(arg)
else
raise NotImplementedError.new("Other arguments not yet implemented")
end
end
link
end
end