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/aroundtheworld/AroundTheWorldRenderer.java
62 62
      mEffects = new DistortedEffects();
63 63
      mManager.apply(mEffects);
64 64
      mScreen = new DistortedScreen();
65
      mScreen.glClearColor(0.5f, 0.5f, 0.5f, 1.0f);
65 66
      }
66 67

  
67 68
///////////////////////////////////////////////////////////////////////////////////////////////////
......
75 76

  
76 77
   public void onDrawFrame(GL10 glUnused) 
77 78
      {
78
      GLES30.glClear( GLES30.GL_DEPTH_BUFFER_BIT | GLES30.GL_COLOR_BUFFER_BIT);
79 79
      mScreen.render( System.currentTimeMillis() );
80 80
      }
81 81

  
......
107 107
    
108 108
   public void onSurfaceCreated(GL10 glUnused, EGLConfig config) 
109 109
      {
110
      GLES30.glClearColor(0.5f, 0.5f, 0.5f, 1.0f);
111

  
112 110
      InputStream is = mView.getContext().getResources().openRawResource(R.raw.face);
113 111
      Bitmap bitmap;
114 112

  

Also available in: Unified diff