public class AndroidGraphics extends Object implements Graphics, android.opengl.GLSurfaceView.Renderer
Graphics for Android.Graphics.BufferFormat, Graphics.DisplayMode, Graphics.GraphicsType| Constructor and Description |
|---|
AndroidGraphics(AndroidApplicationBase application,
AndroidApplicationConfiguration config,
ResolutionStrategy resolutionStrategy) |
AndroidGraphics(AndroidApplicationBase application,
AndroidApplicationConfiguration config,
ResolutionStrategy resolutionStrategy,
boolean focusableView) |
| Modifier and Type | Method and Description |
|---|---|
void |
clearManagedCaches() |
Graphics.BufferFormat |
getBufferFormat() |
float |
getDeltaTime() |
float |
getDensity() |
Graphics.DisplayMode |
getDesktopDisplayMode() |
Graphics.DisplayMode[] |
getDisplayModes() |
long |
getFrameId() |
int |
getFramesPerSecond() |
GL20 |
getGL20() |
GL30 |
getGL30() |
int |
getHeight() |
float |
getPpcX() |
float |
getPpcY() |
float |
getPpiX() |
float |
getPpiY() |
float |
getRawDeltaTime() |
Graphics.GraphicsType |
getType() |
android.view.View |
getView() |
int |
getWidth() |
boolean |
isContinuousRendering() |
boolean |
isFullscreen() |
boolean |
isGL30Available() |
Cursor |
newCursor(Pixmap pixmap,
int xHotspot,
int yHotspot) |
void |
onDrawFrame(javax.microedition.khronos.opengles.GL10 gl) |
void |
onPauseGLSurfaceView() |
void |
onResumeGLSurfaceView() |
void |
onSurfaceChanged(javax.microedition.khronos.opengles.GL10 gl,
int width,
int height) |
void |
onSurfaceCreated(javax.microedition.khronos.opengles.GL10 gl,
javax.microedition.khronos.egl.EGLConfig config) |
void |
requestRendering() |
void |
setContinuousRendering(boolean isContinuous) |
void |
setCursor(Cursor cursor) |
boolean |
setDisplayMode(Graphics.DisplayMode displayMode) |
boolean |
setDisplayMode(int width,
int height,
boolean fullscreen) |
void |
setTitle(String title) |
void |
setVSync(boolean vsync) |
boolean |
supportsDisplayModeChange() |
boolean |
supportsExtension(String extension) |
public AndroidGraphics(AndroidApplicationBase application, AndroidApplicationConfiguration config, ResolutionStrategy resolutionStrategy)
public AndroidGraphics(AndroidApplicationBase application, AndroidApplicationConfiguration config, ResolutionStrategy resolutionStrategy, boolean focusableView)
public void onPauseGLSurfaceView()
public void onResumeGLSurfaceView()
public void onSurfaceChanged(javax.microedition.khronos.opengles.GL10 gl,
int width,
int height)
onSurfaceChanged in interface android.opengl.GLSurfaceView.Rendererpublic void onSurfaceCreated(javax.microedition.khronos.opengles.GL10 gl,
javax.microedition.khronos.egl.EGLConfig config)
onSurfaceCreated in interface android.opengl.GLSurfaceView.Rendererpublic void onDrawFrame(javax.microedition.khronos.opengles.GL10 gl)
onDrawFrame in interface android.opengl.GLSurfaceView.Rendererpublic long getFrameId()
getFrameId in interface Graphicspublic float getDeltaTime()
getDeltaTime in interface Graphicspublic float getRawDeltaTime()
getRawDeltaTime in interface Graphicspublic Graphics.GraphicsType getType()
public int getFramesPerSecond()
getFramesPerSecond in interface Graphicspublic void clearManagedCaches()
public android.view.View getView()
public float getDensity()
getDensity in interface Graphicspublic boolean supportsDisplayModeChange()
supportsDisplayModeChange in interface Graphicspublic boolean setDisplayMode(Graphics.DisplayMode displayMode)
setDisplayMode in interface Graphicspublic Graphics.DisplayMode[] getDisplayModes()
getDisplayModes in interface Graphicspublic boolean setDisplayMode(int width,
int height,
boolean fullscreen)
setDisplayMode in interface Graphicspublic Graphics.DisplayMode getDesktopDisplayMode()
getDesktopDisplayMode in interface Graphicspublic Graphics.BufferFormat getBufferFormat()
getBufferFormat in interface Graphicspublic boolean supportsExtension(String extension)
supportsExtension in interface Graphicspublic void setContinuousRendering(boolean isContinuous)
setContinuousRendering in interface Graphicspublic boolean isContinuousRendering()
isContinuousRendering in interface Graphicspublic void requestRendering()
requestRendering in interface Graphicspublic boolean isFullscreen()
isFullscreen in interface Graphicspublic boolean isGL30Available()
isGL30Available in interface GraphicsCopyright © 2015. All rights reserved.