public class EGLBase10 extends EGLBase
| Modifier and Type | Class and Description |
|---|---|
static class |
EGLBase10.Config |
static class |
EGLBase10.Context
EGLレンダリングコンテキストのホルダークラス
|
static class |
EGLBase10.EglSurface
EGLレンダリングコンテキストに紐付ける描画オブジェクト
|
static class |
EGLBase10.MySurfaceHolder
Android4.1.2だとSurfaceを使えない。
|
EGLBase.IConfig, EGLBase.IContext, EGLBase.IEglSurfaceEGL_CONTEXT_CLIENT_VERSION, EGL_LOCK, EGL_OPENGL_ES2_BIT, EGL_OPENGL_ES3_BIT_KHR, EGL_RECORDABLE_ANDROID| Constructor and Description |
|---|
EGLBase10(int maxClientVersion,
EGLBase10.Context sharedContext,
boolean withDepthBuffer,
int stencilBits,
boolean isRecordable)
コンストラクタ
|
| Modifier and Type | Method and Description |
|---|---|
EGLBase10.EglSurface |
createFromSurface(java.lang.Object nativeWindow)
指定したSurfaceからEglSurfaceを生成する
生成したEglSurfaceをmakeCurrentした状態で戻る
|
EGLBase10.EglSurface |
createOffscreen(int width,
int height)
指定した大きさのオフスクリーンEglSurfaceを生成する
生成したEglSurfaceをmakeCurrentした状態で戻る
|
EGLBase10.Config |
getConfig()
EGLコンフィグを取得する
|
EGLBase10.Context |
getContext()
EGLレンダリングコンテキストを取得する
このEGLBaseインスタンスを使って生成したEglSurfaceをmakeCurrentした状態で
eglGetCurrentContextを呼び出すのと一緒
|
int |
getGlVersion()
GLESバージョンを取得する
|
void |
makeDefault()
EGLレンダリングコンテキストとスレッドの紐付けを解除する
|
java.lang.String |
queryString(int what)
GLESに文字列を問い合わせる
|
void |
release()
関連するリソースを破棄する
|
void |
sync()
eglWaitGLとeglWaitNativeを呼ぶ
eglWaitGL: コマンドキュー内のコマンドをすべて転送する, GLES20.glFinish()と同様の効果
eglWaitNative: GPU側の描画処理が終了するまで実行をブロックする
|
createFrom, createFrom, createFrom, isEGL14Supportedpublic EGLBase10(int maxClientVersion,
EGLBase10.Context sharedContext,
boolean withDepthBuffer,
int stencilBits,
boolean isRecordable)
maxClientVersion - sharedContext - 共有コンテキストを使用する場合に指定withDepthBuffer - isRecordable - true MediaCodec等の録画用Surfaceを使用する場合に、EGL_RECORDABLE_ANDROIDフラグ付きでコンフィグするpublic EGLBase10.EglSurface createFromSurface(java.lang.Object nativeWindow)
createFromSurface in class EGLBasenativeWindow - Surface/SurfaceTexture/SurfaceHolderpublic EGLBase10.EglSurface createOffscreen(int width, int height)
createOffscreen in class EGLBasewidth - PBufferオフスクリーンのサイズ(0以下はだめ)height - public EGLBase10.Context getContext()
getContext in class EGLBasepublic EGLBase10.Config getConfig()
public void makeDefault()
makeDefault in class EGLBasepublic void sync()
public java.lang.String queryString(int what)
queryString in class EGLBasewhat - public int getGlVersion()
getGlVersion in class EGLBase