Manages a OpenGL Texture object
More...
|
| void | Bind (int unit) |
| | Bind this texture to a particular unit More...
|
| |
|
override string | ToString () |
| |
| override void | Dispose () |
| | Delegate Dispose to underlying wrapper class More...
|
| |
|
| static Texture | FromBitmap (Bitmap bmp, string name=null) |
| | Create a texture object and upload bitmap data to it More...
|
| |
| static Texture | FromFile (string path, string name=null) |
| | Create a texture and upload the contents of an image file to it More...
|
| |
|
| TextureTarget | Target => Wrapper.Target |
| | This textures target; how it is used More...
|
| |
Manages a OpenGL Texture object
◆ Bind()
| void Diamond.Textures.Texture.Bind |
( |
int |
unit | ) |
|
Bind this texture to a particular unit
◆ Dispose()
| override void Diamond.Textures.Texture.Dispose |
( |
| ) |
|
|
virtual |
◆ FromBitmap()
| static Texture Diamond.Textures.Texture.FromBitmap |
( |
Bitmap |
bmp, |
|
|
string |
name = null |
|
) |
| |
|
static |
Create a texture object and upload bitmap data to it
- Parameters
-
| bmp | The image to upload |
| name | The name of this GLObject |
- Returns
- The initialized Texture, or null if initialsation failed
◆ FromFile()
| static Texture Diamond.Textures.Texture.FromFile |
( |
string |
path, |
|
|
string |
name = null |
|
) |
| |
|
static |
Create a texture and upload the contents of an image file to it
- Parameters
-
| path | The path to the file |
| name | The name of this GLObject |
- Returns
- The initialized Texture, or null if instantiation failed
◆ Target
| TextureTarget Diamond.Textures.Texture.Target => Wrapper.Target |
This textures target; how it is used
The documentation for this class was generated from the following file:
- Diamond/Textures/Texture.cs