Skip to content

Commit 016c90d

Browse files
author
Thayer J Andrews
committed
CCEffects - Remove CC_ENABLE_EXPERIMENTAL_EFFECTS
1 parent 9383b8f commit 016c90d

38 files changed

+9
-92
lines changed

cocos2d-ui-tests/tests/CCEffectPongTest.m

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
#import "CCEffectNode.h"
1313
#import "CCEffectGaussianBlur.h"
1414

15-
#if CC_ENABLE_EXPERIMENTAL_EFFECTS
1615

1716
#define PADDLE_SCALE 0.5f
1817
#define PADDLE_X_OFFSET 10.0f
@@ -377,7 +376,3 @@ - (void)decreasePixellate:(CCTime)interval
377376

378377
@end
379378

380-
#endif
381-
382-
383-

cocos2d-ui-tests/tests/CCEffectsTest.m

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
#import "CCEffectNode.h"
55
#import "CCEffectGaussianBlur.h"
66

7-
#if CC_ENABLE_EXPERIMENTAL_EFFECTS
87

98
@interface CCEffectsTest : TestBase @end
109
@implementation CCEffectsTest
@@ -711,5 +710,4 @@ -(void)renderTextureHelper:(CCNode *)stage size:(CGSize)size
711710
[node addChild:sprite];
712711
}
713712
@end
714-
#endif
715713

cocos2d/CCEffect.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,8 @@
1212
#import "ccConfig.h"
1313
#import "ccTypes.h"
1414

15-
#if CC_ENABLE_EXPERIMENTAL_EFFECTS
1615
@interface CCEffect : NSObject
1716

1817
@property (nonatomic, copy) NSString *debugName;
1918

2019
@end
21-
#endif

cocos2d/CCEffect.m

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
#import "CCEffect_Private.h"
1111
#import "CCTexture.h"
1212

13-
#if CC_ENABLE_EXPERIMENTAL_EFFECTS
1413
NSString * const CCShaderUniformPreviousPassTexture = @"cc_PreviousPassTexture";
1514

1615
static NSString* fragBase =
@@ -548,7 +547,6 @@ -(BOOL)stitchSupported:(CCEffectFunctionStitchFlags)stitch
548547

549548

550549
@end
551-
#endif
552550

553551

554552

cocos2d/CCEffectBloom.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88

99
#import "CCEffect.h"
1010

11-
#if CC_ENABLE_EXPERIMENTAL_EFFECTS
1211
@interface CCEffectBloom : CCEffect
1312

1413
// ranges between 0.0-1.0 - defines which part of the image should be glown via a luminance factor (brightness).
@@ -33,4 +32,3 @@
3332
+(id)effectWithPixelBlurRadius:(NSUInteger)blurRadius intensity:(float)intensity luminanceThreshold:(float)luminanceThreshold;
3433

3534
@end
36-
#endif

cocos2d/CCEffectBloom.m

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@
4545
#import "CCRenderer.h"
4646
#import "CCTexture.h"
4747

48-
#if CC_ENABLE_EXPERIMENTAL_EFFECTS
4948
@implementation CCEffectBloom {
5049
NSUInteger _numberOfOptimizedOffsets;
5150
GLfloat _sigma;
@@ -379,5 +378,4 @@ - (CCEffectPrepareStatus)prepareForRendering
379378
}
380379

381380
@end
382-
#endif
383381

cocos2d/CCEffectBrightness.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88

99
#import "CCEffect.h"
1010

11-
#if CC_ENABLE_EXPERIMENTAL_EFFECTS
1211
@interface CCEffectBrightness : CCEffect
1312

1413
@property (nonatomic) float brightness;
@@ -18,4 +17,3 @@
1817
+(id)effectWithBrightness:(float)brightness;
1918

2019
@end
21-
#endif

cocos2d/CCEffectBrightness.m

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
#import "CCRenderer.h"
1212
#import "CCTexture.h"
1313

14-
#if CC_ENABLE_EXPERIMENTAL_EFFECTS
1514
static float conditionBrightness(float brightness);
1615

1716
@interface CCEffectBrightness ()
@@ -91,5 +90,3 @@ float conditionBrightness(float brightness)
9190
NSCAssert((brightness >= -1.0) && (brightness <= 1.0), @"Supplied brightness out of range [-1..1].");
9291
return clampf(brightness, -1.0f, 1.0f);
9392
}
94-
95-
#endif

cocos2d/CCEffectContrast.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88

99
#import "CCEffect.h"
1010

11-
#if CC_ENABLE_EXPERIMENTAL_EFFECTS
1211
@interface CCEffectContrast : CCEffect
1312

1413
@property (nonatomic) float contrast;
@@ -18,4 +17,3 @@
1817
+(id)effectWithContrast:(float)contrast;
1918

2019
@end
21-
#endif

cocos2d/CCEffectContrast.m

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
#import "CCRenderer.h"
1212
#import "CCTexture.h"
1313

14-
#if CC_ENABLE_EXPERIMENTAL_EFFECTS
1514
static float conditionContrast(float contrast);
1615

1716

@@ -99,5 +98,3 @@ float conditionContrast(float contrast)
9998
float clampedExp = clampf(contrast, -1.0f, 1.0f);
10099
return powf(kContrastBase, clampedExp);
101100
}
102-
103-
#endif

0 commit comments

Comments
 (0)