1 #import "ObjectiveChipmunk.h"
2 #import "ChipmunkAutoGeometry.h"
4 #import <TargetConditionals.h>
6 #if TARGET_OS_IPHONE == 1
7 #import <CoreGraphics/CoreGraphics.h>
18 NSUInteger _width, _height, _stride;
19 NSUInteger _bytesPerPixel, _component;
22 const uint8_t *_pixels;
31 @property(nonatomic, readonly) NSUInteger width;
34 @property(nonatomic, readonly) NSUInteger height;
37 @property(nonatomic, readonly) NSUInteger bytesPerPixel;
40 @property(nonatomic, assign) NSUInteger component;
43 @property(nonatomic, readonly) NSData *pixelData;
47 @property(nonatomic, assign)
cpBB outputRect;
57 -(id)initWithWidth:(NSUInteger)width height:(NSUInteger)height stride:(NSUInteger)stride bytesPerPixel:(NSUInteger)bytesPerPixel component:(NSUInteger)component flip:(
bool)flip pixelData:(NSData *)pixelData;
60 -(void)setBorderRepeat;
63 -(void)setBorderValue:(
cpFloat)borderValue;
76 CGContextRef _context;
80 @property(nonatomic, readonly) CGContextRef context;
83 @property(nonatomic, readonly) NSMutableData *pixelData;
87 -(id)initWithWidth:(
int)width height:(
int)height colorSpace:(CGColorSpaceRef)colorSpace bitmapInfo:(CGBitmapInfo)bitmapInfo component:(NSUInteger)component;
97 +(CGImageRef)loadImage:(NSURL *)url;
101 -(id)initWithImage:(CGImageRef)image isMask:(
bool)isMask contextWidth:(NSUInteger)width contextHeight:(NSUInteger)height;
105 -(id)initWithImageFile:(NSURL *)url isMask:(
bool)isMask;