Description
The WithScreenMultiSample
method is a part of the TextureCubeBuilder
class in the Sandbox namespace. This method configures the texture cube to use the screen's current multi-sample settings. Multi-sampling is a technique used to improve image quality by reducing aliasing, which is the visual stair-stepping of edges that occurs in digital images.
Usage
To use the WithScreenMultiSample
method, you must first create an instance of the TextureCubeBuilder
class. Once you have the builder instance, you can chain this method to configure the texture cube to use the screen's multi-sample settings. This method is typically used in a fluent interface style, allowing you to chain multiple configuration methods together before finalizing the texture cube with the Finish
method.
Example
// Example of using WithScreenMultiSample
TextureCubeBuilder builder = new TextureCubeBuilder();
Texture texture = builder
.WithSize(512, 512) // Set the size of the texture
.WithScreenMultiSample() // Use screen's multi-sample settings
.Finish(); // Finalize and create the texture