Draw operation dependencies
Figure 227 shows the classes that know each other during both of the drawing operations described above. The MDrawable derived classes and TGrafPort derived classes know nothing about rendering. The TGrafDevice derived classes perform the rendering. This architecture makes it easy to add your own graphics classes. You just add a new class by deriving from MGraphic or MGraphic3D and implement the MDrawable::Draw function. You do not have to change any of the rendering code.
[Contents]
[Previous]
[Next]
Click the icon to mail questions or corrections about this material to Taligent personnel.
Copyright©1995 Taligent,Inc. All rights reserved.
Generated with WebMaker