GLES20.GlCompressedTexImage2D Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Defines a texture image from a supported compressed-format payload.
[Android.Runtime.Register("glCompressedTexImage2D", "(IIIIIIILjava/nio/Buffer;)V", "")]
public static void GlCompressedTexImage2D(int target, int level, int internalformat, int width, int height, int border, int imageSize, Java.Nio.Buffer? data);
[<Android.Runtime.Register("glCompressedTexImage2D", "(IIIIIIILjava/nio/Buffer;)V", "")>]
static member GlCompressedTexImage2D : int * int * int * int * int * int * int * Java.Nio.Buffer -> unit
Parameters
- target
- Int32
GL_TEXTURE_2D or one of the six GL_TEXTURE_CUBE_MAP face tokens.
- level
- Int32
The nonnegative mipmap level; zero is the base image.
- internalformat
- Int32
The supported extension-defined compressed-format token; core OpenGL ES 2.0 requires no particular compressed format.
- width
- Int32
The image width in texels, satisfying the selected format's size restrictions.
- height
- Int32
The image height in texels, satisfying the selected format's size restrictions.
- border
- Int32
Zero; OpenGL ES texture images have no border.
- imageSize
- Int32
The compressed payload size in bytes, matching the selected format and included levels.
- data
- Buffer
A non-null direct or accessible array-backed input buffer at its current position, with imageSize bytes available. Capacity is not checked; pixel-row alignment does not apply to compressed data. In contexts supporting pixel-unpack buffers, leave that binding zero for this client-memory overload.
- Attributes
Remarks
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.