您好,欢迎访问三七文档
当前位置:首页 > IT计算机/网络 > 数据库 > GL-studio函数
——DisplayObject——VoidAlphaMode(intmode)//Setsthealphamode(AlphaMode_e)设置透明模式IntAlphaMode(void)//Getsthealphamode(AlphaMode_e)获取透明模式VoidAntiAlias(boolMOde)//Settheantialiasingstate设置抗锯齿模式DisTiAttribDict&Attributes()//Returnstheobjectsattributelist返回对象的属性列表VoidBlinking(boolblink)//Setsblinkingstate设置闪烁(刷新)状态IntBlinking()//Returnsblinkingrate返回闪烁(刷新)频率VoidBlinkRate(floatrate)//Setsblinkingrate设置闪烁(刷新)频率FloatBlinkRate()//Returnsblinkingrate返回闪烁(刷新)频率CallbackMethodCallerBase*CallbaceCaller()//Returnscurrentcallbackfunction返回当前回调函数VoidCallbackCaller(callbackMethodCallerBase*cb)//Setscurrentcallbackfunction设置当前回调函数DisplayObject*CloneObjet(boolgenerateNames=false)//duplicatesthisobjectisdosenotaddittothehierarchy复制对象不加到图层上VoidCullBackFace(intmode)//Setsthebackfacecullingmode设置背景选择模式IntCullBackFace(void)//Getsthebackfacecullingmode获取背景选择模式BollCulled(void)//Getwhetherornotthisobjectwasculled获取一个对象无论是否为精选VoidDepthTest(intmode)//Setsthezbufferingstate设置缓冲状态IntDepthTest(void)//Getsthezbufferingstate获取缓冲状态VoidDestroy(void)//Callthistosafelydeleteaninstanceofthisobject.使用这个函数安全的删除一个对象的实例VoidDynamicRotate(floatangle,intaxis)//SetsrotatationaroundX_AXIS,Y_AXIS,orZ_AXISbyangle设置角度围绕坐标轴旋转VoidDynamicRotateRelative(floatangle,intaxis)//AddstorotatationaroundX_AxIS,Y_AXIS,orZ_AXISbyangle添加旋转围绕坐标轴VectorDynamicRotation()//Returnsthecurrentdynamicrotation返回当前的动力旋转VoidDynamicScale(constVector&scale)//Setsthedynamicscale设置动力比例VectorDynamicscale()//Returnsthecurrentdynamicscale返回当前的动力比例VoidDynamicTranslate(floatx,floaty,floatz,boolrelative=false)//Setstranslationofobjectbyx,y,z,optionallyaddingtopreviousdynamictranslate.VectorDynamicTranslation()//Returnsthecurrentdynamictranslation返回当前的动力平移glsColorGetBlendColor()//Returnsthecurrenttextureblendcolor返回当前纹理的混合颜色voidGetCenter(Vector¢er)//GetstheobjectscenterbasedonGetExtents()获取对象的中心基于GetExtents()glsColorGetColor()//Returnsthelinecolor返回线的颜色glsColorGetFillColor()//Returnsthefillcolor返回填充颜色voidGetRotationPoint(Vertex&)//Getstherotationpoint获取旋转点Vector*GetTexturePoints()//Returnstexturepointsarray,Thetexturepointsareusedtocalculatetexturecoordinates.返回纹理的点列表,这个纹理点是被用来计算纹理坐标的。Constchar*InstanceName()//Returnstheinstancename返回实例名称VoidInstanceName(char*name)//Setstheobject’sinstancename设置对象的实例名称VoidLightingEnabled(boolmode)//Setsthelightingstate设置光照状态IntLinghtingEnabled()//Getsthelightingstate获取光照状态VoidLineStippleMultiplier(intmult)//Setsthelinestipplemultiplier设置线刻画的增加IntLineStippleMultiplier()//Getsthelinestipplemultiplier获取线刻画的增加VoidLineStipplePattern(intpattern)//Setsthelinestipplepattern设置线刻画的模式IntLineStipplePattern()//Getsthelinestipplepattern获取线刻画的模式VoidLineWidth(floatwidth)//Setsthewidthoflinesintheobject设置对象的线条宽度FloatLineWidth()//Getsthewidthoflinesintheobject获取对象的线条宽度VoidLocation(constVertex&)//SetstheLocationText_F-Location(165,140,0);设置位置(顶点)VertexLocation()//ReturnstheLocation返回位置(顶点)VoidMateriallndex(int)//Setsthematerialindex设置素材索引IntMateriallndex()//Returnsthematerialindex返回素材索引IntNumberOfVertices()//Returnsthenumberofvertices返回顶点的数值Vector*Noramals()//Returnsthevertexnormalsarray返回顶点的正常排列FloatObjectDepth()//ReturnstheobjectdepthfromGetExtents()返回对象的深度依据GetExtents()FloatObjectHeight()//ReturnstheobjectheightfromGetExtents()返回对象的高度依据FloatObjectWidth()//ReturnstheobjectwidthfromGetExtents()返回对象的宽度依据DisplayFrame*Parent()//Returnsthisobject’sparentDisplayFrame返回对象的父类列表VoidParent(DisplayFrame*parent)//Setsthisobject’sparentDisplayFrame设置对象的父类列表Group*ParentGroup()//Returnsthisobject’shierarchyparent返回对象的层次父类VoidParenGroup(Group*group)//Setsthisobject’shierarchyparent设置对象的层次父类VoidPickable(Unsignedchar)//Setspickability(PickableType_e)设置能力?UnsignedcharPickable(void)//Returnspickability(PickableType_e)返回能力?VoidPolygonEnd(intmode)//Setsthepolygonendmode(OpenorClosed)(PolygonClose_e)IntPolygonEnd(void)//Getsthepolygonendmode(OpenorClosed)(PolygonClose_e)获取多过形的最后模式VoidPolygonMode(intmode)//setsthepolygondrawingmode(PolygonMode_e)设置多边形绘画模式VoidReallocateVertices(vnsignedintnumVertices,boolinitializeNew,boolcopyOld)//Reallocatesthevertexandtexturecoordinateandnormalarrays.Existingverticesarecopied.DistiAttributeBase&Resource(Consechar*name)//Returnsareferencetothespecifiedresource.Valuescanbestreamedinandoutofthisreference.VoidRotate(floatangle,intaxis=Z_AXIS)//Rotatestheobject(aroundthespecifiedaxis)bytheangleindicated,attheobject’srotationpointRecalculatesthevertexdata.VoidRotate(constVector&origin,floatangle,intaxis=Z_AXIS)//Rotatestheobject(aroundthespecifiedaxis)bytheangleindicated,ataspecifiedpoint.Recalculatesthevertexdata.VoidRotate(constVector&orig,floatangle,constVector&axis)//Rotatestheobject(aroundanarbitraryaxis)bytheangleindicated,ataspecifiedpoint.Recalculatesthevertexdata.VoidRotationPoint(constVertex&)//Setstherotationpoint.Specifiledrelativetolocation.设置旋转点VoidSetBlendColor(constglsColor&color)//Setsthetexturnblendcolor设置纹理的混合颜色VoidSetColor(constglsColor&color)//Setstheoutlinecolor设置轮廓颜色VoidSetFillColor(constglsColor&color)//Setsthefillcolor设置填充颜色SetString(constString*s
本文标题:GL-studio函数
链接地址:https://www.777doc.com/doc-5048954 .html