gregtatum / mdn-webgl

Helper functions for Mozilla Developer Network WebGL documentation
MIT License
32 stars 7 forks source link

Prefix shared code #7

Closed gregtatum closed 9 years ago

gregtatum commented 9 years ago

I'm wondering if I should collect all of the shared functions on an object. I think it's confusing when you come across a randomly defined function and you don't know where it came from.

var translate = MDN.translationMatrix(0,-1,0);

I'm not sure what that object prefix should be called.

nickdesaulniers commented 9 years ago

I think it's confusing when you come across a randomly defined function and you don't know where it came from.

Agree!

That is a really great idea!

gregtatum commented 9 years ago

Yup, this really helps in reading the code now that I've done it on the lighting models.