[glHelper] inlined some functions