Creates a new instance of Texture3D. This creates an empty texture.
Declaration Syntax
C# |
public Texture3D( IRenderSystemProvider renderSystem, int width, int height, int depth, bool genMipMap, SurfaceFormat format )
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.
- depth (Int32)
- The depth 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.
Exceptions
Exception | Condition |
---|---|
TeslaException | Thrown if creating the underlying texture fails or the render
system was not initialized. |
Assembly: Tesla (Module: Tesla) Version: 0.5.0.0 (0.5.0.0)