Next: Method of use
Up: DispCmd
Previous: Internal data structures
- void put(Displayable *dobj) - This is the main function in each DispCmd object. It copies the values stored in Data to the end of the specified Displayable object's display list. As well, the integer code indicating which primitive this is is copied into the list, and also the size of the data (in bytes). The order of copying data is as follows:
- cmdCode (one integer)
- cmdSize (one integer)
- Data (cmdSize bytes)
- reput(Displayable *dobj) - Same as put, except that if the same DispCmd has had the put routine called, this command will copy the data into the same location as was used previously. This can be used to copy data over previously-copied data. A particular example is in Displayable, which uses reput to replace the matrix data in the multiply-transformation-matrix command used at the beginning of each Displayable's display list. If put has NOT been called prior to calling reput, then reput does exactly the same thing as put.
Justin Gullingsrud
Tue Apr 6 09:26:48 CDT 1999