Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

README.md

@workshop/common

opts.init

Pass in a custom hook for handling the init function of each submission/solution.

init: function(gl, initFn) {
  return initFn.call(gl, gl, imgElement)
}

opts.draw

Pass in a custom hook for handling the draw function of each submission/solution.

draw: function(gl, drawFn) {
  return drawFn.call(gl, gl, Date.now())
}