Skip to content

rjGetSystemAttr

Shaddatic edited this page Apr 22, 2026 · 1 revision

Prototype

void rjGetSystemAttr( NJS_SYS_ATTR* attr )

API

void (*GetSystemAttr)( NJS_SYS_ATTR* attr )

Ninja

void njGetSystemAttr( NJS_SYS_ATTR* attr )

Parameters

NJS_SYS_ATTR* attr

 Opaque Ninja context structure

Returns

No return value.

Description

Get the current Ninja context structure, as an opaque buffer. This can be used to quickly restore the context state, or store the current state for use later.

Example

This example will first store the Ninja context, allowing changes to be made to the Ninja context temporally, before restoring it.

NJS_SYS_ATTR attr;

// get context
rjGetSystemAttr( &attr ); // <<<<<<<<

// change context parameters

// set context, undoing all changes
rjSetSystemAttr( &attr );

Related Functions

History

  • 1.5.0.0:
    • Introduced to the 'Ninja' API module

Clone this wiki locally