|
Last change
on this file was 2, checked in by Dmitry A. Kuminov, 16 years ago |
|
Initially imported qt-all-opensource-src-4.5.1 from Trolltech.
|
|
File size:
740 bytes
|
| Line | |
|---|
| 1 | \raw HTML
|
|---|
| 2 | //! [0]
|
|---|
| 3 | <SCRIPT LANGUAGE="JavaScript">
|
|---|
| 4 | function setRot( form )
|
|---|
| 5 | {
|
|---|
| 6 | GLBox.setXRotation( form.XEdit.value );
|
|---|
| 7 | GLBox.setYRotation( form.YEdit.value );
|
|---|
| 8 | GLBox.setZRotation( form.ZEdit.value );
|
|---|
| 9 | }
|
|---|
| 10 | </SCRIPT>
|
|---|
| 11 |
|
|---|
| 12 | <p />
|
|---|
| 13 | An OpenGL scene:<br />
|
|---|
| 14 | <object ID="GLBox" CLASSID="CLSID:5fd9c22e-ed45-43fa-ba13-1530bb6b03e0"
|
|---|
| 15 | CODEBASE="http://qtsoftware.com/demos/openglax.cab">
|
|---|
| 16 | [Object not available! Did you forget to build and register the server?]
|
|---|
| 17 | </object><br />
|
|---|
| 18 |
|
|---|
| 19 | <form>
|
|---|
| 20 | Rotate the scene:<br />
|
|---|
| 21 | X:<input type="edit" ID="XEdit" value="0" /><br />
|
|---|
| 22 | Y:<input type="edit" name="YEdit" value="0" /><br />
|
|---|
| 23 | Z:<input type="edit" name="ZEdit" value="0" /><br />
|
|---|
| 24 | <input type="button" value="Set" onClick="setRot(this.form)" />
|
|---|
| 25 | </form>
|
|---|
| 26 | //! [0]
|
|---|
| 27 | \endraw
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.