Partager via


ETC1Util.LoadTexture Method

Definition

Overloads

LoadTexture(Int32, Int32, Int32, Int32, Int32, ETC1Util+ETC1Texture)

Convenience method to load an ETC1 texture whether or not the active OpenGL context supports the ETC1 texture compression format.

LoadTexture(Int32, Int32, Int32, Int32, Int32, Stream)

Convenience method to load an ETC1 texture whether or not the active OpenGL context supports the ETC1 texture compression format.

LoadTexture(Int32, Int32, Int32, Int32, Int32, ETC1Util+ETC1Texture)

Convenience method to load an ETC1 texture whether or not the active OpenGL context supports the ETC1 texture compression format.

[Android.Runtime.Register("loadTexture", "(IIIIILandroid/opengl/ETC1Util$ETC1Texture;)V", "")]
public static void LoadTexture (int target, int level, int border, int fallbackFormat, int fallbackType, Android.Opengl.ETC1Util.ETC1Texture? texture);
[<Android.Runtime.Register("loadTexture", "(IIIIILandroid/opengl/ETC1Util$ETC1Texture;)V", "")>]
static member LoadTexture : int * int * int * int * int * Android.Opengl.ETC1Util.ETC1Texture -> unit

Parameters

target
Int32

the texture target.

level
Int32

the texture level

border
Int32

the border size. Typically 0.

fallbackFormat
Int32

the format to use if ETC1 texture compression is not supported. Must be GL_RGB.

fallbackType
Int32

the type to use if ETC1 texture compression is not supported. Can be either GL_UNSIGNED_SHORT_5_6_5, which implies 16-bits-per-pixel, or GL_UNSIGNED_BYTE, which implies 24-bits-per-pixel.

texture
ETC1Util.ETC1Texture

the ETC1 to load.

Attributes

Remarks

Java documentation for android.opengl.ETC1Util.loadTexture(int, int, int, int, int, android.opengl.ETC1Texture).

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.

Applies to

LoadTexture(Int32, Int32, Int32, Int32, Int32, Stream)

Convenience method to load an ETC1 texture whether or not the active OpenGL context supports the ETC1 texture compression format.

[Android.Runtime.Register("loadTexture", "(IIIIILjava/io/InputStream;)V", "")]
public static void LoadTexture (int target, int level, int border, int fallbackFormat, int fallbackType, System.IO.Stream? input);
[<Android.Runtime.Register("loadTexture", "(IIIIILjava/io/InputStream;)V", "")>]
static member LoadTexture : int * int * int * int * int * System.IO.Stream -> unit

Parameters

target
Int32

the texture target.

level
Int32

the texture level

border
Int32

the border size. Typically 0.

fallbackFormat
Int32

the format to use if ETC1 texture compression is not supported. Must be GL_RGB.

fallbackType
Int32

the type to use if ETC1 texture compression is not supported. Can be either GL_UNSIGNED_SHORT_5_6_5, which implies 16-bits-per-pixel, or GL_UNSIGNED_BYTE, which implies 24-bits-per-pixel.

input
Stream

the input stream containing an ETC1 texture in PKM format.

Attributes

Exceptions

Remarks

Convenience method to load an ETC1 texture whether or not the active OpenGL context supports the ETC1 texture compression format.

Java documentation for android.opengl.ETC1Util.loadTexture(int, int, int, int, int, java.io.InputStream).

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.

Applies to