ResourceRegion Struct
Namespace: Stride.GraphicsAssembly: Stride.Graphics.dll
Defines a 3D box.
public struct ResourceRegion
Remarks
The following diagram shows a 3D box, where the origin is the left, front, top corner.
The values for right, bottom, and back are each one pixel past the end of the pixels that are included in the box region. That is, the values for left, top, and front are included in the box region while the values for right, bottom, and back are excluded from the box region. For example, for a box that is one pixel wide, (right - left) == 1; the box region includes the left pixel but not the right pixel.
Name | Description | |
---|---|---|
Constructors | ||
ResourceRegion(Int32, Int32, Int32, Int32, Int32, Int32) | ||
Fields | ||
Back | The z position of the back of the box. |
|
Bottom | The y position of the bottom of the box. |
|
Front | The z position of the front of the box. |
|
Left | The x position of the left hand side of the box. |
|
Right | The x position of the right hand side of the box. |
|
Top | The y position of the top of the box. |
Constructors
ResourceRegion(Int32, Int32, Int32, Int32, Int32, Int32)
public ResourceRegion(int left, int top, int front, int right, int bottom, int back)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | left | |
System.Int32 | top | |
System.Int32 | front | |
System.Int32 | right | |
System.Int32 | bottom | |
System.Int32 | back |
Fields
Back
The z position of the back of the box.
public int Back
Field Value
Type | Description |
---|---|
System.Int32 |
Bottom
The y position of the bottom of the box.
public int Bottom
Field Value
Type | Description |
---|---|
System.Int32 |
Front
The z position of the front of the box.
public int Front
Field Value
Type | Description |
---|---|
System.Int32 |
Left
The x position of the left hand side of the box.
public int Left
Field Value
Type | Description |
---|---|
System.Int32 |
Right
The x position of the right hand side of the box.
public int Right
Field Value
Type | Description |
---|---|
System.Int32 |
Top
The y position of the top of the box.
public int Top
Field Value
Type | Description |
---|---|
System.Int32 |