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/catanddog/CatAndDogRenderer.java
63 63
   
64 64
    public void onDrawFrame(GL10 glUnused) 
65 65
      {
66
      GLES20.glClearColor(0.0f, 0.0f, 0.0f, 1.0f);
67 66
      GLES20.glClear( GLES20.GL_DEPTH_BUFFER_BIT | GLES20.GL_COLOR_BUFFER_BIT);
68
   
69 67
      catanddog.draw(System.currentTimeMillis());
70 68
      }
71 69

  
72 70
///////////////////////////////////////////////////////////////////////////////////////////////////
73 71
    
74 72
    public void onSurfaceCreated(GL10 glUnused, EGLConfig config) 
75
      {  
73
      {
74
      GLES20.glClearColor(0.0f, 0.0f, 0.0f, 1.0f);
75

  
76 76
      InputStream is = mView.getContext().getResources().openRawResource(R.raw.cat_and_dog);
77 77
      Bitmap bitmap;
78 78
        

Also available in: Unified diff