Посмотрите еще вот так:
#sha
Add(MainForm,15261923,105,168)
{
Left=20
Top=105
Width=440
Height=421
Position=1
Point(MouseX)
Point(MouseY)
Point(onResize)
Point(Handle)
link(onCreate,16299401:doEvent1,[(149,188)(149,216)])
link(onResize,16131419:doWork1,[(221,195)])
}
Add(Timer,9506849,133,294)
{
Interval=33
Enable=1
link(onTimer,1049454:doEvent1,[])
}
Add(Hub,1049454,182,294)
{
OutCount=5
link(onEvent1,9972959:doClear,[(230,300)(230,258)])
link(onEvent3,9451607:doColor,[(226,314)(226,405)(170,405)(170,496)])
link(onEvent5,12986311:doFlip,[(229,328)(229,230)])
}
Add(Hub,16299401,161,210)
{
OutCount=3
link(onEvent1,12986311:doInit,[])
link(onEvent2,16131419:doWork2,[])
link(onEvent3,9506849:doTimer,[(203,230)(203,268)(123,268)(123,300)])
}
Add(GL_GluTools,12198675,308,210)
{
DrawStyle=3
link(onInit,1101264:doEnabled,[])
}
Add(GL_Light,14989894,504,210)
{
Specular=0
link(onEnabled,15567448:doEnabled,[])
}
Add(GL_Options,1101264,357,210)
{
link(onEvent,5851269:doEnabled,[])
}
Add(GL_Options,5851269,406,210)
{
Flag=1
link(onEvent,5809249:doEnabled,[])
}
Add(GL_Options,5809249,455,210)
{
Flag=2
link(onEvent,14989894:doEnabled,[])
}
Add(GL_Perspective,3410847,308,259)
{
Fovy=20
}
Add(HubEx,16131419,217,210)
{
link(onEvent,12986311:doViewPort,[])
}
Add(GL_Options,15567448,553,210)
{
Flag=11
link(onEvent,16692775:doEnabled,[])
}
Add(GL_Color,13761942,672,308)
{
Color=128
Alpha=0.5
link(onColor,2427121:doDraw,[])
}
Add(GL_StencilOp,16292230,476,308)
{
Fail=2
link(onStencilOp,10452459:doDraw,[])
}
Add(GL_StencilFunc,4447848,427,308)
{
Ref=1
link(onStencilFunc,16292230:doStencilOp,[])
}
Add(GL_GTools,9972959,245,252)
{
Point(doClear)
Point(doPushMatrix)
Point(doPopMatrix)
}
Add(GL_Cube,2427121,728,308)
{
}
Add(GL_StencilFunc,11672428,574,308)
{
Func=4
Ref=2
link(onStencilFunc,12156203:doStencilOp,[])
}
Add(GL_Main,12986311,245,210)
{
Color=12632256
StencilBits=8
link(onInit,12198675:doInit,[])
link(onViewPort,3410847:doPerspective,[(300,223)(300,265)])
link(Handle,15261923:Handle,[(251,205)(125,205)])
}
Add(GL_StencilOp,12156203,623,308)
{
Fail=1
zFail=1
zPass=1
link(onStencilOp,13761942:doColor,[])
}
Add(GL_Options,16692775,609,210)
{
Flag=8
}
Add(GL_Rotate,1244490,364,308)
{
Angle=5
X=1.1
Y=1.2
Z=2
link(onRotate,4447848:doStencilFunc,[])
}
Add(GL_Sphere,10452459,525,308)
{
Radius=0.7
Slices=60
Stacks=60
link(onDraw,11672428:doStencilFunc,[])
}
Add(GL_Plane,8488546,245,490)
{
link(onDraw,1244490:doRotate,[(324,496)(324,314)])
link(Point1,13013662:Point3D,[])
link(Point2,16286495:Point3D,[])
link(Point3,4523592:Point3D,[])
link(Point4,1456458:Point3D,[])
}
Add(GL_Point3D,13013662,245,294)
{
X=-2
Y=2
Z=-1
}
Add(GL_Point3D,16286495,252,336)
{
Y=2
Z=-1
}
Add(GL_Point3D,4523592,259,378)
{
Y=-2
Z=-1
}
Add(GL_Point3D,1456458,266,434)
{
X=-2
Y=-2
Z=-1
}
Add(GL_Color,9451607,182,490)
{
Color=8421376
link(onColor,8488546:doDraw,[])
}