Tesla Graphics Engine Documentation (January 2012)
Texture2D Class
TeslaTesla.GraphicsTexture2D
Represents a 2-Dimensional texture that has height and width.
Declaration Syntax
C#
public class Texture2D : Texture
Members
All Members Constructors Methods Properties



Icon Member Description
Texture2D()()()()
For ISavable.

Texture2D(Int32, Int32)
Creates a new instance of Texture2D. This creates an empty texture with Color.

Texture2D(Int32, Int32, Boolean, SurfaceFormat)
Creates a new instance of Texture2D. This creates an empty texture.

Texture2D(Int32, Int32, Boolean, SurfaceFormat, DataBuffer)
Creates a new instance of Texture2D.

Texture2D(IRenderSystemProvider, Int32, Int32)
Creates a new instance of Texture2D. This creates an empty texture with Color.

Texture2D(IRenderSystemProvider, Int32, Int32, Boolean, SurfaceFormat)
Creates a new instance of Texture2D. This creates an empty texture.

Texture2D(IRenderSystemProvider, Int32, Int32, Boolean, SurfaceFormat, DataBuffer)
Creates a new instance of Texture2D.

Bounds
Gets the texture bounds, in pixels.

Dimensions
Gets the texture dimensions, identifying the texture resource.
(Overrides Texture.Dimensions.)
Dispose()()()()
Dispose the resource.
(Inherited from GraphicsResource.)
Dispose(Boolean)
Releases unmanaged and - optionally - managed resources
(Inherited from GraphicsResource.)
Equals(Object)
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Finalize()()()()
Releases unmanaged resources and performs other cleanup operations before the Texture2D is reclaimed by garbage collection.
(Overrides GraphicsResource.Finalize()()()().)
Format
Gets the format of the texture resource.
(Overrides Texture.Format.)
GetData<(Of <<'(T>)>>)(array<T>[]()[][])
Gets the data from the texture from the first mip level.

GetData<(Of <<'(T>)>>)(array<T>[]()[][], Int32, Int32)
Gets the data from the texture from the first mip level.

GetData<(Of <<'(T>)>>)(array<T>[]()[][], Int32, Nullable<(Of <<'(Rectangle>)>>), Int32, Int32)
Gets the data from the texture from the first mip level.

GetHashCode()()()()
Serves as a hash function for a particular type.
(Inherited from Object.)
GetType()()()()
Gets the Type of the current instance.
(Inherited from Object.)
Height
Gets the texture height, in pixels.

Implementation
Gets the API-specific implementation of this resource.
(Overrides GraphicsResource.Implementation.)
IsDisposed
Gets if the resource's implementation has been disposed.
(Inherited from GraphicsResource.)
MemberwiseClone()()()()
Creates a shallow copy of the current Object.
(Inherited from Object.)
MipCount
Gets the number of mip map levels in the texture resource.
(Overrides Texture.MipCount.)
Name
Get or sets the name of this resource.
(Inherited from GraphicsResource.)
Read(ISavableReader)
Deserializes the object and populates it from the input.
(Overrides Texture.Read(ISavableReader).)
RenderSystem
Gets or protected sets the render system that created this resource.
(Inherited from GraphicsResource.)
ResourceID
Gets or sets the ResourceID of this resource. Can only be set once, usually by the renderer.
(Inherited from GraphicsResource.)
SetData<(Of <<'(T>)>>)(array<T>[]()[][])
Sets the data to the texture at the first mip level.

SetData<(Of <<'(T>)>>)(array<T>[]()[][], Int32, Int32)
Sets the data to the texture at the first mip level.

SetData<(Of <<'(T>)>>)(array<T>[]()[][], Int32, Nullable<(Of <<'(Rectangle>)>>), Int32, Int32)
Sets the data to the texture.

ToString()()()()
Returns a String that represents the current Object.
(Inherited from Object.)
Width
Gets the texture width, in pixels.

Write(ISavableWriter)
Serializes the object and writes it to the output.
(Overrides Texture.Write(ISavableWriter).)
Inheritance Hierarchy
Object
GraphicsResource
  Texture
    Texture2D
      RenderTarget2D

Assembly: Tesla (Module: Tesla) Version: 0.5.0.0 (0.5.0.0)