Project

General

Profile

« Previous | Next » 

Revision 855ba24e

Added by Leszek Koltunski about 7 years ago

New 'glClearColor' and 'glClearDepthf' APIs in OutputSurface. This fixes the 'transparency' regressions from last commit.

View differences:

src/main/java/org/distorted/examples/starwars/StarWarsRenderer.java
153 153
   
154 154
  public void onDrawFrame(GL10 glUnused) 
155 155
    {
156
    GLES30.glClear( GLES30.GL_DEPTH_BUFFER_BIT | GLES30.GL_COLOR_BUFFER_BIT);
157 156
    mScreen.render(System.currentTimeMillis());
158 157
    }
159 158

  
......
183 182
    
184 183
  public void onSurfaceCreated(GL10 glUnused, EGLConfig config) 
185 184
    {
186
    GLES30.glClearColor(0.0f, 0.0f, 0.0f, 1.0f);
187

  
188 185
    setupBitmaps();
189 186

  
190 187
    DistortedEffects.enableEffect(EffectNames.SMOOTH_ALPHA);

Also available in: Unified diff