资源描述:
《WebMax2.0函数库》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、1、简介52、API说明52.1三维API函数6AddFlashCtrl(flashName,FlashFile,alignMode,Left,Top,width,height,Loop)6DeleteFlashCtrl(flashName)6SetFlashRect(flashName,alignMode,left,top,width,height)7SetFlashCtrlVisibility(flashName,status)7SetFlashPlayStatus(flashName,status)8SetFlashCurrentFrame(flashName,frame
2、Index)82.11系统回调及相关函数9LoadN3DFile(strN3DFileName,N3DName)9EnableMouseDownCallback()9DisableMouseDownCallback()9EnableMouseUpCallback()9DisableMouseUpCallback()10EnableMouseDBClickCallback()10DisableMouseDBClickCallback()10EnableMouseMoveCallback()10DisableMouseMoveCallback()102.12场景函数12SetRen
3、derStatus(status)12ShowDefaultLogo(status)12ResetScene()12SetAlphaTestLevel(level)12SetMouseMoveEventTimer(timeStep)122.13控制相关函数13SetCollisionDistance(distance)13SetServer(strServer)13SetControlStatus(status)13SetEditCtrl_RosAxis(rosHint)13SetEditCtrl_DollySpeed(dollySpeed)14SetEditCtrl_Doll
4、yDistance(nearDis,farDis)14SetEditCtrl_AutoParam(PitchSpeedValue,RoundSpeedValue,RollSpeedValue)14SetEditCtrl_AutoPitchRoundRoll(status)14SetEditCtrl_ManualParam(PitchSpeed,RoundSpeed)15SetWalkCtrl_ManualParam(moveSpeed,moveAcc,rotateSpeed,rotateAcc,height)15SetFBL(fblValue)15SetAntiAliasLev
5、el(level)15PlayKeyFrame()16PauseKeyFrame()16StopKeyFrame()16SetKeyFrameRepeatCount(repeatCnt)16GotoFrame(frame)16SetKeyFramePlaySpeed(fps)16PlayKeyFrame1(startFrame,endFrame)16SetDynamicTexPlaySpeed(TextuerName,Speed)16SetPlayerCanMove(status)17SetPlayerCanRos(status)17SetPlayerCanZoom(statu
6、s)17SetPlayerCanLift(status)17PlayerGoForward()17PlayerGoBackward()17PlayerGoLeftward()17PlayerGoRightward()17PlayerStop()17PlayerTurnLeft()17PlayerTurnRight()17PlayerTurnUp()17PlayerTurnDown()17PlayerGoUp()17PlayerGoDown()18PlayerZoomIn()18PlayerZoomOut()182.14相机相关函数19MoveCamera(cameraName,
7、x,y,z,stepCnt,coordEnum)19MoveCurrentCamera(x,y,z,stepCnt,coordEnum)19SetCurrentCameraByName(camName)19SetCameraClip(cameraName,nearClip,farClip)19SetCurrentCameraClip(nearClip,farClip)20DollyCurrentCamera(value,stepCnt)20DollyCamera(cameraName,val