コード例 #1
0
        protected bool UpdateRenderEntity(idRenderEntity renderEntity, idRenderView renderView)
        {
            // TODO: cinematic

            /*if ( gameLocal.inCinematic && gameLocal.skipCinematic ) {
             *      return false;
             * }*/

            idAnimator animator = this.Animator;

            if (animator != null)
            {
                return(animator.CreateFrame(idR.Game.Time, false));
            }

            return(false);
        }
コード例 #2
0
        private void UpdateModel()
        {
            UpdateModelTransform();

            // check if the entity has an MD5 model
            idAnimator animator = this.Animator;

            if ((animator != null) && (animator.Model != null))
            {
                // set the callback to update the joints
                _renderEntity.Callback = ModelCallback;
            }

            // set to invalid number to force an update the next time the PVS areas are retrieved
            ClearPVSAreas();

            // ensure that we call Present this frame
            BecomeActive(EntityThinkFlags.UpdateVisuals);
        }
コード例 #3
0
 public idAnimatedEntity()
     : base()
 {
     _animator = new idAnimator(this);
 }