to home
to home

Ninja Library Specification

To Japanese

index

01.
System Functions
02.Matrix Functions
03.Collision Functions
04.Mathematical Functions
05.2D Graphics Functions
06.3D Graphics Functions
07.Light Functions
08.Scroll Functions
09.Modeling Functions
10.View Functions
11.Texture Functions
12.Sprite Functions
13.Debugging Functions
14.Special Effects Functions
15.Motion Functions
16.Memory Functions
17.Drawing Functions
18.Input Functions

This function will be deleted in future.


01.System Functionsindex
02njColorBlendingMode
Sets Color Blending Mode
03njExitSystem
Performs system termination processing.
04njIgnoreTextureAlphaMode
Sets Texture Alpha Mode
05njInitSystem
Initializes the system.
06njInitVertexBuffer
Allocates the buffers for registration of vertex data.
07njMipmapAdjust
Adjusts Mipmap Level of Textures.
09njPolygonCullingMode
Sets Polygon Culling Mode
10njPolygonCullingSize
Sets Polygon Size for Culling
11njSetBackColor
Sets background color.
12njSetVSyncFunction
Registers the vertical sync interrupt callback function.
14njSuperSampleMode
Sets texture super sample.
15njTextureClampMode
Sets the texture clamp.
16njTextureFilterMode
Sets the texture filter.
17njTextureFlipMode
Sets the texture flip.
18njTextureShadingMode
Sets Texture Shading Mode
19njVersion
Gets the library version.
20njWaitVSync
Waits for a vertical interrupt.

02.Matrix Functionsindex
01njAddMatrix
Performs matrix addition.
02njAddVector
Performs vector addition.
03njCalcPoint
Applies matrix conversion to an arbitrary point.
04njCalcVector
Applies matrix conversion to an arbitrary vector.
05njClearMatrix
Clears the matrix stack.
06njDetMatrix
Determines a matrix expression.
07njGetMatrix
Gets a copy of the current matrix.
08njInitMatrix
Initializes the matrix stack.
09njInnerProduct
Obtains the inner product of two vectors.
10njInvertMatrix
Obtains the inverse (reversed rows/columns) of a matrix.
11njMirror
Obtains the mirror image of an arbitrary boundary surface.
12njMultiMatrix
Performs matrix multiplication.
13njOuterProduct
Obtains the outer product of two vectors.
14njPopMatrix
Pops the matrix stack.
15njProject
Throws a parallel project onto an arbitrary picture plane.
16njProject2
Projects a transparent view onto an arbitrary picture plane.
17njProjectScreen
Projects an arbitrary point onto the screen.
18njPushMatrix
Pushes the matrix stack.
19njResMatrix
(Unsupported)
20njRotate
Rotates a matrix around an arbitrary axis.
21njRotateX
Applies a matrix that gives a rotation around the X axis.
22njRotateXYZ
Applies a matrix that gives rotation around X, Y, and Z axes.
23njRotateY
Applies a matrix that gives rotation around Y axis.
24njRotateZ
Applies a matrix that gives rotation around Z axis.
25njScale
Scales a matrix.
26njScaleV
Scales a matrix.
27njScalor
Returns the scalar of an arbitrary vector.
28njScalor2
Returns the square of the scalar of an arbitrary vector.
29njSetMatrix
Copies an arbitrary matrix. 
30njSubMatrix
Performs matrix subtraction.
31njSubVector
Performs vector subtraction.
32njTranslate
Applies a matrix that gives parallel translation along each axis. 
33njTranslateV
Moves a matrix laterally.
34njTransposeMatrix
Transposes a matrix. 
35njUnitMatrix
Converts an arbitrary matrix to a unit matrix. 
36njUnitVector
Converts an arbitrary vector to a unit vector.

03.Collision Functionsindex
01njDistanceL2L
Returns the distance between two lines.
02njDistanceL2PL
Returns the distance between a line and a plane.
03njDistanceP2L
Returns the distance between a point and a line.
04njDistanceP2P
Returns the distance between two points.
05njDistanceP2PL
Returns the distance between a point and a line. 
06njDistancePL2PL
Returns the distance between two planes.
07njGetPnaneNormal
Finds the vector that is normal to a plane.
08njGetPnaneNormal2
Finds the vector that is normal to a plane.
09njIsParalellL2L
Returns whether two lines are parallel. 
10njIsParalellL2PL
Returns whether a line and a plane are parallel.
11njIsParalellPL2PL
Returns whether two planes are parallel.

