Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

x86 Emulator/Device support, and emulator support #84

Merged
merged 2 commits into from

2 participants

aegamesi Dennis Ippel
aegamesi

The Android Emulator supports OpenGL ES 2.0, however, it reports that it doesn't. I added a protected field to RajawaliActivity that allows you to disable 2.0 compatibility checking, allowing for debug on the emulator.

In addition, I compiled the OpenGL ES 2.0 fix library for x86 processors, allowing Rajawali to be tested on x86 Emulators.

Dennis Ippel MasDennis merged commit eed9555 into from
Dennis Ippel
Owner

Excellent, thanks. Very much appreciated!

xroberx xroberx referenced this pull request
Closed

Android GPU Emulator #235

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
BIN  libs/x86/libfix-GLES20.so
View
Binary file not shown
9 src/rajawali/RajawaliActivity.java
View
@@ -25,6 +25,7 @@
protected boolean mMultisamplingEnabled = false;
protected boolean mUsesCoverageAa;
private RajawaliRenderer mRajRenderer;
+ protected boolean checkOpenGLVersion = true;
@Override
public void onCreate(Bundle savedInstanceState) {
@@ -32,9 +33,11 @@ public void onCreate(Bundle savedInstanceState) {
mSurfaceView = new GLSurfaceView(this);
ActivityManager am = (ActivityManager)getSystemService(Context.ACTIVITY_SERVICE);
- ConfigurationInfo info = am.getDeviceConfigurationInfo();
- if(info.reqGlEsVersion < 0x20000)
- throw new Error("OpenGL ES 2.0 is not supported by this device");
+ if(checkOpenGLVersion) {
+ ConfigurationInfo info = am.getDeviceConfigurationInfo();
+ if(info.reqGlEsVersion < 0x20000)
+ throw new Error("OpenGL ES 2.0 is not supported by this device");
+ }
mSurfaceView.setEGLContextClientVersion(2);
mLayout = new FrameLayout(this);
mLayout.addView(mSurfaceView);
Something went wrong with that request. Please try again.