本文整理了Java中com.ardor3d.renderer.state.record.ZBufferStateRecord.isValid()
方法的一些代码示例,展示了ZBufferStateRecord.isValid()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ZBufferStateRecord.isValid()
方法的具体详情如下:
包路径:com.ardor3d.renderer.state.record.ZBufferStateRecord
类名称:ZBufferStateRecord
方法名:isValid
暂无
代码示例来源:origin: Renanse/Ardor3D
private static void enableDepthTest(final boolean enable, final ZBufferStateRecord record) {
if (enable && (!record.depthTest || !record.isValid())) {
GL11C.glEnable(GL11C.GL_DEPTH_TEST);
record.depthTest = true;
} else if (!enable && (record.depthTest || !record.isValid())) {
GL11C.glDisable(GL11C.GL_DEPTH_TEST);
record.depthTest = false;
}
}
代码示例来源:origin: com.ardor3d/ardor3d-lwjgl
private static void enableWrite(final boolean enable, final ZBufferStateRecord record) {
if (enable != record.writable || !record.isValid()) {
GL11.glDepthMask(enable);
record.writable = enable;
}
}
}
代码示例来源:origin: com.ardor3d/ardor3d-lwjgl
private static void enableDepthTest(final boolean enable, final ZBufferStateRecord record) {
if (enable && (!record.depthTest || !record.isValid())) {
GL11.glEnable(GL11.GL_DEPTH_TEST);
record.depthTest = true;
} else if (!enable && (record.depthTest || !record.isValid())) {
GL11.glDisable(GL11.GL_DEPTH_TEST);
record.depthTest = false;
}
}
代码示例来源:origin: com.ardor3d/ardor3d-lwjgl
private static void applyFunction(final int depthFunc, final ZBufferStateRecord record) {
if (depthFunc != record.depthFunc || !record.isValid()) {
GL11.glDepthFunc(depthFunc);
record.depthFunc = depthFunc;
}
}
代码示例来源:origin: Renanse/Ardor3D
private static void applyFunction(final int depthFunc, final ZBufferStateRecord record) {
if (depthFunc != record.depthFunc || !record.isValid()) {
GL11C.glDepthFunc(depthFunc);
record.depthFunc = depthFunc;
}
}
代码示例来源:origin: Renanse/Ardor3D
private static void enableWrite(final boolean enable, final ZBufferStateRecord record) {
if (enable != record.writable || !record.isValid()) {
GL11C.glDepthMask(enable);
record.writable = enable;
}
}
}
代码示例来源:origin: com.ardor3d/ardor3d-jogl
private static void enableDepthTest(final boolean enable, final ZBufferStateRecord record) {
final GL gl = GLContext.getCurrentGL();
if (enable && (!record.depthTest || !record.isValid())) {
gl.glEnable(GL.GL_DEPTH_TEST);
record.depthTest = true;
} else if (!enable && (record.depthTest || !record.isValid())) {
gl.glDisable(GL.GL_DEPTH_TEST);
record.depthTest = false;
}
}
代码示例来源:origin: com.ardor3d/ardor3d-jogl
private static void enableWrite(final boolean enable, final ZBufferStateRecord record) {
final GL gl = GLU.getCurrentGL();
if (enable != record.writable || !record.isValid()) {
gl.glDepthMask(enable);
record.writable = enable;
}
}
}
代码示例来源:origin: com.ardor3d/ardor3d-jogl
private static void applyFunction(final int depthFunc, final ZBufferStateRecord record) {
final GL gl = GLU.getCurrentGL();
if (depthFunc != record.depthFunc || !record.isValid()) {
gl.glDepthFunc(depthFunc);
record.depthFunc = depthFunc;
}
}
代码示例来源:origin: com.ardor3d/ardor3d-jogl
if (!record.isValid()) {
record.validate();
代码示例来源:origin: com.ardor3d/ardor3d-lwjgl
if (!record.isValid()) {
record.validate();
代码示例来源:origin: Renanse/Ardor3D
if (!record.isValid()) {
record.validate();
内容来源于网络,如有侵权,请联系作者删除!