Class SpriteBatchMaterial
The material decorator for SpriteBatch.
Inherited Members
Namespace: Evergine.Framework.Graphics.Materials
Assembly: Evergine.Framework.dll
Syntax
public class SpriteBatchMaterial : MaterialDecorator
Constructors
SpriteBatchMaterial(Effect)
Initializes a new instance of the SpriteBatchMaterial class.
Declaration
public SpriteBatchMaterial(Effect effect)
Parameters
Type | Name | Description |
---|---|---|
Effect | effect | The effect. |
Properties
PerCameraBuffer
Gets the per-camera constant buffer.
Declaration
public ConstantBuffer PerCameraBuffer { get; }
Property Value
Type | Description |
---|---|
ConstantBuffer |
Sampler
Gets or sets the sprite texture sampler.
Declaration
public SamplerState Sampler { get; set; }
Property Value
Type | Description |
---|---|
SamplerState |
Texture
Gets or sets the sprite's texture.
Declaration
public Texture Texture { get; set; }
Property Value
Type | Description |
---|---|
Texture |