Ctrl+K

TextureSettings

Declaration

public struct Strawberry.Graphics.TextureSettings

Represents texture settings for creation and sampling.

Constructors

TextureSettings

Initializes a new instance of the TextureSettings struct with default values.

void TextureSettings()

Fields

Format

The TextureFormat used for the texture.

TextureFormat Format

MinFilter

The minification TextureFiltering mode.

TextureFiltering MinFilter

MagFilter

The magnification TextureFiltering mode.

TextureFiltering MagFilter

WrapS

The horizontal TextureWrap mode.

TextureWrap WrapS

WrapT

The vertical TextureWrap mode.

TextureWrap WrapT

Methods

ToString override

Returns a string representation of the current TextureSettings.

string ToString()

Equals override

Determines whether the specified object is equal to the current TextureSettings.

bool Equals(object obj)

Parameters:

Name Type Description
obj System.Object The object to compare with the current instance.

GetHashCode override

Returns a hash code for the current TextureSettings.

int GetHashCode()

Operators

op_Equality static

Compares two TextureSettings values for equality.

bool op_Equality(TextureSettings a, TextureSettings b)

Parameters:

Name Type Description
a Strawberry.Graphics.TextureSettings The first value to compare.
b Strawberry.Graphics.TextureSettings The second value to compare.

Returns: true if the values are equal; otherwise, false.

op_Inequality static

Compares two TextureSettings values for inequality.

bool op_Inequality(TextureSettings a, TextureSettings b)

Parameters:

Name Type Description
a Strawberry.Graphics.TextureSettings The first value to compare.
b Strawberry.Graphics.TextureSettings The second value to compare.

Returns: true if the values are not equal; otherwise, false.