Base interface for classes that act as handles for loading/creating graphics resources.
interface
|
IResourceHandle
|
extends
|
IEquatable<IResourceHandle>
|
||
base of
|
IconItem
|
||||
IEnvironmentMap
|
|||||
IModelGeometry
|
|||||
IPreloadingResourceHandle
|
|||||
IResourceData
|
|||||
ShadowMapping
|
|||||
TerrainBuffer
|
An
implementation
of
IResourceHandle
must
provide
a
correct
implementation
for
GetHashCode()
.
Creates a new resource object, using the given graphics context.
[OwnerReturn]
|
||||
method
|
CreateResource
(Graphics graphics)
|
|||
type
|
IResource
|
|||
params
|
graphics
|
[not-null]
|
The graphics context to use. | |
returns
|
The
resource
object
or
null . |
Remarks:
Resource objects may implement the IMemoryConsumption interface. In this case, the reported memory consumption will be interpreted as an estimate on how much GPU memory is consumed by the resource. This estimate can then be used for resource caching (e.g. CacheMemory).
Compares this object with the given one.
[Pure]
|
||||
method
|
Equals
(T other)
|
|||
type
|
bool
|
|||
params
|
other
|
The object to compare to. | ||
returns
|
true
if
this
object
is
equal
to
other,
false
if
not.
|
|||
inherited
|
IEquatable.Equals
|