ModelTexture
Description
- Derived from
Abstract base class for IModelTexture implementations.
The default implementation of IModelTexture.ReadTexels delegates to ReadTexels, passing IModelTexture.PreferredTextureFormat and true
.
Public / Constructors
For
5 overloads
Creates a new instance of IModelTexture that has a uniform color.
This method will return one of the following constants, if color in matches:
Otherwise, a new IModelTexture object will be created.
Creates a new instance of IModelTexture that refers to the given texture file.
Creates a new instance of IModelTexture that refers to the given image descriptor.
Creates a new instance of IModelTexture that uses a copy of the the given texture data.
Creates a new instance of IModelTexture that uses the given pixel data.
RenderTarget
Creates a new instance of IModelTexture for the IRenderTarget.Texture resource of a IRenderTarget object in the graphics resource cache.
Protected / Methods
ReadTexels
Reads the pixel data into a texel buffer.
- IOException
-
If an I/O error has occurred while reading the pixel data.