OSDN Git Service

DTXManiaソリューション、DTXManiaプロジェクト、DTXCreatorプロジェクト、FDKプロジェクトについて英語化。
[dtxmania/dtxmania.git] / FDK17プロジェクト / コード / 04.グラフィック / 頂点フォーマット(Vertex) / TransformedColoredTexturedVertex.cs
diff --git a/FDK17プロジェクト/コード/04.グラフィック/頂点フォーマット(Vertex)/TransformedColoredTexturedVertex.cs b/FDK17プロジェクト/コード/04.グラフィック/頂点フォーマット(Vertex)/TransformedColoredTexturedVertex.cs
deleted file mode 100644 (file)
index 3b338c1..0000000
+++ /dev/null
@@ -1,73 +0,0 @@
-using System;\r
-using System.Collections.Generic;\r
-using System.Text;\r
-using System.Runtime.InteropServices;\r
-using System.Globalization;\r
-using SharpDX;\r
-using SharpDX.Direct3D9;\r
-\r
-namespace FDK\r
-{\r
-       [StructLayout( LayoutKind.Sequential )]\r
-       public struct TransformedColoredTexturedVertex : IEquatable<TransformedColoredTexturedVertex>\r
-       {\r
-               public Vector4  Position;\r
-               public int              Color;\r
-               public Vector2  TextureCoordinates;\r
-\r
-               public static int SizeInBytes\r
-               {\r
-                       get\r
-                       {\r
-                               return Marshal.SizeOf( typeof( TransformedColoredTexturedVertex ) );\r
-                       }\r
-               }\r
-               public static VertexFormat Format\r
-               {\r
-                       get\r
-                       {\r
-                               return ( VertexFormat.Texture1 | VertexFormat.Diffuse | VertexFormat.PositionRhw );\r
-                       }\r
-               }\r
-               public TransformedColoredTexturedVertex( Vector4 position, int color, Vector2 textureCoordinates )\r
-               {\r
-                       this = new TransformedColoredTexturedVertex();\r
-                       this.Position = position;\r
-                       this.Color = color;\r
-                       this.TextureCoordinates = textureCoordinates;\r
-               }\r
-\r
-               public static bool operator ==( TransformedColoredTexturedVertex left, TransformedColoredTexturedVertex right )\r
-               {\r
-                       return left.Equals( right );\r
-               }\r
-               public static bool operator !=( TransformedColoredTexturedVertex left, TransformedColoredTexturedVertex right )\r
-               {\r
-                       return !( left == right );\r
-               }\r
-               public override int GetHashCode()\r
-               {\r
-                       return ( ( this.Position.GetHashCode() + this.Color.GetHashCode() ) + this.TextureCoordinates.GetHashCode() );\r
-               }\r
-               public override bool Equals( object obj )\r
-               {\r
-                       if( obj == null )\r
-                       {\r
-                               return false;\r
-                       }\r
-                       if( base.GetType() != obj.GetType() )\r
-                       {\r
-                               return false;\r
-                       }\r
-                       return this.Equals( (TransformedColoredTexturedVertex) obj );\r
-               }\r
-               public bool Equals( TransformedColoredTexturedVertex other )\r
-               {\r
-                       return ( ( ( this.Position == other.Position ) && ( this.Color == other.Color ) ) && ( this.TextureCoordinates == other.TextureCoordinates ) );\r
-               }\r
-               public override string ToString()\r
-               {\r
-                       return string.Format( CultureInfo.CurrentCulture, "{0} ({1}, {2})", new object[] { this.Position.ToString(), System.Drawing.Color.FromArgb( this.Color ).ToString(), this.TextureCoordinates.ToString() } );\r
-               }\r
-       }\r
-}\r