04.Mathematical Functionsindex
01njAbs
Returns an absolute value. 
02njArcCos
Returns an arc cosine (ArcCos). 
03njArcCosec
Returns an arc cosecant. 
04njArcCot
Returns an arc cotangent.
05njArcSec
Returns an arc secant.
06njArcSin
Returns an arc sine. 
07njArcTan
Returns an arc tangent.
08njArcTan2
Returns an arc tangent (ArcTan2).
09njCeil
Returns the smallest integer not less than n (ceiling function).
10njCos
Returns a cosine.
11njCosec
Determines the cosecant.
12njCosech
Determines the hyperbolic cosecant.
13njCosh
Determines the hyperbolic cosine.
14njCot
Determines the cotangent.
15njCoth
Determines the hyperbolic cotangent.
16njExp
Determines exponents. 
17njFloor
Returns the largest integer not greater than n (floor function). 
18njFraction
Returns the decimal fraction.
19njHypot
Dertermines length of a hypotenuse.
20njInvertSqrt
Returns the inverse square root.
21njLog
Returns the natural logarithm.
22njLog10
Returns the base 10 logarithm.
23njLog2
Returns the base 2 logarithm. 
24njPow
Returns the power of a number.
25njRandom
Generates a random number.
26njRandomSeed
Sets the random number seed.
27njRoundOff
Rounds down the decimal fraction.
28njRoundUp
Rounds up the decimal fraction.
29njSec
Determines a secant. 
30njSech
Determines a hyperbolic secant.
31njSin
Determines a sine.
32njSinh
Determines a hyperbolic sine.
33njSqrt
Returns a square root
34njTan
Determines a tangent.
35njTanh
Determines a hyperbolic tangent.
36njOverhauserSpline
Overhauser spline correction function
37njLinear
Line shape correction function
38njKochanekSpline
Kochanek spline correction function
39njHermite
Hermite spline correction function
40njCubicBezier
3D Bezier spline correction function
41njCombination
Combination function
42njCardinalSpline
Cardinal spline correction function
43njBezier
Bezier correction function

05.2D Graphics Functionsindex
01njDrawCircle2D
Draws circles on a 2D screen.
02njDrawLine2D
Draws lines on a 2D screen.
03njDrawPoint2D
Draws points on a 2D screen. 
04njDrawPolygon2D
Draws a polygon on a 2D screen.
05njDrawTriangle2D
Draws triangles on a 2D screen.

06.3D Graphics Functionsindex
01njDrawLine3D
Draws lines in 3D space.
02njDrawPoint3D
Draws points in 3D space. 
03njDrawPolygon3D
Draws a polygon in 3D space.
04njDrawTriangle3D
Draws triangles in 3D space. 

07.Light Functionsindex
01njSetLightAlpha
Sets the changes of alpha against material, whose light is set by njCreateLight.
02njCreateLight
Defines a light source type and registers a new light. 
03njDeleteLight
Deletes a light created by njCreateLight. 
04njLightOff
Deactivates a light created by njCreateLight (turns off the light). 
05njLightOn
Activates a light created by njCreateLight (turns on the light). 
06njMultiLightMatrix
Multiplies a matrix with a light matrix.
07njRotateLightX
Rotates a light matrix around the X axis.
08njRotateLightXYZ
Rotates a light matrix around the X, Y, and Z axes.
09njRotateLightY
Rotates a light matrix around the Yaxis.
10njRotateLightZ
Rotates a light matrix around the Z axis. 
11njSetLightAngle
Sets the limit angle of a light created with njCreateLight.
12njSetLightColor
Sets the color of light defined by njCreateLight. 
13njSetLightDirection
Sets the directrion of light defined by njCreateLight. 
14njSetLightIntensity
Sets the intensity of light defined using njCreateLight. 
15njSetLightLocation
Sets the location of light defined by njCreateLight. 
16njSetLightRange
Sets the limit distance of a light created with njCreateLight. 
17njSetUserLight
Assigns a user-defined light function to a light. 
18njTranslateLight
Applies a matrix that gives parallel translation along each axis.
19njTranslateLightV
Moves a light matrix laterally according to a directional vector. 
20njUnitLightMatrix
Unitizes a light matrix.
21njSetLight
Unitizes a light matrix.
23njLightAllOn
This function reflects the light set at njCreateLight.
24njLightAllOff
This function does not reflect all the lights set at njCreateLight.
25njDeleteAllLight
This function deletes all the lights set at njCreateLight.

