Table of Contents

Enum TextureAddressMode

Namespace
Sdl3Sharp.Video.Rendering
Assembly
Sdl3Sharp.dll

Represents how texture coordinates outside the range from 0 to 1 are handled

public enum TextureAddressMode

Fields

Auto = 0

Wrapping is enabled if the texture coordinates are outside the range from 0 to 1

Clamp = 1

The texture coordinates are clamped to the range from 0 to 1

Invalid = -1

Invalid address mode

Wrap = 2

The texture coordinates are wrapped around resulting the texture being repeated (tiled)

Remarks

This is primarily used in TryRenderGeometry(ReadOnlySpan<Vertex>, Texture?) and any of the other texture rendering methods.

Texture wrapping is always supported for power-of-two texture sizes, and is supported for other texture sizes if SupportsNonPowerOfTwoTextureWrapping is set to true.