Class Texture
Represents a texture used in graphics rendering.
Inherited Members
Namespace: Genesis.Graphics
Assembly: Genesis.dll
Syntax
public class Texture
Constructors
Texture(Bitmap)
Constructor for the Texture class that initializes the texture with a Bitmap.
Declaration
public Texture(Bitmap bitmap)
Parameters
Type | Name | Description |
---|---|---|
Bitmap | bitmap | The Bitmap representing the texture. |
Texture(int)
Constructor for the Texture class that initializes the texture with a render ID.
Declaration
public Texture(int RenderID)
Parameters
Type | Name | Description |
---|---|---|
int | RenderID |
Texture(string, Bitmap)
Constructor for the Texture class that initializes the texture with a name and a Bitmap.
Declaration
public Texture(string name, Bitmap bitnmap)
Parameters
Type | Name | Description |
---|---|---|
string | name | The name of the texture. |
Bitmap | bitnmap |
Properties
Bitnmap
Gets or sets the Bitmap representing the texture.
Declaration
public Bitmap Bitnmap { get; set; }
Property Value
Type | Description |
---|---|
Bitmap |
Name
Gets or sets the name of the texture.
Declaration
public string Name { get; set; }
Property Value
Type | Description |
---|---|
string |
RenderID
Gets or sets the render ID associated with the texture.
Declaration
public int RenderID { get; set; }
Property Value
Type | Description |
---|---|
int |