public class EGLBase14 extends EGLBase
| Modifier and Type | Class and Description |
|---|---|
static class |
EGLBase14.Config |
static class |
EGLBase14.Context
EGLレンダリングコンテキストのホルダークラス
|
static class |
EGLBase14.EglSurface
EGLレンダリングコンテキストに紐付ける描画オブジェクト
|
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 |
|---|
EGLBase14(int maxClientVersion,
EGLBase14.Context sharedContext,
boolean withDepthBuffer,
int stencilBits,
boolean isRecordable)
コンストラクタ
|
| Modifier and Type | Method and Description |
|---|---|
EGLBase14.EglSurface |
createFromSurface(java.lang.Object nativeWindow)
指定したSurfaceからEglSurfaceを生成する
生成したEglSurfaceをmakeCurrentした状態で戻る
|
EGLBase14.EglSurface |
createOffscreen(int width,
int height)
指定した大きさのオフスクリーンEglSurfaceを生成する
生成したEglSurfaceをmakeCurrentした状態で戻る
|
EGLBase14.Config |
getConfig()
EGLコンフィグを取得する
|
EGLBase14.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 EGLBase14(int maxClientVersion,
EGLBase14.Context sharedContext,
boolean withDepthBuffer,
int stencilBits,
boolean isRecordable)
maxClientVersion - sharedContext - withDepthBuffer - isRecordable - public EGLBase14.EglSurface createFromSurface(java.lang.Object nativeWindow)
createFromSurface in class EGLBasenativeWindow - Surface/SurfaceTexture/SurfaceHolderpublic EGLBase14.EglSurface createOffscreen(int width, int height)
createOffscreen in class EGLBasewidth - PBufferオフスクリーンのサイズ(0以下はだめ)height - public java.lang.String queryString(int what)
queryString in class EGLBasewhat - public int getGlVersion()
getGlVersion in class EGLBasepublic EGLBase14.Context getContext()
getContext in class EGLBasepublic EGLBase14.Config getConfig()
public void makeDefault()
makeDefault in class EGLBase