next up previous contents index
Next: Chain Up: Scenes - A Collection Previous: Methods for Scene handling

Suprop

 

The class Suprop stores the information dealing with the rendering style and the surface properties. Its main purpose is to give certain scene nodes surface properties.

   

(SUPROP *)GRAPE(suprop, "read")()
(SUPROP *)GRAPE(Suprop, "read")()
SUPROP *suprop
CLASS *Suprop
The method "read" builds up a new instance containing the information read from the standard text device (if send to the class) or fills an existing one (if send to an instance). It only exists for backward compatibility reasons, use XDR files instead (cf. 5.7).

           

(SUPROP *)GRAPE(suprop, "store")()
(SUPROP *)GRAPE(Suprop, "store")()
GRAPE(suprop, "load")()
GRAPE(scene, "store-suprop")()
SUPROP *suprop
CLASS *Suprop
SCENE *scene

The method "store" stores the current surface properties of the standard graphic device in the instance scene. If "store" is send to the class a new instance of this class is returned containing the appropriate information. The method "load" does it vice versa. The method "store-suprop" stores the current surface properties in the instance variable scene->suprop.



SFB 256 Universität Bonn and IAM Universität Freiburg

Copyright © by the Sonderforschungsbereich 256 at the Institut für Angewandte Mathematik, Universität Bonn.