@@ -32,7 +32,6 @@ THE SOFTWARE.
3232#include " base/ccUtils.h"
3333#include " platform/CCDevice.h"
3434#include " renderer/CCRenderer.h"
35- #include " renderer/CCGLProgramState.h"
3635#include " base/CCDirector.h"
3736#include " base/CCEventDispatcher.h"
3837#include " base/CCEventListenerTouch.h"
@@ -42,7 +41,6 @@ THE SOFTWARE.
4241#include " base/CCEventAcceleration.h"
4342#include " base/CCEventListenerAcceleration.h"
4443#include " base/ccUTF8.h"
45- #include " renderer/CCGLProgram.h"
4644#include " renderer/CCShaderCache.h"
4745#include " renderer/backend/Buffer.h"
4846#include " renderer/ccShaders.h"
@@ -337,7 +335,7 @@ LayerColor* LayerColor::create()
337335 return ret;
338336}
339337
340- LayerColor * LayerColor::create (const Color4B& color, GLfloat width, GLfloat height)
338+ LayerColor * LayerColor::create (const Color4B& color, float width, float height)
341339{
342340 LayerColor * layer = new (std::nothrow) LayerColor ();
343341 if ( layer && layer->initWithColor (color,width,height))
@@ -367,7 +365,7 @@ bool LayerColor::init()
367365 return initWithColor (Color4B (0 ,0 ,0 ,0 ), s.width , s.height );
368366}
369367
370- bool LayerColor::initWithColor (const Color4B& color, GLfloat w, GLfloat h)
368+ bool LayerColor::initWithColor (const Color4B& color, float w, float h)
371369{
372370 if (Layer::init ())
373371 {
@@ -411,17 +409,17 @@ void LayerColor::setContentSize(const Size & size)
411409 Layer::setContentSize (size);
412410}
413411
414- void LayerColor::changeWidthAndHeight (GLfloat w ,GLfloat h)
412+ void LayerColor::changeWidthAndHeight (float w ,float h)
415413{
416414 this ->setContentSize (Size (w, h));
417415}
418416
419- void LayerColor::changeWidth (GLfloat w)
417+ void LayerColor::changeWidth (float w)
420418{
421419 this ->setContentSize (Size (w, _contentSize.height ));
422420}
423421
424- void LayerColor::changeHeight (GLfloat h)
422+ void LayerColor::changeHeight (float h)
425423{
426424 this ->setContentSize (Size (_contentSize.width , h));
427425}
0 commit comments