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/wind/WindRenderer.java
81 81
   
82 82
   public void onDrawFrame(GL10 glUnused) 
83 83
      {
84
      GLES30.glClear( GLES30.GL_DEPTH_BUFFER_BIT | GLES30.GL_COLOR_BUFFER_BIT);
85 84
      mScreen.render( System.currentTimeMillis() );
86 85
      }
87 86

  
......
109 108
    
110 109
   public void onSurfaceCreated(GL10 glUnused, EGLConfig config) 
111 110
      {
112
      GLES30.glClearColor(0.0f, 0.0f, 0.0f, 1.0f);
113

  
114 111
      InputStream is = mView.getContext().getResources().openRawResource(R.raw.iceland);
115 112
      Bitmap bitmap;
116 113

  

Also available in: Unified diff