Class TexCoords
Represents values for texture coordinates defining a rectangle.
Inherited Members
Namespace: Genesis.Graphics
Assembly: Genesis.dll
Syntax
public class TexCoords
Constructors
TexCoords()
Default constructor for the TexCoords class.
Declaration
public TexCoords()
TexCoords(Vec3, Vec3, Vec3, Vec3)
Constructor for the TexCoords class that initializes the texture coordinates.
Declaration
public TexCoords(Vec3 topLeft, Vec3 topRight, Vec3 bottomRight, Vec3 bottomLeft)
Parameters
| Type | Name | Description |
|---|---|---|
| Vec3 | topLeft | The texture coordinate for the top-left corner. |
| Vec3 | topRight | The texture coordinate for the top-right corner. |
| Vec3 | bottomRight | The texture coordinate for the bottom-right corner. |
| Vec3 | bottomLeft | The texture coordinate for the bottom-left corner. |
Properties
BottomLeft
Gets or sets the texture coordinate for the bottom-left corner.
Declaration
public Vec3 BottomLeft { get; set; }
Property Value
| Type | Description |
|---|---|
| Vec3 |
BottomRight
Gets or sets the texture coordinate for the bottom-right corner.
Declaration
public Vec3 BottomRight { get; set; }
Property Value
| Type | Description |
|---|---|
| Vec3 |
TopLeft
Gets or sets the texture coordinate for the top-left corner.
Declaration
public Vec3 TopLeft { get; set; }
Property Value
| Type | Description |
|---|---|
| Vec3 |
TopRight
Gets or sets the texture coordinate for the top-right corner.
Declaration
public Vec3 TopRight { get; set; }
Property Value
| Type | Description |
|---|---|
| Vec3 |
Methods
GetFloats()
Gets an array of floats representing the texture coordinates in the order (X, Y).
Declaration
public float[] GetFloats()
Returns
| Type | Description |
|---|---|
| float[] | An array of floats representing the texture coordinates. |