Sdílet prostřednictvím


GLUtils.TexImage2D Method

Definition

Overloads

TexImage2D(Int32, Int32, Bitmap, Int32)

A version of texImage2D that determines the internalFormat and type automatically.

TexImage2D(Int32, Int32, Int32, Bitmap, Int32)

Calls glTexImage2D() on the current OpenGL context.

TexImage2D(Int32, Int32, Int32, Bitmap, Int32, Int32)

A version of texImage2D() that takes an explicit type parameter as defined by the OpenGL ES specification.

TexImage2D(Int32, Int32, Bitmap, Int32)

A version of texImage2D that determines the internalFormat and type automatically.

[Android.Runtime.Register("texImage2D", "(IILandroid/graphics/Bitmap;I)V", "")]
public static void TexImage2D (int target, int level, Android.Graphics.Bitmap? bitmap, int border);
[<Android.Runtime.Register("texImage2D", "(IILandroid/graphics/Bitmap;I)V", "")>]
static member TexImage2D : int * int * Android.Graphics.Bitmap * int -> unit

Parameters

target
Int32

target

level
Int32

level

bitmap
Bitmap

bitmap

border
Int32

border

Attributes

Remarks

A version of texImage2D that determines the internalFormat and type automatically.

Java documentation for android.opengl.GLUtils.texImage2D(int, int, android.graphics.Bitmap, int).

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

TexImage2D(Int32, Int32, Int32, Bitmap, Int32)

Calls glTexImage2D() on the current OpenGL context.

[Android.Runtime.Register("texImage2D", "(IIILandroid/graphics/Bitmap;I)V", "")]
public static void TexImage2D (int target, int level, int internalformat, Android.Graphics.Bitmap? bitmap, int border);
[<Android.Runtime.Register("texImage2D", "(IIILandroid/graphics/Bitmap;I)V", "")>]
static member TexImage2D : int * int * int * Android.Graphics.Bitmap * int -> unit

Parameters

target
Int32

target

level
Int32

level

internalformat
Int32

internalformat

bitmap
Bitmap

bitmap

border
Int32

border

Attributes

Remarks

Calls glTexImage2D() on the current OpenGL context. If no context is current the behavior is the same as calling glTexImage2D() with no current context, that is, eglGetError() will return the appropriate error. Unlike glTexImage2D() bitmap cannot be null and will raise an exception in that case. All other parameters are identical to those used for glTexImage2D().

NOTE: this method doesn't change GL_UNPACK_ALIGNMENT, you must make sure to set it properly according to the supplied bitmap.

Whether or not bitmap can have non power of two dimensions depends on the current OpenGL context. Always check glGetError() some time after calling this method, just like when using OpenGL directly.

Java documentation for android.opengl.GLUtils.texImage2D(int, int, int, android.graphics.Bitmap, int).

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

TexImage2D(Int32, Int32, Int32, Bitmap, Int32, Int32)

A version of texImage2D() that takes an explicit type parameter as defined by the OpenGL ES specification.

[Android.Runtime.Register("texImage2D", "(IIILandroid/graphics/Bitmap;II)V", "")]
public static void TexImage2D (int target, int level, int internalformat, Android.Graphics.Bitmap? bitmap, int type, int border);
[<Android.Runtime.Register("texImage2D", "(IIILandroid/graphics/Bitmap;II)V", "")>]
static member TexImage2D : int * int * int * Android.Graphics.Bitmap * int * int -> unit

Parameters

target
Int32

target

level
Int32

level

internalformat
Int32

internalformat

bitmap
Bitmap

bitmap

type
Int32

type

border
Int32

border

Attributes

Remarks

A version of texImage2D() that takes an explicit type parameter as defined by the OpenGL ES specification. The actual type and internalformat of the bitmap must be compatible with the specified type and internalformat parameters.

Java documentation for android.opengl.GLUtils.texImage2D(int, int, int, android.graphics.Bitmap, int, int).

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