@@ -32,7 +32,6 @@ THE SOFTWARE.
32
32
#include " base/ccUtils.h"
33
33
#include " platform/CCDevice.h"
34
34
#include " renderer/CCRenderer.h"
35
- #include " renderer/CCGLProgramState.h"
36
35
#include " base/CCDirector.h"
37
36
#include " base/CCEventDispatcher.h"
38
37
#include " base/CCEventListenerTouch.h"
@@ -42,7 +41,6 @@ THE SOFTWARE.
42
41
#include " base/CCEventAcceleration.h"
43
42
#include " base/CCEventListenerAcceleration.h"
44
43
#include " base/ccUTF8.h"
45
- #include " renderer/CCGLProgram.h"
46
44
#include " renderer/CCShaderCache.h"
47
45
#include " renderer/backend/Buffer.h"
48
46
#include " renderer/ccShaders.h"
@@ -337,7 +335,7 @@ LayerColor* LayerColor::create()
337
335
return ret;
338
336
}
339
337
340
- LayerColor * LayerColor::create (const Color4B& color, GLfloat width, GLfloat height)
338
+ LayerColor * LayerColor::create (const Color4B& color, float width, float height)
341
339
{
342
340
LayerColor * layer = new (std::nothrow) LayerColor ();
343
341
if ( layer && layer->initWithColor (color,width,height))
@@ -367,7 +365,7 @@ bool LayerColor::init()
367
365
return initWithColor (Color4B (0 ,0 ,0 ,0 ), s.width , s.height );
368
366
}
369
367
370
- bool LayerColor::initWithColor (const Color4B& color, GLfloat w, GLfloat h)
368
+ bool LayerColor::initWithColor (const Color4B& color, float w, float h)
371
369
{
372
370
if (Layer::init ())
373
371
{
@@ -411,17 +409,17 @@ void LayerColor::setContentSize(const Size & size)
411
409
Layer::setContentSize (size);
412
410
}
413
411
414
- void LayerColor::changeWidthAndHeight (GLfloat w ,GLfloat h)
412
+ void LayerColor::changeWidthAndHeight (float w ,float h)
415
413
{
416
414
this ->setContentSize (Size (w, h));
417
415
}
418
416
419
- void LayerColor::changeWidth (GLfloat w)
417
+ void LayerColor::changeWidth (float w)
420
418
{
421
419
this ->setContentSize (Size (w, _contentSize.height ));
422
420
}
423
421
424
- void LayerColor::changeHeight (GLfloat h)
422
+ void LayerColor::changeHeight (float h)
425
423
{
426
424
this ->setContentSize (Size (_contentSize.width , h));
427
425
}
0 commit comments