Interface ITextureOffsetComponent
Allows changing the starting offset from which the texture will be rendered.
This can be useful, for example, when dealing with a tiled texture (i.e when the ITextureConfig has either wrapX or wrapY as Repeat or MirroredRepeat) when you want to animate the tile.
Inherited Members
System.IDisposable.Dispose()
System.ComponentModel.INotifyPropertyChanged.PropertyChanged
Namespace: AGS.API
Assembly: AGS.API.dll
Syntax
public interface ITextureOffsetComponent : IComponent, IDisposable, INotifyPropertyChanged
Properties
| Improve this Doc View SourceTextureOffset
Gets or sets the texture starting offset from which it will be rendered. The units are in relation to the texture's size, where (0,0) is the top-left of the texture, and (1,1) is the bottom-right of the texture (note that if the value is under 0 or above 1, the behavior of the texture is determined based on wrapping configurations in ITextureConfig.
Declaration
PointF TextureOffset { get; set; }
Property Value
Type | Description |
---|---|
PointF | The texture offset. |