-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathCPDebugLayer.h
62 lines (44 loc) · 1.6 KB
/
CPDebugLayer.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
//
// CPDebugLayer.h
//
// Created by Dominique d'Argent on 15.03.12.
// Copyright 2012. All rights reserved.
//
#import "cocos2d.h"
#import "chipmunk.h"
extern NSString *const CPDebugLayerDrawShapes;
extern NSString *const CPDebugLayerDrawConstraints;
extern NSString *const CPDebugLayerDrawBBs;
extern NSString *const CPDebugLayerDrawCollisionPoints;
extern NSString *const CPDebugLayerShapeColor;
extern NSString *const CPDebugLayerConstraintColor;
extern NSString *const CPDebugLayerBBColor;
extern NSString *const CPDebugLayerCollisionPointColor;
extern NSString *const CPDebugLayerLineWidth;
extern NSString *const CPDebugLayerPointSize;
@interface CPDebugLayerColor : NSObject {
@private
cpFloat _r, _g, _b, _a;
}
@property (nonatomic, readonly) ccColor4B ccColor4B;
@property (nonatomic, readonly) ccColor4F ccColor4F;
+ (id)colorWithR:(cpFloat)r g:(cpFloat)g b:(cpFloat)b a:(cpFloat)a;
+ (id)colorWithCCColor4B:(ccColor4B)color;
+ (id)colorWithCCColor4F:(ccColor4F)color;
+ (id)colorWithCCColor3B:(ccColor3B)color;
// designated initializer
- (id)initWithR:(cpFloat)r g:(cpFloat)g b:(cpFloat)b a:(cpFloat)a;
- (id)initWithCCColor4B:(ccColor4B)color;
- (id)initWithCCColor4F:(ccColor4F)color;
- (id)initWithCCColor3B:(ccColor3B)color;
@end
@interface CPDebugLayer : CCLayer {
@private
cpSpace *_space;
NSDictionary *_options;
}
@property (nonatomic, copy, setter = addOptions:) NSDictionary *options;
+ (id)debugLayerForSpace:(cpSpace *)space options:(NSDictionary *)options;
+ (NSDictionary *)defaultOptions;
- (id)initWithSpace:(cpSpace *)space options:(NSDictionary *)options;
@end