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/listener/ListenerRenderer.java
103 103

  
104 104
    public void onDrawFrame(GL10 glUnused) 
105 105
      {
106
      GLES30.glClear( GLES30.GL_DEPTH_BUFFER_BIT | GLES30.GL_COLOR_BUFFER_BIT);
107 106
      mScreen.render( System.currentTimeMillis() );
108 107
      }
109 108

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

  
142 139
      InputStream is = mView.getContext().getResources().openRawResource(R.raw.water);
143 140
      Bitmap bitmap;
144 141
        

Also available in: Unified diff