Vizard 8 » Command Index » Vizard objects » texture » <texture>.getPixelFormat
8.1

<texture>.getPixelFormat

Returns the pxiel format of the texture

<texture>.getPixelFormat()  

Remarks

The pixel format refers to how the raw image data is interpreted by the graphics card.

For example, the format viz.TEX_RGB refers to a 24-bit color texture, where the color components of the pixel data are ordered red, green, then blue.

Return Value

One of the following values:

viz.TEX_RGB
viz.TEX_RGBA
viz.TEX_RGB_16
viz.TEX_RGBA_16
viz.TEX_RGB_32
viz.TEX_RGBA_32
viz.TEX_DEPTH
viz.TEX_DEPTH_16
viz.TEX_DEPTH_24
viz.TEX_DEPTH_32
viz.TEX_LUMINANCE
viz.TEX_ALPHA
viz.TEX_LUMINANCE_ALPHA
viz.TEX_BGR
viz.TEX_BGRA
viz.TEX_DEPTH_STENCIL