fixed the signature of the predefined vertex formats
This commit is contained in:
parent
1efaa0a111
commit
1ea40a7081
@ -79,5 +79,35 @@ namespace ANX.Framework.Graphics
|
||||
d.Name = "VertexPositionColor.VertexDeclaration";
|
||||
VertexDeclaration = d;
|
||||
}
|
||||
|
||||
public override int GetHashCode()
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
return string.Format("{{Position:{0} Color:{1}}}", this.Position, this.Color);
|
||||
}
|
||||
|
||||
public override bool Equals(object obj)
|
||||
{
|
||||
if (obj != null && obj.GetType() == this.GetType())
|
||||
{
|
||||
return this == (VertexPositionColor)obj;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
public static bool operator ==(VertexPositionColor lhs, VertexPositionColor rhs)
|
||||
{
|
||||
return lhs.Color.Equals(rhs.Color) && lhs.Position.Equals(rhs.Position);
|
||||
}
|
||||
|
||||
public static bool operator !=(VertexPositionColor lhs, VertexPositionColor rhs)
|
||||
{
|
||||
return !lhs.Color.Equals(rhs.Color) || !lhs.Position.Equals(rhs.Position);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -82,5 +82,35 @@ namespace ANX.Framework.Graphics
|
||||
d.Name = "VertexPositionColorTexture.VertexDeclaration";
|
||||
VertexDeclaration = d;
|
||||
}
|
||||
|
||||
public override int GetHashCode()
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
return string.Format("{{Position:{0} Color:{1} TextureCoordinate:{2}}}", this.Position, this.Color, this.TextureCoordinate);
|
||||
}
|
||||
|
||||
public override bool Equals(object obj)
|
||||
{
|
||||
if (obj != null && obj.GetType() == this.GetType())
|
||||
{
|
||||
return this == (VertexPositionColorTexture)obj;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
public static bool operator ==(VertexPositionColorTexture lhs, VertexPositionColorTexture rhs)
|
||||
{
|
||||
return lhs.Color.Equals(rhs.Color) && lhs.Position.Equals(rhs.Position) && lhs.TextureCoordinate.Equals(rhs.TextureCoordinate);
|
||||
}
|
||||
|
||||
public static bool operator !=(VertexPositionColorTexture lhs, VertexPositionColorTexture rhs)
|
||||
{
|
||||
return !lhs.Color.Equals(rhs.Color) || !lhs.Position.Equals(rhs.Position) || !lhs.TextureCoordinate.Equals(rhs.TextureCoordinate);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -82,5 +82,35 @@ namespace ANX.Framework.Graphics
|
||||
d.Name = "VertexPositionNormalTexture.VertexDeclaration";
|
||||
VertexDeclaration = d;
|
||||
}
|
||||
|
||||
public override int GetHashCode()
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
return string.Format("{{Position:{0} Normal:{1} TextureCoordinate:{2}}}", this.Position, this.Normal, this.TextureCoordinate);
|
||||
}
|
||||
|
||||
public override bool Equals(object obj)
|
||||
{
|
||||
if (obj != null && obj.GetType() == this.GetType())
|
||||
{
|
||||
return this == (VertexPositionNormalTexture)obj;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
public static bool operator ==(VertexPositionNormalTexture lhs, VertexPositionNormalTexture rhs)
|
||||
{
|
||||
return lhs.Normal.Equals(rhs.Normal) && lhs.Position.Equals(rhs.Position) && lhs.TextureCoordinate.Equals(rhs.TextureCoordinate);
|
||||
}
|
||||
|
||||
public static bool operator !=(VertexPositionNormalTexture lhs, VertexPositionNormalTexture rhs)
|
||||
{
|
||||
return !lhs.Normal.Equals(rhs.Normal) || !lhs.Position.Equals(rhs.Position) || !lhs.TextureCoordinate.Equals(rhs.TextureCoordinate);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -79,5 +79,35 @@ namespace ANX.Framework.Graphics
|
||||
d.Name = "VertexPositionTexture.VertexDeclaration";
|
||||
VertexDeclaration = d;
|
||||
}
|
||||
|
||||
public override int GetHashCode()
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
return string.Format("{{Position:{0} TextureCoordinate:{1}}}", this.Position, this.TextureCoordinate);
|
||||
}
|
||||
|
||||
public override bool Equals(object obj)
|
||||
{
|
||||
if (obj != null && obj.GetType() == this.GetType())
|
||||
{
|
||||
return this == (VertexPositionTexture)obj;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
public static bool operator ==(VertexPositionTexture lhs, VertexPositionTexture rhs)
|
||||
{
|
||||
return lhs.TextureCoordinate.Equals(rhs.TextureCoordinate) && lhs.Position.Equals(rhs.Position);
|
||||
}
|
||||
|
||||
public static bool operator !=(VertexPositionTexture lhs, VertexPositionTexture rhs)
|
||||
{
|
||||
return !lhs.TextureCoordinate.Equals(rhs.TextureCoordinate) || !lhs.Position.Equals(rhs.Position);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user