Project

General

Profile

« Previous | Next » 

Revision e7a4ef16

Added by Leszek Koltunski over 7 years ago

Minor stuff

View differences:

src/main/java/org/distorted/examples/sink/SinkRenderer.java
53 53
    
54 54
///////////////////////////////////////////////////////////////////////////////////////////////////
55 55

  
56
  public SinkRenderer(GLSurfaceView v) 
56
  SinkRenderer(GLSurfaceView v)
57 57
    { 
58 58
    mView = v;
59 59
      
......
66 66
   
67 67
  public void onDrawFrame(GL10 glUnused) 
68 68
    {
69
    GLES20.glClearColor(0.0f, 0.0f, 0.0f, 1.0f);
70 69
    GLES20.glClear( GLES20.GL_DEPTH_BUFFER_BIT | GLES20.GL_COLOR_BUFFER_BIT);
71
      
72 70
    sinkBmp.draw(System.currentTimeMillis());
73 71
    }
74 72

  
......
102 100
    
103 101
  public void onSurfaceCreated(GL10 glUnused, EGLConfig config) 
104 102
    {
103
    GLES20.glClearColor(0.0f, 0.0f, 0.0f, 1.0f);
104

  
105 105
    InputStream is = mView.getContext().getResources().openRawResource(R.raw.dog);
106 106
    Bitmap bitmap;
107 107
        

Also available in: Unified diff