Compartir a través de


GLUtils.TexSubImage2D Method

Definition

Overloads

TexSubImage2D(Int32, Int32, Int32, Int32, Bitmap)

Calls glTexSubImage2D() on the current OpenGL context.

TexSubImage2D(Int32, Int32, Int32, Int32, Bitmap, Int32, Int32)

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

TexSubImage2D(Int32, Int32, Int32, Int32, Bitmap)

Calls glTexSubImage2D() on the current OpenGL context.

[Android.Runtime.Register("texSubImage2D", "(IIIILandroid/graphics/Bitmap;)V", "")]
public static void TexSubImage2D (int target, int level, int xoffset, int yoffset, Android.Graphics.Bitmap? bitmap);
[<Android.Runtime.Register("texSubImage2D", "(IIIILandroid/graphics/Bitmap;)V", "")>]
static member TexSubImage2D : int * int * int * int * Android.Graphics.Bitmap -> unit

Parameters

target
Int32

target

level
Int32

level

xoffset
Int32

xoffset

yoffset
Int32

yoffset

bitmap
Bitmap

bitmap

Attributes

Remarks

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

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.texSubImage2D(int, int, int, int, android.graphics.Bitmap).

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

TexSubImage2D(Int32, Int32, Int32, Int32, Bitmap, Int32, Int32)

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

[Android.Runtime.Register("texSubImage2D", "(IIIILandroid/graphics/Bitmap;II)V", "")]
public static void TexSubImage2D (int target, int level, int xoffset, int yoffset, Android.Graphics.Bitmap? bitmap, int format, int type);
[<Android.Runtime.Register("texSubImage2D", "(IIIILandroid/graphics/Bitmap;II)V", "")>]
static member TexSubImage2D : int * int * int * int * Android.Graphics.Bitmap * int * int -> unit

Parameters

target
Int32

target

level
Int32

level

xoffset
Int32

xoffset

yoffset
Int32

yoffset

bitmap
Bitmap

bitmap

format
Int32
type
Int32

type

Attributes

Remarks

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

Java documentation for android.opengl.GLUtils.texSubImage2D(int, 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