本文整理了Java中com.badlogic.gdx.Graphics.getGL30()
方法的一些代码示例,展示了Graphics.getGL30()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Graphics.getGL30()
方法的具体详情如下:
包路径:com.badlogic.gdx.Graphics
类名称:Graphics
方法名:getGL30
暂无
代码示例来源: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: libgdx/libgdx
/**
* Create a new instance of GLProfiler to monitor a {@link com.badlogic.gdx.Graphics} instance's gl calls
* @param graphics instance to monitor with this instance, With Lwjgl 2.x you can pass in Gdx.graphics, with Lwjgl3 use
* Lwjgl3Window.getGraphics()
*/
public GLProfiler (Graphics graphics) {
this.graphics = graphics;
GL30 gl30 = graphics.getGL30();
if (gl30 != null) {
glInterceptor = new GL30Interceptor(this, graphics.getGL30());
} else {
glInterceptor = new GL20Interceptor(this, graphics.getGL20());
}
listener = GLErrorListener.LOGGING_LISTENER;
}
代码示例来源:origin: libgdx/libgdx
/**
* Create a new instance of GLProfiler to monitor a {@link com.badlogic.gdx.Graphics} instance's gl calls
* @param graphics instance to monitor with this instance, With Lwjgl 2.x you can pass in Gdx.graphics, with Lwjgl3 use
* Lwjgl3Window.getGraphics()
*/
public GLProfiler (Graphics graphics) {
this.graphics = graphics;
GL30 gl30 = graphics.getGL30();
if (gl30 != null) {
glInterceptor = new GL30Interceptor(this, graphics.getGL30());
} else {
glInterceptor = new GL20Interceptor(this, graphics.getGL20());
}
listener = GLErrorListener.LOGGING_LISTENER;
}
代码示例来源: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: 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;
}
代码示例来源:origin: com.badlogicgames.gdx/gdx
/**
* Create a new instance of GLProfiler to monitor a {@link com.badlogic.gdx.Graphics} instance's gl calls
* @param graphics instance to monitor with this instance, With Lwjgl 2.x you can pass in Gdx.graphics, with Lwjgl3 use
* Lwjgl3Window.getGraphics()
*/
public GLProfiler (Graphics graphics) {
this.graphics = graphics;
GL30 gl30 = graphics.getGL30();
if (gl30 != null) {
glInterceptor = new GL30Interceptor(this, graphics.getGL30());
} else {
glInterceptor = new GL20Interceptor(this, graphics.getGL20());
}
listener = GLErrorListener.LOGGING_LISTENER;
}
代码示例来源: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;
}
内容来源于网络,如有侵权,请联系作者删除!