Tabnine Logo
ZBufferStateRecord
Code IndexAdd Tabnine to your IDE (free)

How to use
ZBufferStateRecord
in
com.ardor3d.renderer.state.record

Best Java code snippets using com.ardor3d.renderer.state.record.ZBufferStateRecord (Showing top 14 results out of 315)

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-core

  @Override
  public StateRecord createStateRecord(final ContextCapabilities caps) {
    return new ZBufferStateRecord();
  }
}
origin: Renanse/Ardor3D

if (!record.isValid()) {
  record.validate();
origin: com.ardor3d/ardor3d-jogl

if (!record.isValid()) {
  record.validate();
origin: com.ardor3d/ardor3d-lwjgl

if (!record.isValid()) {
  record.validate();
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: Renanse/Ardor3D

  @Override
  public StateRecord createStateRecord(final ContextCapabilities caps) {
    return new ZBufferStateRecord();
  }
}
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;
  }
}
com.ardor3d.renderer.state.recordZBufferStateRecord

Most used methods

  • isValid
  • validate
  • <init>

Popular in Java

  • Creating JSON documents from java classes using gson
  • setRequestProperty (URLConnection)
  • getContentResolver (Context)
  • getSystemService (Context)
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • Permission (java.security)
    Legacy security code; do not use.
  • ZipFile (java.util.zip)
    This class provides random read access to a zip file. You pay more to read the zip file's central di
  • XPath (javax.xml.xpath)
    XPath provides access to the XPath evaluation environment and expressions. Evaluation of XPath Expr
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
  • Loader (org.hibernate.loader)
    Abstract superclass of object loading (and querying) strategies. This class implements useful common
  • Best IntelliJ plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now