Ejemplo n.º 1
0
            public bool Equals(Mesh other)
            {
                if (other == null)
                {
                    return(false);
                }

                return(mName.Equals(other.mName) &&
                       mMaterialIndex.Equals(other.mMaterialIndex) &&
                       mVertexFormatIndex.Equals(other.mVertexFormatIndex) &&
                       mVertexBufferIndex.Equals(other.mVertexBufferIndex) &&
                       mIndexBufferIndex.Equals(other.mIndexBufferIndex) &&
                       mPrimitiveType.Equals(other.mPrimitiveType) &&
                       mFlags.Equals(other.mFlags) &&
                       mStreamOffset.Equals(other.mStreamOffset) &&
                       mStartVertex.Equals(other.mStartVertex) &&
                       mStartIndex.Equals(other.mStartIndex) &&
                       mMinVertexIndex.Equals(other.mMinVertexIndex) &&
                       mVertexCount.Equals(other.mVertexCount) &&
                       mPrimitiveCount.Equals(other.mPrimitiveCount) &&
                       mSkinControllerIndex.Equals(other.mSkinControllerIndex) &&
                       mScaleOffsetIndex.Equals(other.mScaleOffsetIndex) &&
                       mJointReferences.Equals(other.mJointReferences) &&
                       mBounds.Equals(other.mBounds) &&
                       mGeometryStates.Equals(other.mGeometryStates) &&
                       mParentName.Equals(other.mParentName) &&
                       mMirrorPlane.Equals(other.mMirrorPlane) &&
                       mOwner.Equals(other.mOwner)
                       );
            }
Ejemplo n.º 2
0
 public bool Equals(LODEntry other)
 {
     return
         (mModelLodIndex.Equals(other.mModelLodIndex) &&
          mFlags.Equals(other.mFlags) &&
          mId.Equals(other.mId) &&
          mMinZValue.Equals(other.mMinZValue) &&
          mMaxZValue.Equals(other.mMaxZValue)
         );
 }
Ejemplo n.º 3
0
        public override bool Equals(ShaderData other)
        {
            if (!base.Equals(other))
            {
                return(false);
            }

            ElementTextureRef _other = (ElementTextureRef)other;

            if (_RCOLTag != _other._RCOLTag)
            {
                return(false);
            }

            if (_RCOLTag == "GEOM")
            {
                return(index.Equals(_other.index));
            }
            else
            {
                return(data.Equals(_other.data));
            }
        }