public AnyOfType MyScatterer { get; set; }
RealTimeSince lastUsed = 0;
if ( lastUsed > 10 ) { /*Do something*/ }
RealTimeUntil nextAttack = 10;
if ( nextAttack ) { /*Do something*/ }
TimeSince lastUsed = 0;
if ( lastUsed > 10 ) { /*Do something*/ }
TimeUntil nextAttack = 10;
if ( nextAttack ) { /*Do something*/ }
SamplerState mySampler < Attribute("sampler"); >;
C# binding:
var sampler = new SamplerState
{
Filter = FilterMode.Trilinear,
AddressModeU = TextureAddressMode.Wrap,
AddressModeV = TextureAddressMode.Wrap,
AddressModeW = TextureAddressMode.Clamp,
MaxAnisotropy = 4
};
Graphics.Attributes.Set("sampler", sampler);
P1 (Position)
P1 (In) ▼ P1 (Out)
o──────═══X═══──────o
───/ \───
──/ \──
-/ \-
/ \
| |
P0 X X P2