Refactoring: Hide some functions of opengl