doc/src/examples/activeqt/opengl-demo.qdocinc
branchRCL_3
changeset 7 3f74d0d4af4c
parent 0 1918ee327afb
equal deleted inserted replaced
6:dee5afe5301f 7:3f74d0d4af4c
       
     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://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>
       
    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