Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ VertexDeclaration() [2/2]

Microsoft.Xna.Framework.Graphics.VertexDeclaration.VertexDeclaration ( params VertexElement[] elements)
inline

Definition at line 59 of file VertexDeclaration.cs.

60 {
61 try
62 {
63 if (elements != null && elements.Length != 0)
64 {
65 VertexElementValidator.Validate(_vertexStride = VertexElementValidator.GetVertexStride(_elements = (VertexElement[])elements.Clone()), _elements);
66 goto IL_0066;
67 }
68 }
69 catch
70 {
71 //try-fault
72 base.Dispose(true);
73 throw;
74 }
75 try
76 {
77 throw new ArgumentNullException("elements", FrameworkResources.NullNotAllowed);
78 }
79 catch
80 {
81 //try-fault
82 base.Dispose(true);
83 throw;
84 }
85 IL_0066:
86 try
87 {
88 return;
89 }
90 catch
91 {
92 //try-fault
93 base.Dispose(true);
94 throw;
95 }
96 }

References Microsoft.Xna.Framework.Graphics.VertexDeclaration._elements, Microsoft.Xna.Framework.Graphics.VertexDeclaration._vertexStride, Microsoft.Xna.Framework.Graphics.VertexElementValidator.GetVertexStride(), Microsoft.Xna.Framework.FrameworkResources.NullNotAllowed, and Microsoft.Xna.Framework.Graphics.VertexElementValidator.Validate().