TextureBuilder WithWidth( int width )

book_4_sparkGenerated
code_blocksInput

Description

The WithWidth method of the TextureBuilder class allows you to specify the width of the texture being built. This method is part of a fluent interface, enabling you to chain multiple configuration methods together to define the properties of a texture before creating it.

Usage

To use the WithWidth method, call it on an instance of TextureBuilder and pass the desired width as an integer parameter. This method returns the same TextureBuilder instance, allowing for method chaining.

Example

// Example of using WithWidth method
TextureBuilder builder = new TextureBuilder();
builder.WithWidth(1024);