Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
VertexDeclarationFactory.cs
Go to the documentation of this file.
1
namespace
Microsoft.Xna.Framework.Graphics
;
2
3
internal
static
class
VertexDeclarationFactory
<T> where T : struct,
IVertexType
4
{
5
private
static
VertexDeclaration
cachedDeclaration
;
6
7
public
static
VertexDeclaration
VertexDeclaration
8
{
9
get
10
{
11
if
(
cachedDeclaration
==
null
)
12
{
13
cachedDeclaration
=
VertexDeclaration
.
FromType
(typeof(T));
14
}
15
return
cachedDeclaration
;
16
}
17
}
18
}
Microsoft.Xna.Framework.Graphics.VertexDeclarationFactory.cachedDeclaration
static VertexDeclaration cachedDeclaration
Definition
VertexDeclarationFactory.cs:5
Microsoft.Xna.Framework.Graphics.VertexDeclarationFactory
Definition
VertexDeclarationFactory.cs:4
Microsoft.Xna.Framework.Graphics.VertexDeclaration.FromType
static VertexDeclaration FromType(Type vertexType)
Definition
VertexDeclaration.cs:140
Microsoft.Xna.Framework.Graphics.VertexDeclaration
Definition
VertexDeclaration.cs:9
Microsoft.Xna.Framework.Graphics.IVertexType
Definition
IVertexType.cs:4
Microsoft.Xna.Framework.Graphics
Definition
AlphaTestEffect.cs:1
source
Microsoft.Xna.Framework.Graphics
VertexDeclarationFactory.cs
Generated by
1.10.0