Struct SurfaceInfo
Surface information structure.
Namespace: Evergine.Common.Graphics
Assembly: Evergine.Common.dll
Syntax
public struct SurfaceInfo
Constructors
SurfaceInfo(nint, SurfaceTypes)
Initializes a new instance of the SurfaceInfo struct.
Declaration
public SurfaceInfo(nint handle, SurfaceInfo.SurfaceTypes type)
Parameters
Type | Name | Description |
---|---|---|
nint | handle | The surface native handle. |
SurfaceInfo.SurfaceTypes | type | The surface type. |
SurfaceInfo(nint[], SurfaceTypes, params object[])
Initializes a new instance of the SurfaceInfo struct.
Declaration
public SurfaceInfo(nint[] handles, SurfaceInfo.SurfaceTypes type, params object[] nativeSurfaceObjects)
Parameters
Type | Name | Description |
---|---|---|
nint[] | handles | Surface native handle. |
SurfaceInfo.SurfaceTypes | type | Surface type. |
object[] | nativeSurfaceObjects | Native surface objects. |
Fields
Handles
Surface native handles.
Declaration
public nint[] Handles
Field Value
Type | Description |
---|---|
nint[] |
NativeSurfaceObjects
Native surface objects.
Declaration
public object[] NativeSurfaceObjects
Field Value
Type | Description |
---|---|
object[] |
Type
The surface type.
Declaration
public SurfaceInfo.SurfaceTypes Type
Field Value
Type | Description |
---|---|
SurfaceInfo.SurfaceTypes |
Methods
Equals(SurfaceInfo)
Determines whether the specified object is equal to this instance.
Declaration
public bool Equals(SurfaceInfo other)
Parameters
Type | Name | Description |
---|---|---|
SurfaceInfo | other | The object used for comparison. |
Returns
Type | Description |
---|---|
bool |
|
GetHashCode()
Returns a hash code for this instance.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
int | A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. |