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/differenteffects/DifferentEffectsRenderer.java
100 100
   
101 101
   public void onDrawFrame(GL10 glUnused)
102 102
     {
103
     GLES30.glClear( GLES30.GL_DEPTH_BUFFER_BIT | GLES30.GL_COLOR_BUFFER_BIT);
104 103
     mScreen.render( System.currentTimeMillis() );
105 104
     }
106 105

  
......
144 143
    
145 144
   public void onSurfaceCreated(GL10 glUnused, EGLConfig config)
146 145
     {
147
     GLES30.glClearColor(0.0f, 0.0f, 0.0f, 1.0f);
148

  
149 146
     InputStream is = mView.getContext().getResources().openRawResource(R.raw.dog);
150 147
     Bitmap bitmap;
151 148
        

Also available in: Unified diff