The code below shows the overloaded TGrafPort::Draw function declaration and calls for a TGLine.
Geometry with attribute bundle and matrix
This Draw function takes a geometry, an attribute bundle, and a matrix. This parameter list tells the drawing port to concatenate the supplied bundle and model matrix to the graphic state; draw the geometry; and use the scene attributes, clip area, and view matrix of the graphic state. TGrafPort::Draw( const TGLine& line,
const TGrafBundle& bundle,
const TGrafMatrix& modelMatrix = TGrafMatrix::GetIdentity() );
myPort.Draw( myLine, itsBundle, aMatrix );
Geometry only
This Draw function takes a single geometry without an attribute bundle or matrix. This parameter list tells the drawing port to draw the geometry sent to it and to use the graphic state of the drawing port.
[Contents]
[Previous]
[Next]
Click the icon to mail questions or corrections about this material to Taligent personnel.
Generated with WebMaker