Click or drag to resize

Texture Class

Represents a loaded texture.
Inheritance Hierarchy
SystemObject
  Internal.SharpBgfxTexture

Namespace:  Internal.SharpBgfx
Assembly:  NeoAxis.Core (in NeoAxis.Core.dll) Version: 2024.1.1.0 (2024.1.1.0)
Syntax
C#
public sealed class Texture : IDisposable, 
	IEquatable<Texture>

The Texture type exposes the following members.

Properties
  NameDescription
Public propertyArrayLayers
The number of texture array layers (for 2D or cube textures).
Public propertyBitsPerPixel
The number of bits per pixel.
Public propertyDepth
The depth of the texture, if 3D.
Public propertyFormat
The format of the image data.
Public propertyHeight
The height of the texture.
Public propertyIsCubeMap
Indicates whether the texture is a cubemap.
Public propertyMipLevels
The number of mip levels in the texture.
Public propertySizeInBytes
The size of the entire texture, in bytes.
Public propertyWidth
The width of the texture.
Top
Methods
  NameDescription
Public methodBlitTo(UInt16, Texture, Int32, Int32, Int32, Int32, Int32, Int32)
Blits the contents of the texture to another texture.
Public methodBlitTo(Encoder, UInt16, Texture, Int32, Int32, Int32, Int32, Int32, Int32)
Blits the contents of the texture to another texture.
Public methodBlitTo(UInt16, Texture, Int32, Int32, Int32, Int32, Int32, Int32, Int32, Int32, Int32, Int32, Int32)
Blits the contents of the texture to another texture.
Public methodBlitTo(Encoder, UInt16, Texture, Int32, Int32, Int32, Int32, Int32, Int32, Int32, Int32, Int32, Int32, Int32)
Blits the contents of the texture to another texture.
Public methodStatic memberCreate2D(BackbufferRatio, Boolean, Int32, TextureFormat, TextureFlags)
Creates a new 2D texture that scales with backbuffer size.
Public methodStatic memberCreate2D(Int32, Int32, Boolean, Int32, TextureFormat, TextureFlags, NullableMemoryBlock)
Creates a new 2D texture.
Public methodStatic memberCreate3D
Creates a new 3D texture.
Public methodStatic memberCreateCube
Creates a new cube texture.
Public methodDispose
Releases the texture.
Public methodEquals(Object)
Determines whether the specified Object is equal to this instance.
(Overrides ObjectEquals(Object).)
Public methodEquals(Texture)
Determines whether the specified object is equal to this instance.
Public methodStatic memberFromFile
Creates a new texture from a file loaded in memory.
Public methodGetDirectAccess
Returns a direct pointer to the texture memory.
Public methodGetHashCode
Returns a hash code for this instance.
(Overrides ObjectGetHashCode.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodStatic memberIsValid
Checks whether a texture with the given parameters would be considered valid.
Public methodOverrideInternal(IntPtr)
Override internal texture with externally created texture.
Public methodOverrideInternal(Int32, Int32, Int32, TextureFormat, TextureFlags)
Override internal texture by creating a new 2D texture.
Public methodRead
Reads the contents of the texture and stores them in memory pointed to by data.
Public methodSetName
Sets the name of the texture, for debug display purposes.
Public methodToString
Returns a String that represents this instance.
(Overrides ObjectToString.)
Public methodUpdate2D
Updates the data in a 2D texture.
Public methodUpdate3D
Updates the data in a 3D texture.
Public methodUpdateCube
Updates the data in a cube texture.
Top
Operators
  NameDescription
Public operatorStatic memberEquality
Implements the equality operator.
Public operatorStatic memberInequality
Implements the inequality operator.
Top
Extension Methods
See Also