Object style interface for opengl