Add(MainForm,6112295,40,84) { Left=20 Top=105 Width=440 Height=421 Position=1 Point(MouseX) Point(MouseY) Point(onResize) Point(Handle) link(onCreate,16299401:doEvent1,[(99,104)(99,209)]) link(onResize,14551396:doWork1,[(170,111)]) } Add(GL_Main,12986311,180,203) { Color=0 StencilBits=8 link(onInit,12198675:doInit,[]) link(onViewPort,3410847:doPerspective,[(236,216)(236,258)]) link(Handle,6112295:Handle,[(186,181)(60,181)]) } Add(Timer,9506849,68,287) { Interval=33 Enable=1 link(onTimer,1049454:doEvent1,[]) } Add(GL_GTools,771925,180,287) { Point(doClear) Point(doPushMatrix) Point(doPopMatrix) } Add(Hub,1049454,117,287) { OutCount=5 link(onEvent1,771925:doClear,[]) link(onEvent2,771925:doPushMatrix,[]) link(onEvent3,10714674:doWork1,[(196,307)(196,160)]) link(onEvent4,771925:doPopMatrix,[(169,314)(169,307)]) link(onEvent5,12986311:doFlip,[(165,321)(165,223)]) } Add(Hub,16299401,110,203) { OutCount=3 link(onEvent1,12986311:doInit,[]) link(onEvent2,14551396:doWork2,[]) link(onEvent3,9506849:doTimer,[(153,223)(153,268)(59,268)(59,293)]) } Add(HubEx,14551396,166,210) { link(onEvent,12986311:doViewPort,[]) } Add(MultiElement,10714674,243,154) { link(onEvent1,8918510:doStencilFunc,[]) link(Data1,6112295:MouseX,[(249,146)(46,146)]) link(Data2,6112295:MouseY,[(256,140)(53,140)]) } BEGIN_SDK Add(EditMulti,4359962,3,3) { EventCount=1 WorkCount=1 DataCount=2 Width=223 Height=109 link(doWork1,3276760:doRotate,[(19,9)(19,55)]) } Add(GL_Rotate,3276760,35,49) { Y=1 link(onRotate,8079493:doRotate,[]) link(Angle,4359962:Data1,[(62,15)(9,15)]) } Add(GL_Rotate,8079493,112,49) { X=1 link(onRotate,4359962:onEvent1,[(189,55)(189,9)]) link(Angle,4359962:Data2,[(139,8)(16,8)]) } END_SDK Add(GL_Perspective,3410847,243,252) { Fovy=5 zFar=10 } Add(GL_GluTools,12198675,243,203) { Texture=0 link(onInit,5851269:doEnabled,[]) } Add(GL_Options,5851269,292,203) { Flag=1 link(onEvent,10513853:doEnabled,[]) } Add(GL_Options,10513853,348,203) { Flag=11 link(onEvent,15226729:doEnabled,[]) } Add(GL_Options,15226729,397,203) { Flag=2 } Add(GL_StencilFunc,8918510,287,154) { Func=6 Ref=1 Mask=0 link(onStencilFunc,2142149:doStencilOp,[]) } Add(GL_StencilOp,2142149,329,154) { zPass=2 link(onStencilOp,14231168:doDraw,[]) } Add(GL_Cube,14231168,371,154) { Size=0.25 link(onDraw,2707981:doStencilFunc,[]) } Add(GL_GTools,11643782,539,154) { ClearStencil=1 Point(doClear) link(onEvent,6330616:doDisabled,[]) } Add(GL_Options,6330616,581,147) { Flag=11 link(onEvent,1049369:doColor,[]) } Add(GL_Color,16073936,1043,147) { link(onColor,4646547:doStencilFunc,[]) } Add(GL_StencilFunc,4646547,1085,147) { Func=4 Ref=1 Mask=255 link(onStencilFunc,6513123:doDraw,[]) } Add(GL_Cube,6513123,1127,147) { Size=0.25 } Add(GL_Sphere,9547296,665,147) { Radius=0.05 link(onDraw,4338622:doColor,[]) } Add(GL_Color,1049369,623,147) { Color=255 link(onColor,9547296:doDraw,[]) } Add(GL_Options,15472221,1001,147) { Flag=11 link(onEvent,16073936:doColor,[]) } Add(GL_Torus,2759330,749,147) { inRadius=0.015 outRadius=0.06 link(onDraw,3527710:doPushMatrix,[]) } Add(GL_Color,4338622,707,147) { Color=8388608 link(onColor,2759330:doDraw,[]) } Add(GL_GTools,3527710,791,147) { Point(doPushMatrix) link(onEvent,7968838:doRotate,[]) } Add(GL_GTools,16053284,959,147) { Point(doPopMatrix) link(onEvent,15472221:doEnabled,[]) } Add(GL_Torus,13376246,917,147) { inRadius=0.015 outRadius=0.06 link(onDraw,16053284:doPopMatrix,[]) } Add(GL_Color,10374806,875,147) { Color=32768 link(onColor,13376246:doDraw,[]) } Add(GL_Rotate,7968838,833,147) { Angle=90 X=1 link(onRotate,10374806:doColor,[]) } Add(GL_StencilFunc,2707981,413,154) { Func=6 Ref=2 Mask=0 link(onStencilFunc,15948346:doStencilOp,[]) } Add(GL_StencilOp,15948346,455,154) { zPass=2 link(onStencilOp,5012351:doDraw,[]) } Add(GL_Sphere,5012351,497,154) { Radius=0.15 link(onDraw,11643782:doClear,[]) }