Add(MainForm,15261923,35,70) { Left=20 Top=105 Width=581 Height=580 Point(MouseX) Point(MouseY) Point(onResize) Point(Handle) link(onCreate,16299401:doEvent1,[(86,90)(86,174)]) link(onResize,547163:doWork1,[(186,97)]) } Add(GL_Main,12986311,210,168) { Color=0 link(onInit,14782293:doEnabled,[]) link(onViewPort,3410847:doPerspective,[(251,181)(251,223)]) link(Handle,15261923:Handle,[(216,135)(55,135)]) } Add(Timer,9506849,63,266) { Interval=33 Enable=1 link(onTimer,1049454:doEvent1,[]) } Add(GL_GTools,771925,175,266) { Point(doClear) Point(doPushMatrix) Point(doPopMatrix) } Add(GL_Light,6505538,434,168) { link(onEnabled,6505538:doMove,[(476,174)(476,158)(424,158)(424,181)]) link(Point,7772462:Point3D,[]) } Add(Hub,1049454,112,266) { OutCount=5 link(onEvent1,771925:doClear,[]) link(onEvent2,771925:doPushMatrix,[]) link(onEvent3,15121451:doDraw,[(144,286)(144,328)]) link(onEvent4,771925:doPopMatrix,[(167,293)(167,286)]) link(onEvent5,12986311:doFlip,[(161,300)(161,188)]) } Add(Hub,16299401,105,168) { OutCount=3 link(onEvent1,12986311:doInit,[]) link(onEvent2,547163:doWork2,[]) link(onEvent3,9506849:doTimer,[(147,188)(147,233)(53,233)(53,272)]) } Add(GL_Point3D,7772462,434,112) { Y=10 Z=20 } Add(GL_Perspective,3410847,260,217) { Fovy=40 } Add(GL_Sphere,8507053,483,322) { Radius=0.4 Slices=30 link(onDraw,14207815:doDraw,[]) } Add(GL_GluTools,4593655,364,168) { link(onInit,6505538:doEnabled,[]) } Add(HubEx,547163,182,175) { link(onEvent,12986311:doViewPort,[]) } Add(Gl_Translate,16629135,385,322) { link(onTranslate,12007207:doSet,[]) link(X,5221167:Var2,[]) } Add(Gl_Translate,16152719,574,322) { link(onTranslate,1861728:doRotate,[]) link(X,110665:Var3,[(580,303)(356,303)]) } Add(GL_Material,12007207,434,322) { Diffuse=8388608 link(onSet,8507053:doDraw,[]) } Add(GL_Options,14782293,259,168) { link(onEvent,5301287:doEnabled,[]) } Add(GL_Options,5301287,315,168) { Flag=2 link(onEvent,4593655:doInit,[]) } Add(Gl_Axis,15121451,287,322) { link(onDraw,9074120:doRotate,[]) } Add(Gl_Axis,14207815,525,322) { link(onDraw,16152719:doTranslate,[]) } Add(GL_Rotate,9074120,336,322) { Z=1 link(onRotate,16629135:doTranslate,[]) link(Angle,4608051:Var2,[]) } Add(GL_Rotate,1861728,623,322) { Z=-1 link(onRotate,10137869:doDraw,[]) link(Angle,1639956:Var2,[]) } Add(ChildPanel,110665,336,252) { } BEGIN_SDK Add(EditMulti,9997246,21,21) { VarCount=3 link(Var1,8999385:Position,[(27,105)(90,105)]) link(Var2,11667765:Result,[(34,108)(188,108)]) link(Var3,543840:Result,[(41,112)(230,112)]) } Add(Panel,1887370,35,56) { Width=443 Align=2 } Add(TrackBar,8999385,84,56) { Left=70 Top=10 Max=360 TickCount=36 } Add(TrackBar,4240330,133,56) { Left=230 Top=10 Max=100 TickCount=10 link(onPosition,11667765:doOperation,[]) } Add(Math,11667765,182,56) { OpType=3 Op2=50 link(onResult,543840:doOperation,[]) } Add(Math,543840,224,56) { OpType=2 Op2=-1 } END_SDK Add(GetDataEx,4608051,336,294) { link(Data,110665:Var1,[]) } Add(Gl_Axis,10137869,672,322) { TitleScale=2 TitleSpace=0.3 link(onDraw,11164989:doRotate,[]) } Add(GL_Sphere,14811341,868,322) { Radius=0.4 Slices=30 link(onDraw,7899270:doDraw,[]) } Add(Gl_Translate,16669476,770,322) { link(onTranslate,14816220:doSet,[]) link(Y,5221167:Var3,[(783,307)]) } Add(GL_Material,14816220,819,322) { Diffuse=32768 link(onSet,14811341:doDraw,[]) } Add(Gl_Axis,7899270,910,322) { link(onDraw,15914949:doPopMatrix,[]) } Add(GL_Rotate,11164989,721,322) { X=1 link(onRotate,16669476:doTranslate,[]) link(Angle,1639956:Var3,[(727,299)]) } Add(GL_GTools,15914949,952,322) { Point(doPopMatrix) } Add(GetDataEx,5221167,385,302) { Angle=3 link(Data,110665:Var2,[(349,307)]) } Add(GetDataEx,1639956,623,294) { Angle=3 link(Data,4608051:Var3,[]) }