Project

General

Profile

« Previous | Next » 

Revision e7a4ef16

Added by Leszek Koltunski over 7 years ago

Minor stuff

View differences:

src/main/java/org/distorted/examples/starwars/StarWarsRenderer.java
109 109
    
110 110
///////////////////////////////////////////////////////////////////////////////////////////////////
111 111

  
112
  public StarWarsRenderer(GLSurfaceView v) 
112
  StarWarsRenderer(GLSurfaceView v)
113 113
    {
114 114
    mView = v;
115 115
     
......
120 120
   
121 121
  public void onDrawFrame(GL10 glUnused) 
122 122
    {
123
    GLES20.glClearColor(0.0f, 0.0f, 0.0f, 1.0f);
124 123
    GLES20.glClear( GLES20.GL_DEPTH_BUFFER_BIT | GLES20.GL_COLOR_BUFFER_BIT);
125
     
126 124
    mRoot.draw(System.currentTimeMillis());
127 125
    }
128 126

  
......
138 136
    
139 137
  public void onSurfaceCreated(GL10 glUnused, EGLConfig config) 
140 138
    {
139
    GLES20.glClearColor(0.0f, 0.0f, 0.0f, 1.0f);
140

  
141 141
    setupBitmaps();
142 142
         
143 143
    try

Also available in: Unified diff