Java 类com.badlogic.gdx.backends.android.surfaceview.ResolutionStrategy 实例源码

项目:ingress-indonesia-dev    文件:AndroidApplication.java   
public View initializeForView(ApplicationListener paramApplicationListener, AndroidApplicationConfiguration paramAndroidApplicationConfiguration)
{
  if (paramAndroidApplicationConfiguration.resolutionStrategy == null);
  for (Object localObject = new FillResolutionStrategy(); ; localObject = paramAndroidApplicationConfiguration.resolutionStrategy)
  {
    this.graphics = new AndroidGraphics(this, paramAndroidApplicationConfiguration, (ResolutionStrategy)localObject);
    this.input = new AndroidInput(this, this.graphics.view, paramAndroidApplicationConfiguration);
    this.audio = new AndroidAudio(this, paramAndroidApplicationConfiguration);
    this.files = new AndroidFiles(getAssets(), getFilesDir().getAbsolutePath());
    this.listener = paramApplicationListener;
    this.handler = new Handler();
    Gdx.app = this;
    Gdx.input = getInput();
    Gdx.audio = getAudio();
    Gdx.files = getFiles();
    Gdx.graphics = getGraphics();
    createWakeLock(paramAndroidApplicationConfiguration);
    return this.graphics.getView();
  }
}
项目:ingress-indonesia-dev    文件:AndroidGraphics.java   
private View createGLSurfaceView(Activity paramActivity, boolean paramBoolean, ResolutionStrategy paramResolutionStrategy)
{
  if ((paramBoolean) && (checkGL20()))
  {
    GdxEglConfigChooser20 localGdxEglConfigChooser20 = getEglConfigChooser20();
    GLSurfaceView20 localGLSurfaceView20 = new GLSurfaceView20(paramActivity, paramResolutionStrategy);
    if (localGdxEglConfigChooser20 != null)
      localGLSurfaceView20.setEGLConfigChooser(localGdxEglConfigChooser20);
    while (true)
    {
      localGLSurfaceView20.setRenderer(this);
      return localGLSurfaceView20;
      localGLSurfaceView20.setEGLConfigChooser(this.config.r, this.config.g, this.config.b, this.config.a, this.config.depth, this.config.stencil);
    }
  }
  return null;
}
项目:ZombieInvadersVR    文件:CardBoardGraphics.java   
public CardBoardGraphics (AndroidApplicationBase application, AndroidApplicationConfiguration config,
   ResolutionStrategy resolutionStrategy, boolean focusableView) {
   this.config = config;
   this.app = application;
   view = createCardBoardView(application);
   preserveEGLContextOnPause();
   if (focusableView) {
      view.setFocusable(true);
      view.setFocusableInTouchMode(true);
   }
}
项目:libgdxcn    文件:AndroidGraphics.java   
public AndroidGraphics (AndroidApplicationBase application, AndroidApplicationConfiguration config,
    ResolutionStrategy resolutionStrategy, boolean focusableView) {
    this.config = config;
    this.app = application;
    view = createGLSurfaceView(application, resolutionStrategy);
    preserveEGLContextOnPause();
    if (focusableView) {
        view.setFocusable(true);
        view.setFocusableInTouchMode(true);
    }
}
项目:mini2Dx    文件:AndroidMini2DxGraphics.java   
public AndroidMini2DxGraphics(AndroidMini2DxGame application, AndroidMini2DxConfig config,
        ResolutionStrategy resolutionStrategy, boolean focusableView) {
    super(application, config, resolutionStrategy, focusableView);
    maximumDelta = 1f / config.targetFPS;
    targetTimestep = config.targetTimestep;
    game = application;
}
项目:ingress-indonesia-dev    文件:AndroidGraphics.java   
public AndroidGraphics(AndroidApplication paramAndroidApplication, AndroidApplicationConfiguration paramAndroidApplicationConfiguration, ResolutionStrategy paramResolutionStrategy)
{
  this.config = paramAndroidApplicationConfiguration;
  this.view = createGLSurfaceView(paramAndroidApplication, paramAndroidApplicationConfiguration.useGL20, paramResolutionStrategy);
  setPreserveContext(this.view);
  this.view.setFocusable(true);
  this.view.setFocusableInTouchMode(true);
  this.app = paramAndroidApplication;
}
项目:ZombieInvadersVR    文件:CardBoardGraphics.java   
public CardBoardGraphics (AndroidApplicationBase application, AndroidApplicationConfiguration config,
   ResolutionStrategy resolutionStrategy) {
   this(application, config, resolutionStrategy, true);
}
项目:CodeSamples    文件:ARRenderer.java   
public ARRenderer(AndroidApplicationBase application, AndroidApplicationConfiguration config, ResolutionStrategy resolutionStrategy) {
    super(application, config, resolutionStrategy);
}
项目:CodeSamples    文件:SimpleRenderer.java   
public SimpleRenderer(Context context, AndroidApplicationBase application, AndroidApplicationConfiguration config, ResolutionStrategy resolutionStrategy) {
    super(application, config, resolutionStrategy);
    this.context = context;                         // Save Specified Context
}
项目:libgdxcn    文件:AndroidGraphics.java   
public AndroidGraphics (AndroidApplicationBase application, AndroidApplicationConfiguration config,
    ResolutionStrategy resolutionStrategy) {
    this(application, config, resolutionStrategy, true);
}
项目:libgdxcn    文件:AndroidGraphicsLiveWallpaper.java   
public AndroidGraphicsLiveWallpaper (AndroidLiveWallpaper lwp, AndroidApplicationConfiguration config,
    ResolutionStrategy resolutionStrategy) {
    super(lwp, config, resolutionStrategy, false);
}
项目:mini2Dx    文件:AndroidMini2DxGraphics.java   
public AndroidMini2DxGraphics(AndroidMini2DxGame application, AndroidMini2DxConfig config,
        ResolutionStrategy resolutionStrategy) {
    this(application, config, resolutionStrategy, true);
}