Python API 2.0 Reference
OpenMayaRender.MTextureDescription Class Reference
+ Inheritance diagram for OpenMayaRender.MTextureDescription:

Public Member Functions

def __init__ ()
 
def setToDefault2DTexture ()
 

Static Public Member Functions

def __new__ ()
 

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 = property(...)
 
 fBytesPerRow = property(...)
 
 fBytesPerSlice = property(...)
 
 fDepth = property(...)
 
 fEnvMapType = property(...)
 
 fFormat = property(...)
 
 fHeight = property(...)
 
 fMipmaps = property(...)
 
 fTextureType = property(...)
 
 fWidth = property(...)
 

Detailed Description

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

Constructor & Destructor Documentation

def OpenMayaRender.MTextureDescription.__init__ ( )
Initialize self.  See help(type(self)) for accurate signature.

Member Function Documentation

def OpenMayaRender.MTextureDescription.__new__ ( )
static
Create and return a new object.  See help(type) for accurate signature.
def OpenMayaRender.MTextureDescription.setToDefault2DTexture ( )
setToDefault2DTexture() -> self

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

Property Documentation

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