您好,欢迎访问三七文档
当前位置:首页 > 商业/管理/HR > 项目/工程管理 > GL-Studio-方法
GLStudioObjectPropertiesObjectCodeEvent:Knobpositionchanged旋钮的位置变化Knobdetentchanged旋钮的擎子变化PushButtonpositionchanged按钮的位置变化Switchpositionchanged开关位置变化LeftMouseDown鼠标左键按下LeftMouseUp鼠标左键弹起MouseDrag鼠标拖拽MouseEnter鼠标进入MouseLevea鼠标离开MouseMove鼠标移动RightMouseDown鼠标右键按下RightMouseUp鼠标右键弹起ObjectEventIs触发的目标事件ObjectEventandData触发目标事件的数据EmitEvent:EmitObjectEvent发送目标事件EmitObjectEventwithData发送目标事件的数据PlaySound播放声音DisplayObject:voidAlphaMode(intmode)//Setsthealphamode(AlphaMode_e)设置透明度intAlphaMode(void)//Getsthealphamode(AlphaMode_e)获取透明度intAntiAlias(boolmode)//Settheantialiasingstate设置相反的混淆状态intAntiAlias(void)//Gettheantialiasingstate获取相反的混淆状态DistiAttribDict&Attributes()//Returnstheobjectattributelist返回目标对象的属性列表voidBlinking(boolblink)//blinkingstate瞬间状态intBlinking()//Returnsblinkingstate(blinking闪光的,一眨眼的)返回瞬间状态voidBlinkRate(floatrate)//SetsfloatBlinkRate()//ReturnsblinkrateCallbackMethodCallerBase*CallbackCaller()//ReturnscurrentcallbackfunctionvoidCallbackCaller(CallbackMethodCallerBase*cb)//SetscurrentcallbackfunctionDisplayObject*CloneObject(boolgenerateNames=false)//Duplicatesthisobject,itdoesnotaddittothehierarchyvoidCullBackFace(intmode)//SetsthebackfacecullingmodeintCullBackFace(void)//Getsthebackfacecullingmodeboolculled(void)//GetwhetherornotthisobjectwasculledvoidDepthTest(intmode)//SetthezbufferingstateintDepthTest(void)//GetsthezbufferingstatevoidDistroy(void)//CallthistosafelydeleteaninstanceofthisobjectvoidDynamicRotate(floatangle,intaxis)//SetsrotatationaroundX_AXIS,Y_AXISorZ_AXISbyanglevoidDynamicRotateRelative(floatangle,intaxis)//AddstootatationaroundX_AXIS,Y_AXISorZ_AXISbyanglevectorDynamicRotation()//ReturnsthecurrentdynamicrotationvoidDynamicScale(constVector&scale)//SetsdynamicscalevectorDynamicScale()//ReturnsthecurrentdynamicscalevoidDynamicTranslate(floatx,floaty,floatz,boolrelative=false)//Setstranslationofobjectbyx,y,z,optionallyaddingtopreviousdynamictranslatevectorDynamicTranslation()//ReturnsthecurrentdynamictranslationglsColorGetBlendColor()//ReturnsthecurrenttextureblendcolorvoidGetCenter(vector¢er)//GetstheobjectscenterbasedonGetExtents()glsColorGetColor()//ReturnsthelinecolorglsColorGetFillColor()//ReturnsthefillcolorvoidGetRotationPoint(vector&)//Getstherotationpointvector*GetTexturePoints()//Returnstexturepointsarray.Thetexturepointareusedtocalculatetexturecoordinatesconstchar*InstanceName()//ReturnstheinstancenamevoidInstanceName(char*name)//Setstheobject'sinstancenamevoidLightingEnabled(boolmode)//SetsthelightingstateintLightingEnabled()//GetthelightingsatevoidLineStippleMultiplier(intmult)//SetsthelinestipplemultiplierintLineStippleMultiplier()//GetsthelinestipplemultipliervoidLineStipplePattern(intpattern)//SetsthelinestipplepatternintLineStipplePattern()//GetsthelinestipplepatternvoidLineWidth(floatwidth)//SetsthewidthoflinesintheobjectfloatLineWidth()//GetsthewidthoflinesintheobjectvoidLocation(constvertex&)//SetsthelocationvertexLocation()//ReturnsthelocationvoidMaterialIndex(int)//SetsthematerialindexintMaterialIndex()//ReturnsthematerialindexintNumberOfVertices()//Returnsthenamberofverticesvector*Normals()//ReturnsthevertexnormalsarrayfloatObjectDepth()//ReturnstheobjectdepthfromGetExtents()floatObjectHeight()//ReturnstheobjectheightfromGetExtents()floatObjectWidth()//ReturnstheobjectwidthfromGetExtents()DisplayFrame*Parent()//Returnsthisobject'sparentDisplayFramevoidParent(DisplayFrame*parent)//Setsthisobject'sparentDisplayFrameGroup*ParentGroup()//Returnthisobject'shierarchyparentvoidParentGroup(Group*group)//Setsthisobject'shierarchyparentvoidPickable(unsignedchar)//Setspickability(PickableType_e)unsignedcharPickable(void)//Returnspickability(PickableType_e)voidReallocateVertices(unsignedintnumVertices,boolinitializeNew,boolcopyOld)//Reallocatesthevertexandtexturecoordinateandnormalarrays.ExistingverticesarecopiedDistiAttrbuteBase&Resource(constchar*name)//Returnsareferencetothespecifiedresource.ValuescanbestreamedinandoutofthisreferencevoidRotate(floatangle,intaxis=Z_AXIS)//Rotatestheobject(aroundthespecifiedaxis)bytheangleindicated,attheobject'sratationpoint.RecalculatesthevertexdatavoidRotate(constvector&origin,floatangle,intaxis=Z_AXIS)//Rotatestheobject(aroundthespecifiedaxis)bytheangleindicated,ataspecifiedpoint.RecalculatesthevertexdatavoidRotate(constvector&origin,floatangle,constVector&axis)//Rotatestheobject(aroundanarbitraryaxis)bytheangleindicated,ataspecifiedpoint.RecalculatesthevertexdatavoidRotationPiont(constVertex&)//Setstherotationpoint.SpecifiedrelativetolocationvoidSetBlendColor(constglsColor&color)//SetsthetextureblendcolorvoidSetColor(constglsColor&color)//SetstheoutlinecolorvoidSetFillColor(constglsColor&color)//SetsthefillcolorvoidSetNormals(unsignedintnPoints,Vector*vertices)//SetthevertexnormalsforthisobjectvoidSetOrigin(constVector&newOrigin)//SetsaneworiginvoidSetTexCoords(unsignedintnPoints,Vector*newtexcoord,boolisVectorArray=true)//Setsthetexturecoordinatesforthisobject'sverticesvoidSetVertexColor(unsignedintvertex,unsignedcharCurrentFillColo
本文标题:GL-Studio-方法
链接地址:https://www.777doc.com/doc-5048958 .html