Created
April 14, 2016 13:21
-
-
Save framundo/8a073c264f69193a9adeb9066bd4aca3 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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