Index of OpenRM - RM Library


 void rmInit (void)
 No arguments.

An initialization routine, rmInit() will perform 4 steps:

1) initialize the internal scene graph datastructure 2) precompute trigonometric values used for primitive tessellation 3) initialize the internal font registry datastructure 4) output the OpenRM copyright notice

After these steps are performed, RM is not yet fully functional, since a rendering context must be created, bound to an RMpipe, and that context made current in order for rendering to proceed.

See rmauxCreateXWindow, rmauxCreateW32Window, rmPipeSetWindow, rmPipeMakeCurrent.

librm library source file: rminit.c

 void rmFinish (RMpipe *toDelete)
 RMpipe *toDelete - a handle to an RMpipe to delete (optional). This
    parameter is optional.

An epilogue routine, rmFinish() will delete all scene graph nodes that are descendents of the rmRootNode(), as well as rmRootNode(). If the RMpipe input parameter "toDelete" is not NULL, the RMpipe will be closed (rmPipeClose) then deleted (rmPipeDelete).

Feb 2000 - an seg fault error will occur if rmPipeClose is called prior to rmFinish; this will be remedied in a future release.

librm library source file: rminit.c