Tesla Graphics Engine Documentation (January 2012)
Texture2D Constructor (renderSystem, width, height, genMipMap, format, initialData)
TeslaTesla.GraphicsTexture2DTexture2D(IRenderSystemProvider, Int32, Int32, Boolean, SurfaceFormat, DataBuffer)
Creates a new instance of Texture2D.
Declaration Syntax
C#
public Texture2D(
	IRenderSystemProvider renderSystem,
	int width,
	int height,
	bool genMipMap,
	SurfaceFormat format,
	DataBuffer initialData
)
Parameters
renderSystem (IRenderSystemProvider)
Render system used to create the underlying implementation.
width (Int32)
The width of the texture in pixels.
height (Int32)
The height of the texture in pixels.
genMipMap (Boolean)
Whether or not mip maps should be generated. If so, the levels are created.
format (SurfaceFormat)
The surface format.
initialData (DataBuffer)
The data to initialize the first mip level to.
Exceptions
Exception Condition
ArgumentNullException Thrown if the render system is null.
TeslaException Thrown if creating or writing to the underlying texture fails.

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