Inherits from NSObject
Conforms to NGLCoreTimer
Declared in NGLDebug.h

Overview

Monitor to measure the performance of NinevehGL. (Singleton)

The NGLDebug includes many kinds of monitors and information. To all monitors you can set it to measure: the entire application, a specific camera or a single mesh.

NGLDebug is a singleton class and you shouldn’t create a new instance of it. Instead, call the static method debugMonitor to have access to it. Then, you must call one of the startWithView: methods informing a NGLView. The monitor will appear in the top of the informed NGLView automatically.

To stop the monitor at any time, just call stopDebug method.

Tasks

Class Methods

debugMonitor

Returns the singleton instance of NGLDebug.

+ (NGLDebug *)debugMonitor

Return Value

A singleton NGLDebug instance.

Discussion

Returns the singleton instance of NGLDebug.

NGLDebug works with one single core but with multiple outputs, which means you can have two or more monitors running on the screen at the same time.

Declared In

NGLDebug.h

Instance Methods

startWithView:

Starts the NGLDebug to the entire application.

- (void)startWithView:(NGLView *)view

Parameters

view

The NGLView you want to see the monitor comes up.

Discussion

Starts the NGLDebug to the entire application.

This method takes the view you want to see the monitor. The tracking data don’t need necessarily be related with the informed NGLView. The view is just a visual reference to place the monitor.

See Also

Declared In

NGLDebug.h

startWithView:camera:

Starts the NGLDebug to the entire application.

- (void)startWithView:(NGLView *)view camera:(NGLCamera *)camera

Parameters

view

The NGLView you want to see the monitor comes up.

camera

The NGLCamera which the monitor will have focus on.

Discussion

Starts the NGLDebug to the entire application.

This method takes the view you want to see the monitor. The tracking data doesn’t need necessarily be related with the informed NGLView. The view is just a visual reference to place the monitor. Besides, this methods locks the monitor’s focus on some specific camera, reading the data from the meshes linked with that camera.

See Also

Declared In

NGLDebug.h

startWithView:mesh:

Starts the NGLDebug to the entire application.

- (void)startWithView:(NGLView *)view mesh:(NGLMesh *)mesh

Parameters

view

The NGLView you want to see the monitor comes up.

mesh

The NGLMesh which the monitor will have focus on.

Discussion

Starts the NGLDebug to the entire application.

This method takes the view you want to see the monitor. The tracking data don’t need necessarily be related with the informed NGLView. The view is just a visual reference to place the monitor. Besides, this methods locks the monitor’s focus on some specific mesh, reading the data only from that mesh.

See Also

Declared In

NGLDebug.h

stopDebug

Stops the debug monitor.

- (void)stopDebug

Discussion

Stops the debug monitor.

Immediately stops the current monitor. The monitor will automatically exit the screen.

Declared In

NGLDebug.h