![]() | ![]() | ![]() |
| |||||||||||||||
|
NAMEscene - Create and manipulate 3D scenes widgets SYNOPSISscene pathName ?options? STANDARD OPTIONS-background WIDGET-SPECIFIC OPTIONS-width -height -ident -double -rgba -depth -orthographic -accum -alpha -stencil -stencilsize -depthsize -redsize -greensize -bluesize -alphasize -accumredsize -accumgreensize -accumbluesize -accumalphasize Command-Line Name: -ident Command-Line Name: -double INTRODUCTIONThe scene command creates a new window (given by the pathName argument) and makes it
into a 3D scene renderer widget. Additional options, described above, may be specified on
the command line or in the option database to configure aspects of the scene such as its
colors and 3-D relief. The scene command returns its pathName argument. At the time this
command is invoked, there must not exist a window named pathName, but pathName's parent
must exist. WIDGET COMMANDThe scene command creates a new Tcl command whose name is pathName. This command may be
used to invoke various operations on the widget. It has the following general form: pathName move x y z
pathName translate dx dy dz
pathName rotate teta ?-axe x y z? pathName reset
BINDINGSIn the current implementation, new scenes are not given any default behavior. You'll have to execute explicit Tcl commands to give the scene its behavior. CREDITSEven if no code comes from it, the developpment of this 3D scene widget has been inspired by the Togl widget from Brian Paul (the author of the so great Mesa library). The Togl widget was however not yet ported to Win32 platform when this project was initiated, whereas it was our first need. Furthermore, the Togl widget requires C programming, whereas we had the need for a pure portable scripting approach. We have the hope that, whereas Togl is particulary suitable in offering to OpenGL developpers an easy way to build a GUI for their application, our scene widget might help the Tcl/Tk communauty in easily providing some 3D functionnalities in their applications. © 2000 Evolane - tous droits réservés. |
© 2001-2002 Evolane - tous droits réservés. Pour toute remarque, envoyez un courrier électronique à webmaster@evolane.com