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

  
......
112 111
    
113 112
    public void onSurfaceCreated(GL10 glUnused, EGLConfig config) 
114 113
      {
115
      GLES30.glClearColor(0.0f, 0.0f, 0.0f, 1.0f);
116

  
117 114
      InputStream is = mView.getContext().getResources().openRawResource(R.raw.monalisa);
118 115
      Bitmap bitmap;
119 116
        

Also available in: Unified diff