stackgl / learning-webgl-01

Learning WebGL Lesson 1 converted from vanilla WebGL to use stack.gl.
http://stack.gl/learning-webgl-01/
28 stars 4 forks source link

gl-clear ? #1

Closed mattdesl closed 9 years ago

mattdesl commented 9 years ago

should gl-clear be used instead of raw gl calls? Thoughts?

mikolalysenko commented 9 years ago

Seems reasonable.

hughsk commented 9 years ago

@mattdesl good point! Updated.

These days I find it easier to just use gl.clear directly in my projects, but I initially wrote gl-clear because for me it wasn't immediately obvious what was happening. So it's probably worth using it here :)