C++ (Qt)for(int i=0;i<objects.count();++i){ objects[i]->shader->bind(); objects[i]->setUniforms(); objects[i]->draw(); objects[i]->shader->release();}