Sampler built on top of a CGBitmapContext to allow deformable geometry. More...
#import <ChipmunkImageSampler.h>
Inherits ChipmunkBitmapSampler.
Inherited by ChipmunkImageSampler.
Public Member Functions | |
(id) | - initWithWidth:height:colorSpace:bitmapInfo:component: |
Initialize a context based sampler. | |
Properties | |
CGContextRef | context |
CGBitmapContext for this sampler. | |
NSMutableData * | pixelData |
NSMutableData object holding the pixel data. |
Sampler built on top of a CGBitmapContext to allow deformable geometry.
Very efficient when paired with a ChipmunkTileCache.
- (id) initWithWidth: | (int) | width | ||
height: | (int) | height | ||
colorSpace: | (CGColorSpaceRef) | colorSpace | ||
bitmapInfo: | (CGBitmapInfo) | bitmapInfo | ||
component: | (NSUInteger) | component | ||
Initialize a context based sampler.
Must provide options for a valid context. Find out more here in the Quartz 2D Programming Guide.