RenderWithImager.mesa
Last Edited by: Crow, August 17, 1987 1:00:05 pm PDT
DIRECTORY
Rope USING [ ROPE ],
ThreeDBasics USING [ Context, ContextProc, ImagerProc, Pair, PairSequence, Pixel, RGB, Triple,
Patch, PatchProc ];
Types
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;
Low-level drawing
Imager2DLine:
PROC[ context:
REF Context, p1, p2: Pair, color: Pixel];
Draw a line using the imager
Imager2DPoly:
PROC[ context:
REF Context, poly:
REF PairSequence, color: Pixel];
Draw a constant shade polygon using the imager
ImagerPolygon: PatchProc;
Draw a constant shade polygon using the imager
Draw2DRope:
PROC[context:
REF Context, rope: Rope.
ROPE, position: Pair,
color: Pixel ← [255,255,128,0,0], size:
REAL ← 20, font: Rope.
ROPE ←
NIL];
Put a string of characters on the screen
DrawThroughViewer:
PROC[ context:
REF Context, drawProc: ThreeDBasics.ImagerProc ];
Draws into imager context through viewers