From 2940a6606f56878e2190b15d265be73feb6fdd81 Mon Sep 17 00:00:00 2001
From: Paul Wisbey
Date: Wed, 4 Dec 2019 10:35:57 +0000
Subject: [PATCH] Removed redundant BufferImage code
Change-Id: I2189c6239a8d1b6d32723220966150ec597d29e8
---
examples/textured-mesh/textured-mesh-example.cpp | 30 ------------------------
1 file changed, 30 deletions(-)
diff --git a/examples/textured-mesh/textured-mesh-example.cpp b/examples/textured-mesh/textured-mesh-example.cpp
index a0ca655..19dd3a6 100644
--- a/examples/textured-mesh/textured-mesh-example.cpp
+++ b/examples/textured-mesh/textured-mesh-example.cpp
@@ -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
--
2.7.4