Open topic with navigation
<texture>.getCompression
Returns the compression mode
<texture>.getCompression() |
|
Remarks
This command will return the current compression mode of the texture.
Return Value
One of the following values:
viz.COMPRESSION_DEFAULT
viz.COMPRESSION_ARB
viz.COMPRESSION_DXT1
viz.COMPRESSION_DXT3
viz.COMPRESSION_DXT5
Example
if texture.getCompression() == viz.COMPRESSION_ARB:
print('Using OpenGL compression')