gpt4 book ai didi

com.ardor3d.renderer.state.record.ZBufferStateRecord.isValid()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-16 00:15:31 28 4
gpt4 key购买 nike

本文整理了Java中com.ardor3d.renderer.state.record.ZBufferStateRecord.isValid()方法的一些代码示例,展示了ZBufferStateRecord.isValid()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ZBufferStateRecord.isValid()方法的具体详情如下:
包路径:com.ardor3d.renderer.state.record.ZBufferStateRecord
类名称:ZBufferStateRecord
方法名:isValid

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();

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com