Skip to content

Instantly share code, notes, and snippets.

@framundo
Created April 14, 2016 13:21
Show Gist options
  • Select an option

  • Save framundo/8a073c264f69193a9adeb9066bd4aca3 to your computer and use it in GitHub Desktop.

Select an option

Save framundo/8a073c264f69193a9adeb9066bd4aca3 to your computer and use it in GitHub Desktop.
public class BasicGLRenderer implements GLSurfaceView.Renderer {
...
private List<Model3D> mModels = new LinkedList<>();
@Override
public void onDrawFrame(GL10 gl) {
...
for(Model3D model : mModels) {
model.draw(mMVPMatrix);
}
}
public void addModel(Model3D model3D) {
mModels.add(model3D);
}
}
Raw
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment