source: trunk/doc/src/examples/activeqt/opengl-demo.qdocinc@ 561

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
Line 
1\raw HTML
2//! [0]
3<SCRIPT LANGUAGE="JavaScript">
4function 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 />
13An OpenGL scene:<br />
14<object ID="GLBox" CLASSID="CLSID:5fd9c22e-ed45-43fa-ba13-1530bb6b03e0"
15CODEBASE="http://qt.nokia.com/demos/openglax.cab">
16[Object not available! Did you forget to build and register the server?]
17</object><br />
18
19<form>
20Rotate the scene:<br />
21X:<input type="edit" ID="XEdit" value="0" /><br />
22Y:<input type="edit" name="YEdit" value="0" /><br />
23Z:<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.