Android.Opengl.GLUtils.TexSubImage2D Method
Calls glTexSubImage2D() on the current OpenGL context.

Syntax

[Android.Runtime.Register("texSubImage2D", "(IIIILandroid/graphics/Bitmap;)V", "")]
public static void TexSubImage2D (int target, int level, int xoffset, int yoffset, Android.Graphics.Bitmap bitmap)

Parameters

target
Documentation for this section has not yet been entered.
level
Documentation for this section has not yet been entered.
xoffset
Documentation for this section has not yet been entered.
yoffset
Documentation for this section has not yet been entered.
bitmap
Documentation for this section has not yet been entered.

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.

[Android Documentation]

Requirements

Namespace: Android.Opengl
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1