All Downloads are FREE. Search and download functionalities are using the official Maven repository.

main.java.graphics.scenery.spirvcrossj.TShHandleBase Maven / Gradle / Ivy

There is a newer version: 0.8.0-1.1.106.0
Show newest version
/* ----------------------------------------------------------------------------
 * This file was automatically generated by SWIG (http://www.swig.org).
 * Version 3.0.12
 *
 * Do not make changes to this file unless you know what you are doing--modify
 * the SWIG interface file instead.
 * ----------------------------------------------------------------------------- */

package graphics.scenery.spirvcrossj;

public class TShHandleBase {
  private transient long swigCPtr;
  protected transient boolean swigCMemOwn;

  protected TShHandleBase(long cPtr, boolean cMemoryOwn) {
    swigCMemOwn = cMemoryOwn;
    swigCPtr = cPtr;
  }

  protected static long getCPtr(TShHandleBase obj) {
    return (obj == null) ? 0 : obj.swigCPtr;
  }

  protected void finalize() {
    delete();
  }

  public synchronized void delete() {
    if (swigCPtr != 0) {
      if (swigCMemOwn) {
        swigCMemOwn = false;
        libspirvcrossjJNI.delete_TShHandleBase(swigCPtr);
      }
      swigCPtr = 0;
    }
  }

  public TShHandleBase() {
    this(libspirvcrossjJNI.new_TShHandleBase(), true);
  }

  public TCompiler getAsCompiler() {
    long cPtr = libspirvcrossjJNI.TShHandleBase_getAsCompiler(swigCPtr, this);
    return (cPtr == 0) ? null : new TCompiler(cPtr, false);
  }

  public TLinker getAsLinker() {
    long cPtr = libspirvcrossjJNI.TShHandleBase_getAsLinker(swigCPtr, this);
    return (cPtr == 0) ? null : new TLinker(cPtr, false);
  }

  public TUniformMap getAsUniformMap() {
    long cPtr = libspirvcrossjJNI.TShHandleBase_getAsUniformMap(swigCPtr, this);
    return (cPtr == 0) ? null : new TUniformMap(cPtr, false);
  }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy