語言

GLUtils.TexSubImage2D 方法

定義

多載

名稱 Description
TexSubImage2D(Int32, Int32, Int32, Int32, Bitmap)

在目前 OpenGL 情境下呼叫 glTexSubImage2D()

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

texSubImage2D() 的一個版本,採用 OpenGL ES 規範定義的明確型別參數。

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

在目前 OpenGL 情境下呼叫 glTexSubImage2D()

[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

參數

target
Int32

目標

level
Int32

水平儀

xoffset
Int32

偏移量

yoffset
Int32

偏移量

bitmap
Bitmap

點陣圖

屬性

備註

在目前 OpenGL 情境下呼叫 glTexSubImage2D() 若目前沒有上下文,行為與呼叫 glTexSubImage2D() 無上下文相同,也就是說,eglGetError() 會回傳相應錯誤。 與 glTexSubImage2D() 不同,位圖不能為 null,否則會觸發例外。 其他參數與 glTexSubImage2D() 所用的參數相同。

注意:此方法不會改變GL_UNPACK_ALIGNMENT,您必須確保依照提供的位圖正確設定。

位圖是否能擁有非二維冪次,取決於目前 OpenGL 的情境。 呼叫此方法後,請在一段時間內檢查 glGetError(),就像直接使用 OpenGL 一樣。

Java 文件 android.opengl.GLUtils.texSubImage2D(int, int, int, int, android.graphics.Bitmap)。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於

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

texSubImage2D() 的一個版本,採用 OpenGL ES 規範定義的明確型別參數。

[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

參數

target
Int32

目標

level
Int32

水平儀

xoffset
Int32

偏移量

yoffset
Int32

偏移量

bitmap
Bitmap

點陣圖

format
Int32
type
Int32

型別

屬性

備註

texSubImage2D() 的一個版本,採用 OpenGL ES 規範定義的明確型別參數。

Java 文件 android.opengl.GLUtils.texSubImage2D(int, int, int, int, android.graphics.Bitmap, int, int)。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於