Class Scene
Represents a Scene / frame of a Graphics surface.
Implements
Inherited Members
Namespace: GameOverlay.Drawing
Assembly: GameOverlay.dll
Syntax
public class Scene : IDisposable
Constructors
| Improve this Doc View SourceScene(Graphics)
Initializes a new Scene using a Graphics surface
Declaration
public Scene(Graphics device)
Parameters
Type | Name | Description |
---|---|---|
Graphics | device | A Graphics surface |
Properties
| Improve this Doc View SourceDevice
The Graphics surface.
Declaration
public Graphics Device { get; }
Property Value
Type | Description |
---|---|
Graphics |
Methods
| Improve this Doc View SourceDispose()
Releases all resources used by this Scene.
Declaration
public void Dispose()
Dispose(Boolean)
Releases all resources used by this Scene.
Declaration
protected virtual void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
Boolean | disposing | A Boolean value indicating whether this is called from the destructor. |
Equals(Scene)
Returns a value indicating whether two specified instances of Scene represent the same value.
Declaration
public bool Equals(Scene value)
Parameters
Type | Name | Description |
---|---|---|
Scene | value | An object to compare to this instance. |
Returns
Type | Description |
---|---|
Boolean | true if |
Equals(Scene, Scene)
Returns a value indicating whether two specified instances of Scene represent the same value.
Declaration
public static bool Equals(Scene left, Scene right)
Parameters
Type | Name | Description |
---|---|---|
Scene | left | The first object to compare. |
Scene | right | The second object to compare. |
Returns
Type | Description |
---|---|
Boolean | true if |
Equals(Object)
Returns a value indicating whether this instance and a specified Object represent the same type and value.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
Object | obj | The object to compare with this instance. |
Returns
Type | Description |
---|---|
Boolean | true if |
Overrides
| Improve this Doc View SourceFinalize()
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
Declaration
protected void Finalize()
GetHashCode()
Returns the hash code for this instance.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
Int32 | A 32-bit signed integer hash code. |
Overrides
| Improve this Doc View SourceToString()
Converts this Scene to a human-readable string.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
String | A string representation of this Scene. |
Overrides
Operators
| Improve this Doc View SourceImplicit(Scene to Graphics)
Converts a Scene to a Graphics surface.
Declaration
public static implicit operator Graphics(Scene scene)
Parameters
Type | Name | Description |
---|---|---|
Scene | scene | The Scene object. |
Returns
Type | Description |
---|---|
Graphics |