Python API 2.0 Reference: OpenMayaRender.MTextureDescription Class Reference

+ Inheritance diagram for OpenMayaRender.MTextureDescription:

Public Member Functions

__init__ ()
 
setToDefault2DTexture ()
 

Static Public Attributes

int kCubeMap = 4
 
int kDepthTexture = 6
 
int kEnvCrossHoriz = 5
 
int kEnvCrossVert = 4
 
int kEnvCubemap = 6
 
int kEnvHemiSphere = 2
 
int kEnvLatLong = 3
 
int kEnvNone = 0
 
int kEnvSphere = 1
 
int kImage1D = 0
 
int kImage1DArray = 1
 
int kImage2D = 2
 
int kImage2DArray = 3
 
int kNumberOfEnvMapTypes = 7
 
int kNumberOfTextureTypes = 7
 
int kVolumeTexture = 5
 

Properties

 fArraySlices
 
 fBytesPerRow
 
 fBytesPerSlice
 
 fDepth
 
 fEnvMapType
 
 fFormat
 
 fHeight
 
 fMipmaps
 
 fTextureType
 
 fWidth
 

Detailed Description

Texture description. Provides sufficient information to describe how a block of data can be interpreted as a texture.

Constructor & Destructor Documentation

OpenMayaRender.MTextureDescription.__init__ ( )
x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Member Function Documentation

OpenMayaRender.MTextureDescription.setToDefault2DTexture ( )
setToDefault2DTexture() -> self

Utility to set texture description to describe a 0 size 2-dimensional texture.

Property Documentation

OpenMayaRender.MTextureDescription.fArraySlices
static
 Number of array slices. e.g. 6 would be required for a cube-map
OpenMayaRender.MTextureDescription.fBytesPerRow
static
 Number of bytes in a row of pixels
OpenMayaRender.MTextureDescription.fBytesPerSlice
static
 Number of bytes in a slice (if an array)
OpenMayaRender.MTextureDescription.fDepth
static
 Depth in pixels. A 2D texture has depth of 1.
OpenMayaRender.MTextureDescription.fEnvMapType
static
 Type of environment mapping
OpenMayaRender.MTextureDescription.fFormat
static
 Pixel / raster format
OpenMayaRender.MTextureDescription.fHeight
static
 Height in pixels
OpenMayaRender.MTextureDescription.fMipmaps
static
 Number of mipmap levels. 0 means the entire mipmap chain.
OpenMayaRender.MTextureDescription.fTextureType
static
 Type of texture
OpenMayaRender.MTextureDescription.fWidth
static
 Width in pixels