public class EGL11Device extends Object implements IEGLDevice
修飾子とタイプ | メソッドと説明 |
---|---|
boolean |
bind()
GL処理対象としてバインドする
|
void |
createPBufferSurface(int width,
int height)
オフスクリーンレンダリング用のサーフェイスを生成する。
|
void |
dispose()
開放を行う
|
android.content.Context |
getApplicationContext()
ApplicationContextを取得する
|
android.content.res.AssetManager |
getAssetManager()
AssetManagerを取得する
|
IEGLContextGroup |
getContextGroup()
管理しているContextGroupを取得する
|
int |
getSurfaceHeight()
サーフェイスの大きさをピクセル単位で取得する
|
int |
getSurfaceWidth()
サーフェイスの大きさをピクセル単位で取得する
|
boolean |
hasContext()
レンダリング可能なEGLContextを持っていたらtrue
|
boolean |
hasSurface()
レンダリング対象として有効なEGLSurfaceを持っていればtrue
|
boolean |
hasSurfaceDestroyRequest()
廃棄リクエストを持っているならばtrue
trueの場合、速やかにunbindとdestroyを行わなければならない |
boolean |
isBinded()
いずれかのスレッドにバインドされていたらtrue
|
boolean |
isBindedThread()
実行しているスレッドがbindを行ったthreadであればtrueを返す
bindされていない、もしくは別スレッドでbindされていたらfalseを返す。 |
boolean |
isWindowDevice()
描画用のWindowを持っているならtrue
|
void |
onSurfaceChanged(Object native_window,
int newWidth,
int newHeight)
サーフェイスサイズが変更された
|
void |
onSurfaceDestroyed()
サーフェイスが廃棄された
|
void |
swapBuffers()
eglSwapBuffersを呼び出す
|
void |
unbind()
GL処理対象からアンバインドする
|
public android.content.Context getApplicationContext()
IEGLDevice
getApplicationContext
インタフェース内 IEGLDevice
public android.content.res.AssetManager getAssetManager()
IEGLDevice
getAssetManager
インタフェース内 IEGLDevice
public boolean hasContext()
IEGLDevice
hasContext
インタフェース内 IEGLDevice
public boolean hasSurface()
hasSurface
インタフェース内 IEGLDevice
public void createPBufferSurface(int width, int height)
createPBufferSurface
インタフェース内 IEGLDevice
width
- サーフェイスの幅ピクセル数height
- サーフェイスの高さピクセル数public boolean bind()
IEGLDevice
bind
インタフェース内 IEGLDevice
public void unbind()
IEGLDevice
unbind
インタフェース内 IEGLDevice
public int getSurfaceWidth()
IEGLDevice
getSurfaceWidth
インタフェース内 IEGLDevice
public int getSurfaceHeight()
IEGLDevice
getSurfaceHeight
インタフェース内 IEGLDevice
public void dispose()
dispose
インタフェース内 IEGLDevice
public boolean isWindowDevice()
isWindowDevice
インタフェース内 IEGLDevice
public IEGLContextGroup getContextGroup()
getContextGroup
インタフェース内 IEGLDevice
public boolean isBinded()
isBinded
インタフェース内 IEGLDevice
public boolean isBindedThread()
IEGLDevice
isBindedThread
インタフェース内 IEGLDevice
public boolean hasSurfaceDestroyRequest()
hasSurfaceDestroyRequest
インタフェース内 IEGLDevice
public void onSurfaceChanged(Object native_window, int newWidth, int newHeight)
onSurfaceChanged
インタフェース内 IEGLDevice
native_window
- 描画対象のウィンドウnewWidth
- サーフェイス幅newHeight
- サーフェイス高さpublic void onSurfaceDestroyed()
onSurfaceDestroyed
インタフェース内 IEGLDevice
public void swapBuffers()
swapBuffers
インタフェース内 IEGLDevice