Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
◆
this[int index]
SamplerState
Microsoft.Xna.Framework.Graphics.SamplerStateCollection.this[int index]
get
set
Definition at line
13
of file
SamplerStateCollection.cs
.
14
{
15
get
16
{
17
if
(
index
>= 0)
18
{
19
SamplerState[]
array
=
pSamplerList
;
20
if
(
index
< (nint)
array
.LongLength)
21
{
22
return
array
[
index
];
23
}
24
}
25
throw
new
ArgumentOutOfRangeException
(
"index"
);
26
}
27
set
28
{
29
if
(
index
>= 0)
30
{
31
SamplerState[]
array
=
pSamplerList
;
32
if
(
index
< (nint)
array
.LongLength)
33
{
34
if
(
value
==
null
)
35
{
36
throw
new
ArgumentNullException
(
"value"
, FrameworkResources.NullNotAllowed);
37
}
38
if
(
value
!=
array
[
index
])
39
{
40
value
.Apply(
pDevice
,
samplerOffset
+
index
);
41
pSamplerList
[
index
] =
value
;
42
}
43
return
;
44
}
45
}
46
throw
new
ArgumentOutOfRangeException
(
"index"
);
47
}
48
}
Microsoft.Xna.Framework.Graphics.SamplerStateCollection.pDevice
GraphicsDevice pDevice
Definition
SamplerStateCollection.cs:7
Microsoft.Xna.Framework.Graphics.SamplerStateCollection.pSamplerList
SamplerState[] pSamplerList
Definition
SamplerStateCollection.cs:9
Microsoft.Xna.Framework.Graphics.SamplerStateCollection.samplerOffset
int samplerOffset
Definition
SamplerStateCollection.cs:11
System.ArgumentNullException
Definition
ArgumentNullException.cs:10
System.ArgumentOutOfRangeException
Definition
ArgumentOutOfRangeException.cs:9
System.ExceptionArgument.value
@ value
System.ExceptionArgument.index
@ index
System.ExceptionArgument.array
@ array
Microsoft
Xna
Framework
Graphics
SamplerStateCollection
Generated by
1.10.0