Class Texture2D
A drawable texture
Inheritance
System.Object
Texture2D
Implements
System.IDisposable
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Inferno.Graphics
Assembly: Inferno.Desktop.dll
Syntax
public class Texture2D : IDisposable
Constructors
| Improve this Doc View SourceTexture2D(Int32, Int32, Color[])
Declaration
public Texture2D(int width, int height, Color[] data)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | width | |
System.Int32 | height | |
Color[] | data |
Properties
| Improve this Doc View SourceHeight
Declaration
public int Height { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Width
Declaration
public int Width { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Methods
| Improve this Doc View SourceDispose()
Declaration
public void Dispose()
Finalize()
Declaration
protected void Finalize()
GetData()
Declaration
public Color[] GetData()
Returns
Type | Description |
---|---|
Color[] |
SetData(Color[])
Declaration
public void SetData(Color[] data)
Parameters
Type | Name | Description |
---|---|---|
Color[] | data |
Implements
System.IDisposable