fill in GLProgram#initialize
This commit is contained in:
parent
2ae76e55f1
commit
d85a0de9df
@ -4,5 +4,13 @@ class GLProgram
|
|||||||
# @param shaders [Array<GLShader>] Shaders to attach to the program.
|
# @param shaders [Array<GLShader>] Shaders to attach to the program.
|
||||||
# @param options [Hash] Optional parameters.
|
# @param options [Hash] Optional parameters.
|
||||||
def initialize(*args)
|
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
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user