08.Scroll Functionsindex
01njDrawScroll
Draws a 2D scroll surface. 

09.Modeling Functionsindex
01njControl3D
Controls the drawing surface for a 3D object.
02njDrawModel
Draws a model.
03njDrawObject
Draws an object. 
04njFastDrawModel
Draws Models
05njFastDrawObject
Draws objects
06njInit3D
Initializing 3D system.
07njSetConstantAttr
Sets model attributes.
08njSetConstantMaterial
Sets model attributes.
09njSetDepthQueue
Sets depth queue.
10njSimpleDrawObject
Draws objects.
11njSimpleDrawModel
Draws models. 

10.View Functionsindex
01njCalcScreen
Projects points in 3D space onto the screen, then finds the screen coordinates to which the points are projected.
02njClip2D
Specifies the drawing area on the screen.
03njClipZ
Specifies the limit values of near clipping and far clipping.
04njForwardViewAbsolute
Moves the view location in the direction of the view. (Absolute move) 
05njForwardViewRelative
Moves the view location along the viewline. (Relative move)
06njInitView
Initializes the view.
07njLookAtView
Changes the view direction towards point (x, y, z).
08njLookAtViewV
Changes the view direction towards point (x, y, z).
09njMultiViewMatrix
Multiplies a view by a matrix.
10njReturn2BaseView
Returns the current view to the base view. 
11njRotateViewPosXAbsolute
Rotates the view location around the X axis. (Absolute rotation) 
12njRotateViewPosXRelative
Rotates the view around the X axis (relative rotation).
13njRotateViewPosYAbsolute
Rotates the view location around the Y axis. (Absolute rotation) 
14njRotateViewPosYRelative
Rotates the view around the Y axis (relative rotation).
15njRotateViewPosZAbsolute
Rotates the view location around the Z axis. (Absolute rotation)
16njRotateViewPosZRelative
Rotates the view around the Z axis (relative rotation).
17njRotateViewX
Rotates the view around the X axis (absolute rotation).
18njRotateViewXAbsolute
Rotates the view location around the X axis. (Absolute rotation)
19njRotateViewXRelative
Rotates the view around the X axis (relative rotation).
20njRotateViewXYZ
Rotates the view around the X, Y, and Z axes (absolute rotation).
21njRotateViewXYZAbsolute
Rotates the line of view around the X, Y, and Z axes. (Absolute rotation) 
22njRotateViewXYZRelative
Rotates the view around the X, Y, and Z axes (relative rotation).
23njRotateViewY
Rotates the view around the Y axis (absolute rotation).
24njRotateViewYAbsolute
Rotates the view line around the Y axis. (Absolute rotation)
25njRotateViewYRelative
Rotates the view around the Y axis (relative rotation).
26njRotateViewZ
Rotates the view around the Z axis (absolute rotation).
27njRotateViewZAbsolute
Rotates the view around the Z axis. (Absolute rotation)
28njRotateViewZRelative
Rotates the view around the Z axis (relative rotation).
29njSetAspect
Sets the screen aspect ratio.
30njSetBaseView
Sets the current view as the base view.
31njSetPerspective
Sets the perspective in horizontal direction.
32njSetScreen
Sets the screen.
33njSetScreenDist
Sets the distance from the perspective to the screen.
34njSetView
Specifies a user-defined view as the current view.
35njTranslateView
Translates the view along the X, Y, and Z axes (absolute translation).
36njTranslateViewAbsolute
Moves the view location along the X, Y, and Z axes. (Absolute move)
37njTranslateViewRelative
Translates the view along the X, Y, and Z axes (relative translation).
38njTranslateViewV
Translates the view along the X, Y, and Z axes (absolute translation).
39njTranslateViewVAbsolute
Moves the view location along the X, Y, and Z axes. (Absolute move) 
40njTranslateViewVRelative
Translates the view along the X, Y, and Z axes (relative translation).
41njUnitBaseViewVector
Converts the original view vector to a unit vector.
42njUnitCurrentViewVector
Converts the view vector of the current view to a unit vector.
43njUnitViewMatrix
Sets a unit matrix to the view matrix.
44njUnitViewVector
Converts the view vector to a unit vector.

