本文整理了Java中com.badlogic.gdx.Graphics.setGL30()
方法的一些代码示例,展示了Graphics.setGL30()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Graphics.setGL30()
方法的具体详情如下:
包路径:com.badlogic.gdx.Graphics
类名称:Graphics
方法名:setGL30
[英]Set the GL30 instance
[中]设置GL30实例
代码示例来源:origin: libgdx/libgdx
/** Enables profiling by replacing the {@code GL20} and {@code GL30} instances with profiling ones. */
public void enable () {
if (enabled) return;
GL30 gl30 = graphics.getGL30();
if (gl30 != null) {
graphics.setGL30((GL30)glInterceptor);
} else {
graphics.setGL20(glInterceptor);
}
enabled = true;
}
代码示例来源:origin: libgdx/libgdx
/** Enables profiling by replacing the {@code GL20} and {@code GL30} instances with profiling ones. */
public void enable () {
if (enabled) return;
GL30 gl30 = graphics.getGL30();
if (gl30 != null) {
graphics.setGL30((GL30)glInterceptor);
} else {
graphics.setGL20(glInterceptor);
}
enabled = true;
}
代码示例来源:origin: libgdx/libgdx
/** Disables profiling by resetting the {@code GL20} and {@code GL30} instances with the original ones. */
public void disable () {
if (!enabled) return;
GL30 gl30 = graphics.getGL30();
if (gl30 != null) graphics.setGL30(((GL30Interceptor) graphics.getGL30()).gl30);
else graphics.setGL20(((GL20Interceptor) graphics.getGL20()).gl20);
enabled = false;
}
代码示例来源:origin: libgdx/libgdx
/** Disables profiling by resetting the {@code GL20} and {@code GL30} instances with the original ones. */
public void disable () {
if (!enabled) return;
GL30 gl30 = graphics.getGL30();
if (gl30 != null) graphics.setGL30(((GL30Interceptor) graphics.getGL30()).gl30);
else graphics.setGL20(((GL20Interceptor) graphics.getGL20()).gl20);
enabled = false;
}
代码示例来源:origin: com.badlogicgames.gdx/gdx
/** Enables profiling by replacing the {@code GL20} and {@code GL30} instances with profiling ones. */
public void enable () {
if (enabled) return;
GL30 gl30 = graphics.getGL30();
if (gl30 != null) {
graphics.setGL30((GL30)glInterceptor);
} else {
graphics.setGL20(glInterceptor);
}
enabled = true;
}
代码示例来源:origin: com.badlogicgames.gdx/gdx
/** Disables profiling by resetting the {@code GL20} and {@code GL30} instances with the original ones. */
public void disable () {
if (!enabled) return;
GL30 gl30 = graphics.getGL30();
if (gl30 != null) graphics.setGL30(((GL30Interceptor) graphics.getGL30()).gl30);
else graphics.setGL20(((GL20Interceptor) graphics.getGL20()).gl20);
enabled = false;
}
内容来源于网络,如有侵权,请联系作者删除!