Inherits from CCLayer : CCNode : NSObject
Declared in Box2DDebugLayer.h
Box2DDebugLayer.mm

Tasks

Other Methods

Other Methods

  • – dealloc

    Clean up by deleting the debug draw layer.

  • – draw

    Tweak a few OpenGL options and then draw the Debug Layer

Class Methods

debugLayerWithWorld:ptmRatio:

Return an autoreleased debug layer

+ (id)debugLayerWithWorld:(b2World *)world ptmRatio:(int)ptmRatio

Declared In

Box2DDebugLayer.h

debugLayerWithWorld:ptmRatio:flags:

Create a debug layer with the given world, ptm ratio and debug display flags

+ (id)debugLayerWithWorld:(b2World *)world ptmRatio:(int)ptmRatio flags:(uint32)flags

Declared In

Box2DDebugLayer.mm

Instance Methods

dealloc

Clean up by deleting the debug draw layer.

- (void)dealloc

Declared In

Box2DDebugLayer.mm

draw

Tweak a few OpenGL options and then draw the Debug Layer

- (void)draw

Declared In

Box2DDebugLayer.mm

initWithWorld:ptmRatio:

Initialise a debug layer with the given parameters.

- (id)initWithWorld:(b2World *)world ptmRatio:(int)ptmRatio

Declared In

Box2DDebugLayer.h

initWithWorld:ptmRatio:flags:

Create a debug layer with the given world, ptm ratio and debug display flags

- (id)initWithWorld:(b2World *)world ptmRatio:(int)ptmRatio flags:(uint32)flags

Declared In

Box2DDebugLayer.mm