Revision 025e7153
Added by Leszek Koltunski over 1 year ago
src/main/java/org/distorted/bandaged/BandagedCreatorRenderer.java | ||
---|---|---|
678 | 678 |
android.util.Log.e("BandagedCreator", "unexpected exception: "+ex.getMessage() ); |
679 | 679 |
} |
680 | 680 |
|
681 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
682 |
|
|
683 |
public int openGlVersion() |
|
684 |
{ |
|
685 |
Context context = mView.getContext(); |
|
686 |
final ActivityManager activityManager = (ActivityManager) context.getSystemService(Context.ACTIVITY_SERVICE); |
|
687 |
final ConfigurationInfo configurationInfo = activityManager.getDeviceConfigurationInfo(); |
|
688 |
int glESversion = configurationInfo.reqGlEsVersion; |
|
689 |
int major = glESversion >> 16; |
|
690 |
int minor = glESversion & 0xff; |
|
691 |
|
|
692 |
return 100*major + 10*minor; |
|
693 |
} |
|
694 |
|
|
695 | 681 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
696 | 682 |
|
697 | 683 |
public InputStream localFile(int fileID) |
src/main/java/org/distorted/bandaged/BandagedPlayRenderer.java | ||
---|---|---|
100 | 100 |
android.util.Log.e("BandagedPlay", "unexpected exception: "+ex.getMessage() ); |
101 | 101 |
} |
102 | 102 |
|
103 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
104 |
|
|
105 |
public int openGlVersion() |
|
106 |
{ |
|
107 |
Context context = mView.getContext(); |
|
108 |
final ActivityManager activityManager = (ActivityManager) context.getSystemService(Context.ACTIVITY_SERVICE); |
|
109 |
final ConfigurationInfo configurationInfo = activityManager.getDeviceConfigurationInfo(); |
|
110 |
int glESversion = configurationInfo.reqGlEsVersion; |
|
111 |
int major = glESversion >> 16; |
|
112 |
int minor = glESversion & 0xff; |
|
113 |
|
|
114 |
return 100*major + 10*minor; |
|
115 |
} |
|
116 |
|
|
117 | 103 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
118 | 104 |
|
119 | 105 |
public InputStream localFile(int fileID) |
src/main/java/org/distorted/config/ConfigRenderer.java | ||
---|---|---|
95 | 95 |
android.util.Log.e("Config", "unexpected exception: "+ex.getMessage() ); |
96 | 96 |
} |
97 | 97 |
|
98 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
99 |
|
|
100 |
public int openGlVersion() |
|
101 |
{ |
|
102 |
Context context = mView.getContext(); |
|
103 |
final ActivityManager activityManager = (ActivityManager) context.getSystemService(Context.ACTIVITY_SERVICE); |
|
104 |
final ConfigurationInfo configurationInfo = activityManager.getDeviceConfigurationInfo(); |
|
105 |
int glESversion = configurationInfo.reqGlEsVersion; |
|
106 |
int major = glESversion >> 16; |
|
107 |
int minor = glESversion & 0xff; |
|
108 |
|
|
109 |
return 100*major + 10*minor; |
|
110 |
} |
|
111 |
|
|
112 | 98 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
113 | 99 |
|
114 | 100 |
public InputStream localFile(int fileID) |
src/main/java/org/distorted/main/RubikRenderer.java | ||
---|---|---|
205 | 205 |
} |
206 | 206 |
} |
207 | 207 |
|
208 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
209 |
|
|
210 |
public int openGlVersion() |
|
211 |
{ |
|
212 |
Context context = mView.getContext(); |
|
213 |
final ActivityManager activityManager = (ActivityManager) context.getSystemService(Context.ACTIVITY_SERVICE); |
|
214 |
final ConfigurationInfo configurationInfo = activityManager.getDeviceConfigurationInfo(); |
|
215 |
int glESversion = configurationInfo.reqGlEsVersion; |
|
216 |
int major = glESversion >> 16; |
|
217 |
int minor = glESversion & 0xff; |
|
218 |
|
|
219 |
return 100*major + 10*minor; |
|
220 |
} |
|
221 |
|
|
222 | 208 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
223 | 209 |
|
224 | 210 |
public InputStream localFile(int fileID) |
src/main/java/org/distorted/purchase/PurchaseRenderer.java | ||
---|---|---|
113 | 113 |
android.util.Log.e("Purchase", "unexpected exception: "+ex.getMessage() ); |
114 | 114 |
} |
115 | 115 |
|
116 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
117 |
|
|
118 |
public int openGlVersion() |
|
119 |
{ |
|
120 |
Context context = mView.getContext(); |
|
121 |
final ActivityManager activityManager = (ActivityManager) context.getSystemService(Context.ACTIVITY_SERVICE); |
|
122 |
final ConfigurationInfo configurationInfo = activityManager.getDeviceConfigurationInfo(); |
|
123 |
int glESversion = configurationInfo.reqGlEsVersion; |
|
124 |
int major = glESversion >> 16; |
|
125 |
int minor = glESversion & 0xff; |
|
126 |
|
|
127 |
return 100*major + 10*minor; |
|
128 |
} |
|
129 |
|
|
130 | 116 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
131 | 117 |
|
132 | 118 |
public InputStream localFile(int fileID) |
src/main/java/org/distorted/tutorials/TutorialRenderer.java | ||
---|---|---|
99 | 99 |
android.util.Log.e("Tutorial", "unexpected exception: "+ex.getMessage() ); |
100 | 100 |
} |
101 | 101 |
|
102 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
103 |
|
|
104 |
public int openGlVersion() |
|
105 |
{ |
|
106 |
Context context = mView.getContext(); |
|
107 |
final ActivityManager activityManager = (ActivityManager) context.getSystemService(Context.ACTIVITY_SERVICE); |
|
108 |
final ConfigurationInfo configurationInfo = activityManager.getDeviceConfigurationInfo(); |
|
109 |
int glESversion = configurationInfo.reqGlEsVersion; |
|
110 |
int major = glESversion >> 16; |
|
111 |
int minor = glESversion & 0xff; |
|
112 |
|
|
113 |
return 100*major + 10*minor; |
|
114 |
} |
|
115 |
|
|
116 | 102 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
117 | 103 |
|
118 | 104 |
public InputStream localFile(int fileID) |
Also available in: Unified diff
Decouple (to a large degree) the OpenGL Library from Android.