Removed redundant BufferImage code 47/219347/1
authorPaul Wisbey <p.wisbey@samsung.com>
Wed, 4 Dec 2019 10:35:57 +0000 (10:35 +0000)
committerPaul Wisbey <p.wisbey@samsung.com>
Wed, 4 Dec 2019 10:35:57 +0000 (10:35 +0000)
Change-Id: I2189c6239a8d1b6d32723220966150ec597d29e8

examples/textured-mesh/textured-mesh-example.cpp

index a0ca655..19dd3a6 100644 (file)
@@ -173,36 +173,6 @@ public:
     stage.SetBackgroundColor(Vector4(0.0f, 0.2f, 0.2f, 1.0f));
   }
 
-  BufferImage CreateBufferImage()
-  {
-    BufferImage image = BufferImage::New( 200, 200, Pixel::RGB888 );
-    PixelBuffer* pixelBuffer = image.GetBuffer();
-    unsigned int stride = image.GetBufferStride();
-    for( unsigned int x=0; x<200; x++ )
-    {
-      for( unsigned int y=0; y<200; y++ )
-      {
-        PixelBuffer* pixel = pixelBuffer + y*stride + x*3;
-        if( ((int)(x/20.0f))%2 + ((int)(y/20.0f)%2) == 1 )
-        {
-          pixel[0]=255;
-          pixel[1]=0;
-          pixel[2]=0;
-          pixel[3]=255;
-        }
-        else
-        {
-          pixel[0]=0;
-          pixel[1]=0;
-          pixel[2]=255;
-          pixel[3]=255;
-        }
-      }
-    }
-    image.Update();
-    return image;
-  }
-
   /**
    * Invoked whenever the quit button is clicked
    * @param[in] button the quit button