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

<texture>.getMagFilter

Returns the magnification filter mode

<texture>.getMagFilter()  

Remarks

This command will return the magnification filter mode that was specified with the filter command.

Return Value

One of the following values:

viz.LINEAR
viz.LINEAR_MIPMAP_LINEAR
viz.LINEAR_MIPMAP_NEAREST
viz.NEAREST
viz.NEAREST_MIPMAP_LINEAR
viz.NEAREST_MIPMAP_NEAREST

Example

if tex.getMagFilter() == viz.LINEAR:
    print('Using linear filtering')

See also

<texture>.filter