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/catanddog/CatAndDogRenderer.java
85 85
   
86 86
    public void onDrawFrame(GL10 glUnused) 
87 87
      {
88
      GLES30.glClear( GLES30.GL_DEPTH_BUFFER_BIT | GLES30.GL_COLOR_BUFFER_BIT);
89 88
      mScreen.render( System.currentTimeMillis() );
90 89
      }
91 90

  
......
93 92
    
94 93
    public void onSurfaceCreated(GL10 glUnused, EGLConfig config) 
95 94
      {
96
      GLES30.glClearColor(0.0f, 0.0f, 0.0f, 1.0f);
97

  
98 95
      InputStream is = mView.getContext().getResources().openRawResource(R.raw.cat_and_dog);
99 96
      Bitmap bitmap;
100 97
        

Also available in: Unified diff