DIRECTORY Rope USING [ ROPE ], ThreeDBasics USING [ Context, ContextProc, ImagerProc, Pair, PairSequence, Pixel, RGB, Triple, Patch, PatchProc ]; RenderWithImager: CEDAR DEFINITIONS ~ BEGIN Context: TYPE ~ ThreeDBasics.Context; ContextProc: TYPE ~ ThreeDBasics.ContextProc; Pair: TYPE ~ ThreeDBasics.Pair; PairSequence: TYPE ~ ThreeDBasics.PairSequence; Triple: TYPE ~ ThreeDBasics.Triple; RGB: TYPE ~ ThreeDBasics.RGB; Pixel: TYPE ~ ThreeDBasics.Pixel; Patch: TYPE ~ ThreeDBasics.Patch; PatchProc: TYPE ~ ThreeDBasics.PatchProc; ClearViewPort: ContextProc; Imager2DLine: PROC[ context: REF Context, p1, p2: Pair, color: Pixel]; Imager2DPoly: PROC[ context: REF Context, poly: REF PairSequence, color: Pixel]; ImagerPolygon: PatchProc; Draw2DRope: PROC[context: REF Context, rope: Rope.ROPE, position: Pair, color: Pixel _ [255,255,128,0,0], size: REAL _ 20, font: Rope.ROPE _ NIL]; DrawThroughViewer: PROC[ context: REF Context, drawProc: ThreeDBasics.ImagerProc ]; MakeInterpressPage: PROC[ context: REF Context, fileName: Rope.ROPE ]; END. ’RenderWithImager.mesa Last Edited by: Crow, August 17, 1987 1:00:05 pm PDT Types Procedures for updating viewers Fills viewport with background color Low-level drawing Draw a line using the imager Draw a constant shade polygon using the imager Draw a constant shade polygon using the imager Put a string of characters on the screen Draws into imager context through viewers Frame Generation and Animation Κ΅˜headšœ™Jšœ4™4defaultšΟk ˜ Jšœ œœ˜Jšœœ>œ&˜|——head2šœœ ˜#Jšœ˜—head3šΠbi™Iunitšœ œ˜%Lšœ œ˜-Lšœœ˜Lšœœ˜/Lšœœ˜#Jšœœœ˜Lšœœ˜!Jšœœ˜!Jšœ œ˜)J˜—šΟb ™ šΟn œ˜J™$——šŸ™š  œœ œ&˜FJ™—š  œœ œœ˜PJ™/—š  œ ˜J™/—š  œœ œœBœœœ˜šJ™(—š œœ œ.˜SJ™*——šŸ™Jš œœ œœ˜G—Jšœ˜—…—,ƒ