Skip to content

ITextureAtlasBuilder.WithPowerOfTwo(bool) Method

Definition

Namespace: Brine2D.Rendering.TextureAtlas

Sets whether to use power-of-two dimensions for the atlas. Power-of-two textures are more compatible with older GPUs.

Brine2D.Rendering.TextureAtlas.ITextureAtlasBuilder WithPowerOfTwo(bool usePowerOfTwo=true);

Parameters

usePowerOfTwo System.Boolean

True to use power-of-two dimensions (default: true).

Returns

ITextureAtlasBuilder