TKDebugDraw Constants Reference

Declared in TKMapNode.h

TKDebugDraw

Options for debug drawing of various tilemap aspects. Note that [TKMapNode drawDebugOptions] must be enabled for any of these options to be drawn. Also some options (ie drawing grid on large maps) can severely affect performance.

Definition

typedef NS_ENUM(uint32_t, TKDebugDraw ) {
   TKDebugDrawRenderArea = ( 1 < < 0 ),
   TKDebugDrawBounds = ( 1 < < 1 ),
   TKDebugDrawInnerBounds = ( 1 < < 2 ),
   TKDebugDrawGrid = ( 1 < < 3 ),
   TKDebugDrawBoundingBoxGrid = ( 1 < < 4 ),
   TKDebugDrawMouseOverTile = ( 1 < < 5 ),
   TKDebugDrawMouseOverTileOffsetPoints = ( 1 < < 6 ),
};

Constants

TKDebugDrawRenderArea

Draws a rectangle that highlights the area in which tiles are drawn. Only valid if [TKMapNode renderSize] is non-zero.

Declared In TKMapNode.h.

TKDebugDrawBounds

Draws the tilemap’s bounds rectangle. See [TKTileLayer bounds].

Declared In TKMapNode.h.

TKDebugDrawInnerBounds

Draws the tilemap’s inner bounds rectangle. See [TKTileLayer innerBounds].

Declared In TKMapNode.h.

TKDebugDrawGrid

Draws the tilemap grid, either rectangles (ortho) or isometric or hexagonal outlines are drawn.

Declared In TKMapNode.h.

TKDebugDrawBoundingBoxGrid

Draws the bounding box rectangles of Iso and Hex tiles. This is mainly used to debug tile coord conversion, since a point’s potential tile coord is first limited to a handful of possible tiles (3 or 4) by a rectangle intersection test.

Declared In TKMapNode.h.

TKDebugDrawMouseOverTile

(Mac builds only) Highlights the tile currently under the mouse cursor.

Declared In TKMapNode.h.

TKDebugDrawMouseOverTileOffsetPoints

(Mac builds only, requires TKDebugDrawMouseOverTile to be enabled) Draws the tile’s offset points, ie the hexagon vertices. See [TKTileLayer pointOffsetFor:].

Declared In TKMapNode.h.

Declared In

TKMapNode.h