Click or drag to resize

Texture Methods

The Texture type exposes the following members.

Methods
 NameDescription
Public methodBlitTo(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 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 methodGetTypeGets 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
Extension Methods
 NameDescription
Public Extension MethodMethodInvoke Calls the object method by name.
(Defined by ObjectEx)
Public Extension MethodPropertyGet Gets the value of the object property by name.
(Defined by ObjectEx)
Public Extension MethodPropertyGetT Gets the value of the object property by name.
(Defined by ObjectEx)
Public Extension MethodPropertySet Sets the value of the object property by name.
(Defined by ObjectEx)
Top
See Also