Вверх ↑
Ответов: 1304
Рейтинг: 405
#1: 2010-10-28 22:56:26 ЛС | профиль | цитата
Workru24, для тестов с использованием OpenGL и применением визуальных элементов используй для отрисовки ChildPanel


Add(Timer,9506849,-199,162)
{
Interval=10
Enable=1
link(onTimer,1049454:doEvent1,[])
}
Add(Hub,1049454,-143,162)
{
OutCount=5
link(onEvent1,37171:doClear,[(-111,168)(-111,161)])
link(onEvent2,37171:doPushMatrix,[(-111,175)(-111,168)])
link(onEvent3,950010:doRotate,[])
link(onEvent4,37171:doPopMatrix,[(-111,189)(-111,175)])
link(onEvent5,8763207:doFlip,[(-111,196)(-111,84)])
}
Add(Hub,16299401,-143,-6)
{
OutCount=3
link(onEvent1,8763207:doInit,[(-111,0)(-111,70)])
link(onEvent2,7157373:doWork3,[(-117,7)(-117,35)])
link(onEvent3,9506849:doTimer,[(-117,14)(-117,102)(-211,102)(-211,168)])
}
Add(GL_GluTools,12198675,-45,64)
{
Texture=0
}
Add(GL_Perspective,3410847,-45,106)
{
Fovy=40
zFar=400
}
Add(GL_Color,10171415,144,176)
{
Color=0
Alpha=0.3
link(onColor,13951569:doDraw,[])
link(Alpha,15289144:Value,[])
}
Add(GL_Cube,13951569,186,176)
{
link(onDraw,14871429:doDisabled,[(223,182)(223,189)])
}
Add(GL_GTools,37171,-94,155)
{
Point(doClear)
Point(doPushMatrix)
Point(doPopMatrix)
}
Add(GL_Main,8763207,-94,64)
{
Color=12632256
TwoSide=0
link(onInit,12198675:doInit,[])
link(onViewPort,3410847:doPerspective,[(-54,77)(-54,112)])
link(Handle,12925018:Var1,[])
}
Add(MainForm,3439271,-206,-20)
{
Width=316
Height=388
Name="555"
Point(MouseX)
Point(MouseY)
Point(onResize)
Point(Handle)
Point(onKeyDown)
Point(doWidth)
Point(doHeight)
link(onCreate,16299401:doEvent1,[])
link(onResize,7157373:doWork1,[(-160,7)])
}
Add(HubEx,7157373,-164,22)
{
Angle=1
link(onEvent,8763207:doViewPort,[(-160,77)])
}
Add(GL_Rotate,5296854,46,176)
{
Y=1
link(onRotate,14457750:doEnabled,[])
link(Angle,12925018:Var2,[(52,38)(-81,38)])
}
Add(GL_Rotate,950010,4,176)
{
X=1
link(onRotate,5296854:doRotate,[])
link(Angle,12925018:Var3,[(10,44)(-74,44)])
}
Add(Memory,15289144,151,29)
{
Default=Real(0.05)
link(onData,10607411:doText,[])
}
Add(Edit,10607411,193,29)
{
Left=120
Top=35
Width=75
Text=""
}
Add(Label,7188094,235,29)
{
Left=120
Top=5
Width=85
Caption="Прозрачность"
}
Add(TrackBar,10106937,67,29)
{
Left=10
Top=30
Max=200
Position=10
link(onPosition,14382441:doOperation,[])
}
Add(Math,14382441,109,29)
{
OpType=3
Op2=200
link(onResult,15289144:doValue,[])
}
Add(ChildPanel,12925018,-94,-20)
{
}
BEGIN_SDK
Add(EditMulti,10734276,21,21)
{
VarCount=3
link(Var1,5046604:Handle,[(27,179)(41,179)])
link(Var2,5046604:MouseX,[(34,179)(48,179)])
link(Var3,5046604:MouseY,[(41,179)(55,179)])
}
Add(Panel,5046604,35,105)
{
Left=5
Top=65
Width=297
Height=291
Point(Handle)
Point(MouseX)
Point(MouseY)
}
END_SDK
Add(GL_Options,14457750,95,176)
{
Flag=8
link(onEvent,10171415:doColor,[])
}
Add(GL_Options,14871429,235,176)
{
Flag=8
link(onEvent,2940070:doColor,[])
}
Add(GL_Cube,5925381,333,176)
{
Size=0.7
}
Add(GL_Color,2940070,291,176)
{
Color=16711680
link(onColor,5925381:doDraw,[])
}
Add(InfoTip,2467481,81,162)
{
Info=#8:Включить|
Width=57
Height=53
}
Add(InfoTip,15161195,228,162)
{
Info=#8:Оключить|
Width=57
Height=53
}

ps:Workru24, clBlack в GL_Color так задумано или на шару.



карма: 3

0
файлы: 1code_21293.txt [3.1KB] [139]