Common functionality for glMatrix components