Checks if the given width
and height
are a power of two.
Useful for checking texture dimensions.
name | type | description |
---|---|---|
width | number |
The width. |
height | number |
The height. |
true
if width
and height
are a power of two, otherwise false
.