TextureCubeBuilder WithSize( int width, int height )
TextureCubeBuilder WithSize( Vector2 size )

robot_2Generated
code_blocksInput

Description

The WithSize method of the TextureCubeBuilder class allows you to specify the dimensions of the texture cube being built. This method sets the width and height of the texture cube, which are essential parameters for defining the size of the texture.

Usage

To use the WithSize method, call it on an instance of TextureCubeBuilder and pass the desired width and height as integer parameters. This method is part of a fluent interface, allowing you to chain multiple configuration methods together before finalizing the texture cube with the Finish method.

Example

// Example of using WithSize method
TextureCubeBuilder builder = new TextureCubeBuilder();
builder.WithSize(512, 512)
       .WithFormat(ImageFormat.RGBA8)
       .Finish();