9
9
#import " CCNode.h"
10
10
11
11
12
- typedef NS_ENUM (NSUInteger , CCLightNodeType )
12
+ typedef NS_ENUM (NSUInteger , CCLightType )
13
13
{
14
- CCLightNodePoint = 0 ,
15
- CCLightNodeDirectional = 1 ,
16
- CCLightNodeSpot = 2 ,
14
+ CCLightPoint = 0 ,
15
+ CCLightDirectional = 1 ,
16
+ CCLightSpot = 2 ,
17
17
};
18
18
19
+
19
20
/* *
20
21
* CCLightNode allows the user to define lights that will be used with
21
22
* CCEffectLighting.
@@ -36,7 +37,7 @@ typedef NS_ENUM(NSUInteger, CCLightNodeType)
36
37
* the light to the node exceeds the cutoff angle then the light no longer
37
38
* contributes to the lighting of the node.
38
39
*/
39
- @property (nonatomic , assign ) CCLightNodeType type;
40
+ @property (nonatomic , assign ) CCLightType type;
40
41
41
42
/* * The primary color of the light. As described below, the color is modulated by the
42
43
* intensity value to determine the contribution of the light to the lighting
@@ -91,7 +92,7 @@ typedef NS_ENUM(NSUInteger, CCLightNodeType)
91
92
*
92
93
* @return The CCLighttNode object.
93
94
*/
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 ;
95
96
96
97
97
98
// / -----------------------------------------------------------------------
@@ -109,7 +110,7 @@ typedef NS_ENUM(NSUInteger, CCLightNodeType)
109
110
*
110
111
* @return An initialized CCLightNode object.
111
112
*/
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 ;
113
114
114
115
115
116
@end
0 commit comments