Wrapper for CryEngine ITexture. Holds, creates and updates an ITexture instance. More...
| Public Member Functions | |
| Texture (int width, int height, byte[] data, bool isRendertarget=false, bool clamp=false, string name="MF") | |
| Creates a texture with image data and sets some default properties.  More... | |
| void | UpdateData (int width, int height, byte[] data) | 
| Pushes new image data into video memory for the allocated texture object. May reinstantiate the texture object, e.g. if size changed.  More... | |
| void | SetClamped (bool isClamped) | 
| Enable clamping the Texture at the edges instead of wrapping.  More... | |
| void | Clear () | 
| Clears the texture and sets all pixels to the default clear color.  More... | |
| void | Clear (Color clearColor) | 
| Clears the texture and sets all pixels to the clearColor   More... | |
| void | Destroy () | 
| Destroy this texture instance.  More... | |
| override bool | Equals (object obj) | 
| bool | Equals (Texture wrapper) | 
| override int | GetHashCode () | 
| Static Public Member Functions | |
| static Texture | GetByName (string name) | 
| Get a texture by name.  More... | |
| static Texture | GetById (int Id) | 
| Get a texture by ID.  More... | |
| static void | CopyTextureRegion (Texture sourceTexture, Region sourceRegion, Texture destinationTexture, Region destinationRegion, Color color) | 
| Copy part of sourceTexture  to destinationTexture , overwriting all pixels in the region. The regions to copy from and to are specified with sourceRegion  and destinationRegion . To copy and blend transparency use BlendTextureRegion instead.  More... | |
| static void | BlendTextureRegion (Texture sourceTexture, Region sourceRegion, Texture destinationTexture, Region destinationRegion, Color color) | 
| Copy part of sourceTexture  to destinationTexture  and blend the transparency while copying. The regions to copy from and to are specified with sourceRegion  and destinationRegion . To copy without blending transparency use CopyTextureRegion instead.  More... | |
| static bool | operator== (Texture wrapperA, Texture wrapperB) | 
| static bool | operator!= (Texture wrapperA, Texture wrapperB) | 
| Properties | |
| int | Width  [get] | 
| Texture Width.  More... | |
| int | Height  [get] | 
| Texture Height.  More... | |
| string | Name  [get] | 
| Describing name for the texture. Automatically set to the filename if loaded from file.  More... | |
| int | ID  [get] | 
| ID retrieved from CryEngine on texture creation.  More... | |
Wrapper for CryEngine ITexture. Holds, creates and updates an ITexture instance.
| 
 | inline | 
Creates a texture with image data and sets some default properties.
| width | Intended Texture Width. | 
| height | Intended Texture Height. | 
| data | Image source data. | 
| isRendertarget | If set to trueTexture can be rendered to. | 
| clamp | If set to truethe Texture will be clamped at the edges. | 
| name | The name the texture will receive internally. If the name is not unique a number will be appended to it. | 
Copy part of sourceTexture to destinationTexture and blend the transparency while copying. The regions to copy from and to are specified with sourceRegion and destinationRegion . To copy without blending transparency use CopyTextureRegion instead.
| sourceTexture | Source texture. | 
| sourceRegion | Source region. | 
| destinationTexture | Destination texture. | 
| destinationRegion | Destination region. | 
| color | Tint color. | 
| 
 | inline | 
Clears the texture and sets all pixels to the default clear color.
| 
 | inline | 
Clears the texture and sets all pixels to the clearColor
| clearColor | The color the texture will be set to. | 
Copy part of sourceTexture to destinationTexture , overwriting all pixels in the region. The regions to copy from and to are specified with sourceRegion and destinationRegion . To copy and blend transparency use BlendTextureRegion instead.
| sourceTexture | Source texture. | 
| sourceRegion | Source region. | 
| destinationTexture | Destination texture. | 
| destinationRegion | Destination region. | 
| color | Tint color. | 
| 
 | inline | 
Destroy this texture instance.
| 
 | inline | 
| 
 | inline | 
| 
 | inline static | 
Get a texture by ID.
| Id | Identifier. | 
| 
 | inline static | 
Get a texture by name.
| name | Name. | 
| 
 | inline | 
| 
 | inline static protected | 
| 
 | inline | 
Enable clamping the Texture at the edges instead of wrapping.
| isClamped | If set to trueis clamped. | 
| 
 | inline | 
Pushes new image data into video memory for the allocated texture object. May reinstantiate the texture object, e.g. if size changed.
| width | Target Width. | 
| height | Target Height. | 
| data | Image data for the texture to be filled with. | 
| 
 | get | 
Texture Height.
The height.
| 
 | get | 
ID retrieved from CryEngine on texture creation.
The identifier.
| 
 | get | 
Describing name for the texture. Automatically set to the filename if loaded from file.
The name.
| 
 | get | 
Texture Width.
The width.