-
Notifications
You must be signed in to change notification settings - Fork 3
rjSetCurrentContext
Shaddatic edited this page Apr 21, 2026
·
1 revision
void rjSetCurrentContext( Int n )void (*SetCurrentContext)( Int n )N/A - In binary, but not part of the API headers
Ninja context slot
| Name | Value | Usage |
|---|---|---|
NJD_SYSTEM_CTX |
0 |
Ninja system context slot (default) |
NJD_DEBUG_CTX |
1 |
Context slot for debugging |
NJD_NINDOWS_CTX |
2 |
Context slot for 'Nindows' (Ninja Windows) |
NJD_USER0_CTX |
3 |
Context slot for user purpose |
NJD_USER1_CTX |
3 |
Context slot for user purpose |
NJD_USER2_CTX |
4 |
Context slot for user purpose |
No return value.
Change the current Ninja Context slot
This example will change the context slot to USER0, allowing changes to be made to the Ninja context temporally, before restoring the context slot to SYSTEM.
// change context
rjSetCurrentContext( NJD_USER0_CTX ); // <<<<<<<<
// change context parameters without applying changes to the main context
// restore default context, effectively undoing all changes
rjSetCurrentContext( NJD_SYSTEM_CTX ); // <<<<<<<<- rjGetSystemAttr() Get Ninja context struct
- rjSetSystemAttr() Set Ninja context struct
-
1.5.0.0:
- Introduced to the 'Ninja' API module
- rjSetCurrentContext()
- rjGetSystemAttr()
- rjSetSystemAttr()
- rjSetBackColor()
- rjSetBackTexture()
- rjSpecularMode()
- rjPolygonCullingMode()
- rjZBufferMode()
- rjZWriteMode()
- rjTextureShadingMode()
- rjSuperSampleMode()
- rjMipmapAdjust()
- rjIgnoreTextureAlphaMode()
- rjTextureFilterMode()
- rjTextureClampMode()
- rjTextureFlipMode()
- rjColorClampMode()
- rjColorBlendingMode()
- rjModifierMode()
- rjSetCheapShadowMode()
- rjSetDepthQueue()
- rjSetEnvelopeWeightValue()
- rjSetTexture()
- rjSetTextureNum()
- rjSetTextureNumG()
- rjGetCurrentTexlist()
- rjDrawPolygon()
- rjDrawTexture()
- rjDrawTextureH()
- rjDrawTextureEx()
- rjDrawTextureHEx()
- rjDrawPolygon3DEx()
- rjDrawTexture3DEx()
- rjDrawTexture3DHEx()
- rjDrawLineStrip()
- rjDrawLineList()
- rjDrawLineStrip3D()
- rjDrawLineList3D()
- rjDrawSprite2D()
- rjDrawSprite3D()
- rjDrawPolygon2D()
- rjDrawQuadTexture()
- rjDrawQuadTextureEx()