WEBGLCompressedTexturePvrtc class
The extension is part of the WebGL API and exposes four PVRTC
compressed texture formats.
Compressed textures reduce the amount of memory needed to store
a texture on the GPU, allowing for higher resolution textures or
more of the same resolution textures.
WebGL extensions are available using the
WebGLRenderingContext.getExtension()
method. For more
information, see also Using Extensions in the WebGL tutorial.
Note: PVRTC is typically only available on mobile devices with PowerVR chipsets. It is used in all generations of the iPhone, iPod Touch and iPad and supported on certain Android devices that use a PowerVR GPU.
This extension is available to both, WebGL1 and WebGL2
contexts.
Note: On iOS devices, this extension is named
WEBKIT_WEBGL_compressed_texture_pvrtc
.
- Annotations
-
- @JS('WEBGL_compressed_texture_pvrtc')
- @staticInterop
Constructors
- WEBGLCompressedTexturePvrtc()
-
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- compressedRgbaPvrtc2bppv1Img → int
-
no setter
- compressedRgbaPvrtc4bppv1Img → int
-
no setter
- compressedRgbPvrtc2bppv1Img → int
-
no setter
- compressedRgbPvrtc4bppv1Img → int
-
no setter