public class

ComponentSizeChooser

extends Object
implements EGLConfigChooser
java.lang.Object
   ↳ org.anddev.andengine.opengl.view.ComponentSizeChooser

Class Overview

(c) 2010 Nicolas Gramlich (c) 2011 Zynga Inc.

Summary

Fields
protected int mAlphaSize
protected int mBlueSize
protected final int[] mConfigSpec
protected int mDepthSize
protected int mGreenSize
protected int mRedSize
protected int mStencilSize
Public Constructors
ComponentSizeChooser(int pRedSize, int pGreenSize, int pBlueSize, int pAlphaSize, int pDepthSize, int pStencilSize)
Public Methods
EGLConfig chooseConfig(EGL10 pEGL, EGLDisplay pEGLDisplay, EGLConfig[] pEGLConfigs)
EGLConfig chooseConfig(EGL10 pEGL, EGLDisplay pEGLDisplay)
Choose a configuration from the list.
[Expand]
Inherited Methods
From class java.lang.Object
From interface org.anddev.andengine.opengl.view.EGLConfigChooser

Fields

protected int mAlphaSize

protected int mBlueSize

protected final int[] mConfigSpec

protected int mDepthSize

protected int mGreenSize

protected int mRedSize

protected int mStencilSize

Public Constructors

public ComponentSizeChooser (int pRedSize, int pGreenSize, int pBlueSize, int pAlphaSize, int pDepthSize, int pStencilSize)

Public Methods

public EGLConfig chooseConfig (EGL10 pEGL, EGLDisplay pEGLDisplay, EGLConfig[] pEGLConfigs)

public EGLConfig chooseConfig (EGL10 pEGL, EGLDisplay pEGLDisplay)

Choose a configuration from the list. Implementors typically implement this method by calling eglChooseConfig(EGLDisplay, int[], EGLConfig[], int, int[]) and iterating through the results. Please consult the EGL specification available from The Khronos Group to learn how to call eglChooseConfig.

Parameters
pEGL the EGL10 for the current display.
pEGLDisplay the current display.
Returns
  • the chosen configuration.