Add some mothods to gl context.