11.Texture Functionsindex
01njCalcTexture
Calculates the remaining texture memory size
02njGetTextureNumG
Obtains the global index number of the current texture.
03njInitTexture
Sets the area used for storing texture information.
04njLoadCacheTexture
Sets the cache information area.
05njLoadCacheTextureNum
Loads a texture by texture number.
06njLoadCacheTextureNumG
Loads texture number globalIndex from from cache memory into texture memory. 
07njLoadTexture
Loads a texture.
08njLoadTextureNum
Loads textures
09njReleaseCacheTextureNum
Release cashe memory
10njReleaseCacheTextureAll
Release all cashe memory
11njReleaseCacheTextureNumG
Releases cashe memory
12njReleaseTexture
Releases texture memory
13njReleaseTextureNum
Releases texture memory
14njReleaseTextureNumG
Releases texture memory
15njReleaseTextureAll
Release all texture memory
16njSetTexture
Set current texture list
17njSetTextureInfo
Set data into texture name structure
18njSetTextureName
Set data into texture name structure
19njSetTextureNum
Sets a texture number as the current texture.
20njSetTextureNumG
Sets the current texture to a global index number.
21njReLoadTextureNum
Reloads Textures
22njReLoadTextureNumG
Reloads Texutres
23njRenderTextureNum
Renders Texture Area
24njRenderTextureNumG
Renders at the Texture Area
25njSetRenderWidth
Sets Stride Value 
26njInitCahceTextureBuffer
Sets a cache texture buffer. 
27njInitTextureBuffer
Sets necessary memory for work area of a texture. 

12.Sprite Functionsindex
01njDrawSprite2D
Draws 2D sprite
02njDrawSprite3D
Draws 3D sprite

13.Debugging Functionsindex
01njPrintB
Displays a value in binary notation.
02njPrintC
Displays a character string.
03njPrintColor
Specifies the character color.
04njPrintD
Displays a value in decimal notation.
05njPrintF
Displays a floating point decimal value.
06njPrintH
Displays a value in decimal notation.
07njFrameBufferBmp
Converts Frame Buffer To Bit Map Image 
08njPrintSize
Specifies Character Size 

14.Special Effects Functionsindex
01njExcuteFade
Excutes the fade effect.
02njFadeDisable
Disables the fade effect.
03njFadeEnable
Enables the fade effect.
04njFogDisable
Disables the fog effect.
05njFogEnable
Enables the fog effect.
06njGenerateFogTable
Creates Fog Table.
07njGenerateFogTable2
Creates Fog Table and Sets Density.
08njGenerateFogTable3
Creates Fog Table and Sets Density.
09njSetFadeColor
Specifies the fade color.
10njSetFogColor
Specifies the fog color.
11njSetFogDensity
Specifies the fog density.
12njSetFogTable
Sets a user-defined fog table.

15.Motion Functionsindex
01njAction
Drawing motion
02njDrawMotion
Drawing Motion
03njFastAction
Draws Motion
04njFastDrawMotion
Draws Motion
05njSetMotionCallback
Registering motion callback routine
06njActionLink
Links motions.
07njDrawMotionLink
Links motions.
08njDrawShapeMotionLink
Links motions that include shapes.
09njDrawShapeMotionLink
Registering motion callback routine
10njFastAction
Registering motion callback routine 
11njFastActionLink
Links motions.
12njFastDrawMotion
Executes motion. 
13njFastDrawMotionLink
Links motions.
14njFastDrawShapeMotion
Executes motion that includes shapes.
15njFastDrawShapeMotionLink
Links motions that include shapes.
16njDrawShapeMotion
Executes motion that includes shapes.
17njSetNextMotionNode
Update node of node motion function.
18njSetCurrentMotion
Set parameters of the node motion function.
19njMotionTranslate
This is a node motion function (move).
20njMotionTransformZXY
This is a node motion function (ZXY rotate).
21njMotionTransform
This is a node motion function
22njMotionScale
This is a node motion function (scale).
23njMotionRotateZXY
This is a node motion function (ZXY rotate).
24njMotionRotateXYZ
This is a node motion function (rotate).
25njGetMotionTranslate
This is a node motion information function (move).
26njGetMotionScale
This is a node motion information function (scale).
27njGetMotionRotate
This is a node motion information function (rotate).

16.Memory Functionsindex
01njMemCopy
Memory Copy
02njMemCopy2
Memory Copy (Word)
03njMemCopy4
Memory Copy (Long)

17.Drawing Functionsindex
01njDrawPolygon
Draws polygons without textures
02njDrawTexture
Draw texture polygons

18.Input Functionsindex
01njGetPeripheral
Gets information of input device(peripheral).
02njPrintPeripheralInfo
Displays peripheral condition.

to home
to home

Copyright SEGA ENTERPRISES, LTD., 1997