Last change
on this file since 561 was 561, checked in by Dmitry A. Kuminov, 15 years ago |
trunk: Merged in qt 4.6.1 sources.
|
File size:
738 bytes
|
Rev | Line | |
---|
[2] | 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"
|
---|
[561] | 15 | CODEBASE="http://qt.nokia.com/demos/openglax.cab">
|
---|
[2] | 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.