Texture Class |
Namespace: Internal.SharpBgfx
public sealed class Texture : IDisposable, IEquatable<Texture>
The Texture type exposes the following members.
| Name | Description | |
|---|---|---|
| ArrayLayers |
The number of texture array layers (for 2D or cube textures).
| |
| BitsPerPixel |
The number of bits per pixel.
| |
| Depth |
The depth of the texture, if 3D.
| |
| Format |
The format of the image data.
| |
| Height |
The height of the texture.
| |
| IsCubeMap |
Indicates whether the texture is a cubemap.
| |
| MipLevels |
The number of mip levels in the texture.
| |
| SizeInBytes |
The size of the entire texture, in bytes.
| |
| Width |
The width of the texture.
|
| Name | Description | |
|---|---|---|
| BlitTo(UInt16, Texture, Int32, Int32, Int32, Int32, Int32, Int32) |
Blits the contents of the texture to another texture.
| |
| BlitTo(Encoder, UInt16, Texture, Int32, Int32, Int32, Int32, Int32, Int32) |
Blits the contents of the texture to another texture.
| |
| BlitTo(UInt16, Texture, Int32, Int32, Int32, Int32, Int32, Int32, Int32, Int32, Int32, Int32, Int32) |
Blits the contents of the texture to another texture.
| |
| BlitTo(Encoder, UInt16, Texture, Int32, Int32, Int32, Int32, Int32, Int32, Int32, Int32, Int32, Int32, Int32) |
Blits the contents of the texture to another texture.
| |
| Create2D(BackbufferRatio, Boolean, Int32, TextureFormat, TextureFlags) |
Creates a new 2D texture that scales with backbuffer size.
| |
| Create2D(Int32, Int32, Boolean, Int32, TextureFormat, TextureFlags, NullableMemoryBlock) |
Creates a new 2D texture.
| |
| Create3D |
Creates a new 3D texture.
| |
| CreateCube |
Creates a new cube texture.
| |
| Dispose |
Releases the texture.
| |
| Equals(Object) |
Determines whether the specified Object is equal to this instance.
(Overrides ObjectEquals(Object).) | |
| Equals(Texture) |
Determines whether the specified object is equal to this instance.
| |
| FromFile |
Creates a new texture from a file loaded in memory.
| |
| GetDirectAccess |
Returns a direct pointer to the texture memory.
| |
| GetHashCode |
Returns a hash code for this instance.
(Overrides ObjectGetHashCode.) | |
| GetType | Gets the Type of the current instance. (Inherited from Object.) | |
| IsValid |
Checks whether a texture with the given parameters would be considered valid.
| |
| OverrideInternal(IntPtr) |
Override internal texture with externally created texture.
| |
| OverrideInternal(Int32, Int32, Int32, TextureFormat, TextureFlags) |
Override internal texture by creating a new 2D texture.
| |
| Read |
Reads the contents of the texture and stores them in memory pointed to by data.
| |
| SetName |
Sets the name of the texture, for debug display purposes.
| |
| ToString |
Returns a String that represents this instance.
(Overrides ObjectToString.) | |
| Update2D |
Updates the data in a 2D texture.
| |
| Update3D |
Updates the data in a 3D texture.
| |
| UpdateCube |
Updates the data in a cube texture.
|
| Name | Description | |
|---|---|---|
| Equality |
Implements the equality operator.
| |
| Inequality |
Implements the inequality operator.
|
| Name | Description | |
|---|---|---|
| MethodInvoke |
Calls the object method by name.
(Defined by ObjectEx.) | |
| PropertyGet(String, Object, Boolean) | Overloaded.
Gets the value of the object property by name.
(Defined by ObjectEx.) | |
| PropertyGetT(String, Object, Boolean) | Overloaded.
Gets the value of the object property by name.
(Defined by ObjectEx.) | |
| PropertySet |
Sets the value of the object property by name.
(Defined by ObjectEx.) |