99#import " CCNode.h"
1010
1111
12- typedef NS_ENUM (NSUInteger , CCLightNodeType )
12+ typedef NS_ENUM (NSUInteger , CCLightType )
1313{
14- CCLightNodePoint = 0 ,
15- CCLightNodeDirectional = 1 ,
16- CCLightNodeSpot = 2 ,
14+ CCLightPoint = 0 ,
15+ CCLightDirectional = 1 ,
16+ CCLightSpot = 2 ,
1717};
1818
19+
1920/* *
2021 * CCLightNode allows the user to define lights that will be used with
2122 * CCEffectLighting.
@@ -36,7 +37,7 @@ typedef NS_ENUM(NSUInteger, CCLightNodeType)
3637 * the light to the node exceeds the cutoff angle then the light no longer
3738 * contributes to the lighting of the node.
3839 */
39- @property (nonatomic , assign ) CCLightNodeType type;
40+ @property (nonatomic , assign ) CCLightType type;
4041
4142/* * The primary color of the light. As described below, the color is modulated by the
4243 * intensity value to determine the contribution of the light to the lighting
@@ -91,7 +92,7 @@ typedef NS_ENUM(NSUInteger, CCLightNodeType)
9192 *
9293 * @return The CCLighttNode object.
9394 */
94- -(id )initWithType : (CCLightNodeType )type color : (CCColor *)color intensity : (float )intensity ambientColor : (CCColor *)ambientColor ambientIntensity : (float )ambientIntensity ;
95+ -(id )initWithType : (CCLightType )type color : (CCColor *)color intensity : (float )intensity ambientColor : (CCColor *)ambientColor ambientIntensity : (float )ambientIntensity ;
9596
9697
9798// / -----------------------------------------------------------------------
@@ -109,7 +110,7 @@ typedef NS_ENUM(NSUInteger, CCLightNodeType)
109110 *
110111 * @return An initialized CCLightNode object.
111112 */
112- +(id )lightWithType : (CCLightNodeType )type color : (CCColor *)color intensity : (float )intensity ambientColor : (CCColor *)ambientColor ambientIntensity : (float )ambientIntensity ;
113+ +(id )lightWithType : (CCLightType )type color : (CCColor *)color intensity : (float )intensity ambientColor : (CCColor *)ambientColor ambientIntensity : (float )ambientIntensity ;
113114
114115
115116@end
0 commit comments