本文整理汇总了Java中javax.microedition.khronos.opengles.GL10.glGetString方法的典型用法代码示例。如果您正苦于以下问题:Java GL10.glGetString方法的具体用法?Java GL10.glGetString怎么用?Java GL10.glGetString使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类javax.microedition.khronos.opengles.GL10
的用法示例。
在下文中一共展示了GL10.glGetString方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: checkGLDriver
import javax.microedition.khronos.opengles.GL10; //导入方法依赖的package包/类
public synchronized void checkGLDriver(GL10 gl) {
if (! mGLESDriverCheckComplete) {
checkGLESVersion();
String renderer = gl.glGetString(GL10.GL_RENDERER);
if (mGLESVersion < kGLES_20) {
mMultipleGLESContextsAllowed =
! renderer.startsWith(kMSM7K_RENDERER_PREFIX);
notifyAll();
}
mLimitedGLESContexts = !mMultipleGLESContextsAllowed;
if (LOG_SURFACE) {
Log.w(TAG, "checkGLDriver renderer = \"" + renderer + "\" multipleContextsAllowed = "
+ mMultipleGLESContextsAllowed
+ " mLimitedGLESContexts = " + mLimitedGLESContexts);
}
mGLESDriverCheckComplete = true;
}
}
示例2: checkGLDriver
import javax.microedition.khronos.opengles.GL10; //导入方法依赖的package包/类
public synchronized void checkGLDriver(GL10 gl) {
if (!mGLESDriverCheckComplete) {
checkGLESVersion();
String renderer = gl.glGetString(GL10.GL_RENDERER);
if (mGLESVersion < kGLES_20) {
mMultipleGLESContextsAllowed =
!renderer.startsWith(kMSM7K_RENDERER_PREFIX);
notifyAll();
}
mLimitedGLESContexts = !mMultipleGLESContextsAllowed;
if (LOG_SURFACE) {
Log.w(TAG, "checkGLDriver renderer = \"" + renderer + "\" multipleContextsAllowed = "
+ mMultipleGLESContextsAllowed
+ " mLimitedGLESContexts = " + mLimitedGLESContexts);
}
mGLESDriverCheckComplete = true;
}
}
示例3: a
import javax.microedition.khronos.opengles.GL10; //导入方法依赖的package包/类
public static String[] a(GL10 gl10) {
try {
String[] strArr = new String[2];
String glGetString = gl10.glGetString(7936);
String glGetString2 = gl10.glGetString(7937);
strArr[0] = glGetString;
strArr[1] = glGetString2;
return strArr;
} catch (Throwable e) {
bv.e(a, "Could not read gpu infor:", e);
return new String[0];
}
}