Class MonoGameEffect
An implementation of the IEffect interface that abstracts away
MonoGame shaders.
Inheritance
MonoGameEffect
Assembly: SociallyDistant.Framework.dll
Syntax
public class MonoGameEffect : IEffect, IDisposable
Constructors
MonoGameEffect(Effect, int)
Declaration
public MonoGameEffect(Effect underlyingEffect, int techniqueIndex = 0)
Parameters
Type |
Name |
Description |
Effect |
underlyingEffect |
The actual Microsoft.Xna.Framework.Graphics.Effect resource representing the MonoGame shader.
|
int |
techniqueIndex |
A value indicating which HLSL shader technique to use. Default is 0.
|
Properties
PassesCount
Declaration
public int PassesCount { get; }
Property Value
Methods
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Declaration
OnUse(int)
Declaration
protected virtual void OnUse(int index)
Parameters
Type |
Name |
Description |
int |
index |
|
UpdateOpacity(float)
Declaration
public void UpdateOpacity(float opacity)
Parameters
Type |
Name |
Description |
float |
opacity |
|
UpdatePositionOffset(Point)
Declaration
public void UpdatePositionOffset(Point positionOffset)
Parameters
Type |
Name |
Description |
Point |
positionOffset |
|
Use(int)
Declaration
public void Use(int pass)
Parameters
Type |
Name |
Description |
int |
pass |
|
Implements