fix compile: rename kOrientation to kCCTransitionOrientation

This commit is contained in:
fape 2012-11-17 19:02:04 +01:00
parent 8de6d310bf
commit 355d8df79e
3 changed files with 23 additions and 23 deletions

View File

@ -189,29 +189,29 @@ local function createTransition(index, t, scene)
elseif index == Transition_Table.FadeWhiteTransition then
scene = CCTransitionFade:create(t, scene, ccc3(255, 255, 255))
elseif index == Transition_Table.FlipXLeftOver then
scene = CCTransitionFlipX:create(t, scene, kOrientationLeftOver)
scene = CCTransitionFlipX:create(t, scene, kCCTransitionOrientationLeftOver)
elseif index == Transition_Table.FlipXRightOver then
scene = CCTransitionFlipX:create(t, scene, kOrientationRightOver)
scene = CCTransitionFlipX:create(t, scene, kCCTransitionOrientationRightOver)
elseif index == Transition_Table.FlipYUpOver then
scene = CCTransitionFlipY:create(t, scene, kOrientationUpOver)
scene = CCTransitionFlipY:create(t, scene, kCCTransitionOrientationUpOver)
elseif index == Transition_Table.FlipYDownOver then
scene = CCTransitionFlipY:create(t, scene, kOrientationDownOver)
scene = CCTransitionFlipY:create(t, scene, kCCTransitionOrientationDownOver)
elseif index == Transition_Table.FlipAngularLeftOver then
scene = CCTransitionFlipAngular:create(t, scene, kOrientationLeftOver)
scene = CCTransitionFlipAngular:create(t, scene, kCCTransitionOrientationLeftOver)
elseif index == Transition_Table.FlipAngularRightOver then
scene = CCTransitionFlipAngular:create(t, scene, kOrientationRightOver)
scene = CCTransitionFlipAngular:create(t, scene, kCCTransitionOrientationRightOver)
elseif index == Transition_Table.ZoomFlipXLeftOver then
scene = CCTransitionZoomFlipX:create(t, scene, kOrientationLeftOver)
scene = CCTransitionZoomFlipX:create(t, scene, kCCTransitionOrientationLeftOver)
elseif index == Transition_Table.ZoomFlipXRightOver then
scene = CCTransitionZoomFlipX:create(t, scene, kOrientationRightOver)
scene = CCTransitionZoomFlipX:create(t, scene, kCCTransitionOrientationRightOver)
elseif index == Transition_Table.ZoomFlipYUpOver then
scene = CCTransitionZoomFlipY:create(t, scene, kOrientationUpOver)
scene = CCTransitionZoomFlipY:create(t, scene, kCCTransitionOrientationUpOver)
elseif index == Transition_Table.ZoomFlipYDownOver then
scene = CCTransitionZoomFlipY:create(t, scene, kOrientationDownOver)
scene = CCTransitionZoomFlipY:create(t, scene, kCCTransitionOrientationDownOver)
elseif index == Transition_Table.ZoomFlipAngularLeftOver then
scene = CCTransitionZoomFlipAngular:create(t, scene, kOrientationLeftOver)
scene = CCTransitionZoomFlipAngular:create(t, scene, kCCTransitionOrientationLeftOver)
elseif index == Transition_Table.ZoomFlipAngularRightOver then
scene = CCTransitionZoomFlipAngular:create(t, scene, kOrientationRightOver)
scene = CCTransitionZoomFlipAngular:create(t, scene, kCCTransitionOrientationRightOver)
elseif index == Transition_Table.CCTransitionShrinkGrow then
scene = CCTransitionShrinkGrow:create(t, scene)
elseif index == Transition_Table.CCTransitionRotoZoom then

View File

@ -1 +1 @@
fb55025330e8a2805460df5913b0a398c9120ed2
c893636df2a952d791291d26ca03022ee8fc29a6

View File

@ -1,13 +1,13 @@
typedef enum {
/// An horizontal orientation where the Left is nearer
kOrientationLeftOver = 0,
kCCTransitionOrientationLeftOver = 0,
/// An horizontal orientation where the Right is nearer
kOrientationRightOver = 1,
kCCTransitionOrientationRightOver = 1,
/// A vertical orientation where the Up is nearer
kOrientationUpOver = 0,
kCCTransitionOrientationUpOver = 0,
/// A vertical orientation where the Bottom is nearer
kOrientationDownOver = 1,
kCCTransitionOrientationDownOver = 1,
} tOrientation;
class CCTransitionScene : public CCScene
@ -77,32 +77,32 @@ class CCTransitionShrinkGrow : public CCScene
class CCTransitionFlipX : public CCScene
{
static CCTransitionFlipX* create(float t, CCScene* s, tOrientation o = kOrientationRightOver);
static CCTransitionFlipX* create(float t, CCScene* s, tOrientation o = kCCTransitionOrientationRightOver);
};
class CCTransitionFlipY : public CCScene
{
static CCTransitionFlipY* create(float t, CCScene* s, tOrientation o = kOrientationUpOver);
static CCTransitionFlipY* create(float t, CCScene* s, tOrientation o = kCCTransitionOrientationUpOver);
};
class CCTransitionFlipAngular : public CCScene
{
static CCTransitionFlipAngular* create(float t, CCScene* s, tOrientation o = kOrientationRightOver);
static CCTransitionFlipAngular* create(float t, CCScene* s, tOrientation o = kCCTransitionOrientationRightOver);
};
class CCTransitionZoomFlipX : public CCScene
{
static CCTransitionZoomFlipX* create(float t, CCScene* s, tOrientation o = kOrientationRightOver);
static CCTransitionZoomFlipX* create(float t, CCScene* s, tOrientation o = kCCTransitionOrientationRightOver);
};
class CCTransitionZoomFlipY : public CCScene
{
static CCTransitionZoomFlipY* create(float t, CCScene* s, tOrientation o = kOrientationUpOver);
static CCTransitionZoomFlipY* create(float t, CCScene* s, tOrientation o = kCCTransitionOrientationUpOver);
};
class CCTransitionZoomFlipAngular : public CCScene
{
static CCTransitionZoomFlipAngular* create(float t, CCScene* s, tOrientation o = kOrientationRightOver);
static CCTransitionZoomFlipAngular* create(float t, CCScene* s, tOrientation o = kCCTransitionOrientationRightOver);
};
class CCTransitionFade : public CCScene