Remote Debugging Utilities

Summary
Remote Debugging Utilities
NKColorsStatic class that defines colors that can be used to set colors of RDU drawing.
Variables
ORANGE255 120 0
GREEN0 128 0
YELLOW255 255 0
RED255 0 0
BLUE0 0 255
TEAL107 202 226
BROWN139 69 19
WHITE255 255 255
BLACK0 0 0
RDUStatic class that holds API for drawing debug lines / shapes.
Functions
NKEnableEnables the drawing of RDU draw submissions.
NKDisableDisables the drawing of RDU draw submissions.
NKIsEnabledQuery if drawing is enabled.
NKDisplaySphereDisplays a sphere.
NKDisplayPointNot yet implemented.
NKDisplayStarNot yet implemented.
NKDisplayBox (DEPRECIATED)Displays an AABB.
NKDisplayAABBDisplays an Axis-Align Bounding Box.
NKDisplayOBBDisplays an Oriented Bounding Box.
NKDisplayLineDisplays a line described as two points
NKDisplayRayDisplays a line described as a ray
NKDisplayArrowNot yet implemented.
NKDisplayPlaneNot yet implemented.
NKDisplayTriangleNot yet implemented.
NKDisplayObjectCollisionDisplays the collision geometry of a given object
NKUpdateCameraUpdates the remote camera (Internal only)
NKDisplay3DTextDisplays text in screen coordinates given 3D world coordinates.
NKDisplay2DTextDisplays text on the screen given screen coordinates (absolute pixel position from top left)

NKColors

typedef Colors NKColors

Static class that defines colors that can be used to set colors of RDU drawing.  Values are stored as RGB, no alpha.

Summary
Variables
ORANGE255 120 0
GREEN0 128 0
YELLOW255 255 0
RED255 0 0
BLUE0 0 255
TEAL107 202 226
BROWN139 69 19
WHITE255 255 255
BLACK0 0 0

Variables

ORANGE

255 120 0

GREEN

0 128 0

YELLOW

255 255 0

RED

255 0 0

BLUE

0 0 255

TEAL

107 202 226

BROWN

139 69 19

WHITE

255 255 255

BLACK

0 0 0

RDU

Static class that holds API for drawing debug lines / shapes.

Summary
Functions
NKEnableEnables the drawing of RDU draw submissions.
NKDisableDisables the drawing of RDU draw submissions.
NKIsEnabledQuery if drawing is enabled.
NKDisplaySphereDisplays a sphere.
NKDisplayPointNot yet implemented.
NKDisplayStarNot yet implemented.
NKDisplayBox (DEPRECIATED)Displays an AABB.
NKDisplayAABBDisplays an Axis-Align Bounding Box.
NKDisplayOBBDisplays an Oriented Bounding Box.
NKDisplayLineDisplays a line described as two points
NKDisplayRayDisplays a line described as a ray
NKDisplayArrowNot yet implemented.
NKDisplayPlaneNot yet implemented.
NKDisplayTriangleNot yet implemented.
NKDisplayObjectCollisionDisplays the collision geometry of a given object
NKUpdateCameraUpdates the remote camera (Internal only)
NKDisplay3DTextDisplays text in screen coordinates given 3D world coordinates.
NKDisplay2DTextDisplays text on the screen given screen coordinates (absolute pixel position from top left)

Functions

NKEnable

Enables the drawing of RDU draw submissions.

NKDisable

Disables the drawing of RDU draw submissions.

NKIsEnabled

Query if drawing is enabled.

Returns

boolenabled / disabled

NKDisplaySphere

Displays a sphere.

Paramaters

vec3position in world space
Numbersphere radius
NKColorcolor to use (Default: RED)

NKDisplayPoint

Not yet implemented.

NKDisplayStar

Not yet implemented.

NKDisplayBox (DEPRECIATED)

Displays an AABB.  Please use NKDisplayAABB or NKDisplayOBB instead.

Paramaters

vec3min point in world space
vec3max point in world space
NKColorcolor to use (Default: RED)

NKDisplayAABB

Displays an Axis-Align Bounding Box.

Paramaters

vec3min point in world space
vec3max point in world space
NKColorcolor to use (Default: RED)

NKDisplayOBB

Displays an Oriented Bounding Box.

Paramaters

vec3position in world space
vec3half extents
quatbox orientation
NKColorcolor to use (Default: RED)

NKDisplayLine

Displays a line described as two points

Paramaters

vec3point A
vec3point B
NKColorcolor to use (default: RED)

NKDisplayRay

Displays a line described as a ray

Paramaters

vec3position in world
vec3normal
floatlength of ray
NKColorcolor to use (default: RED)

NKDisplayArrow

Not yet implemented.

NKDisplayPlane

Not yet implemented.

NKDisplayTriangle

Not yet implemented.

NKDisplayObjectCollision

Displays the collision geometry of a given object

Paramaters

gameobjectthe object to attempt to display collision geometry for.

NKUpdateCamera

Updates the remote camera (Internal only)

NKDisplay3DText

Displays text in screen coordinates given 3D world coordinates.

Paramaters

stringThe string to display
vec3the world position

NKDisplay2DText

Displays text on the screen given screen coordinates (absolute pixel position from top left)

Paramaters

stringThe string to display
doublex
doubley
typedef Colors NKColors
Static class that defines colors that can be used to set colors of RDU drawing.
Close