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/girl/GirlRenderer.java
152 152
   
153 153
   public void onDrawFrame(GL10 glUnused) 
154 154
      {
155
      GLES30.glClear( GLES30.GL_DEPTH_BUFFER_BIT | GLES30.GL_COLOR_BUFFER_BIT);
156 155
      mScreen.render( System.currentTimeMillis() );
157 156
      }
158 157

  
......
186 185
    
187 186
    public void onSurfaceCreated(GL10 glUnused, EGLConfig config) 
188 187
      {
189
      GLES30.glClearColor(0.0f, 0.0f, 0.0f, 1.0f);
190

  
191 188
      InputStream is = mView.getContext().getResources().openRawResource(R.raw.girl);
192 189
      Bitmap bitmap;
193 190
        

Also available in: Unified diff