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

Effekseer.swig.EffekseerEffectCore Maven / Gradle / Ivy

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

package Effekseer.swig;

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

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

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

  protected static long swigRelease(EffekseerEffectCore obj) {
    long ptr = 0;
    if (obj != null) {
      if (!obj.swigCMemOwn)
        throw new RuntimeException("Cannot release ownership as memory is not owned");
      ptr = obj.swigCPtr;
      obj.swigCMemOwn = false;
      obj.delete();
    }
    return ptr;
  }

  @SuppressWarnings({"deprecation", "removal"})
  protected void finalize() {
    delete();
  }

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

  public EffekseerEffectCore() {
    this(EffekseerCoreJNI.new_EffekseerEffectCore(), true);
  }

  public boolean Load(byte[] data, int len, float magnification) {
    return EffekseerCoreJNI.EffekseerEffectCore_Load(swigCPtr, this, data, len, magnification);
  }

  public String GetTexturePath(int index, EffekseerTextureType type) {
    return EffekseerCoreJNI.EffekseerEffectCore_GetTexturePath(swigCPtr, this, index, type.swigValue());
  }

  public int GetTextureCount(EffekseerTextureType type) {
    return EffekseerCoreJNI.EffekseerEffectCore_GetTextureCount(swigCPtr, this, type.swigValue());
  }

  public boolean LoadTexture(byte[] data, int len, int index, EffekseerTextureType type) {
    return EffekseerCoreJNI.EffekseerEffectCore_LoadTexture(swigCPtr, this, data, len, index, type.swigValue());
  }

  public boolean HasTextureLoaded(int index, EffekseerTextureType type) {
    return EffekseerCoreJNI.EffekseerEffectCore_HasTextureLoaded(swigCPtr, this, index, type.swigValue());
  }

  public String GetModelPath(int index) {
    return EffekseerCoreJNI.EffekseerEffectCore_GetModelPath(swigCPtr, this, index);
  }

  public int GetModelCount() {
    return EffekseerCoreJNI.EffekseerEffectCore_GetModelCount(swigCPtr, this);
  }

  public boolean LoadModel(byte[] data, int len, int index) {
    return EffekseerCoreJNI.EffekseerEffectCore_LoadModel(swigCPtr, this, data, len, index);
  }

  public boolean HasModelLoaded(int index) {
    return EffekseerCoreJNI.EffekseerEffectCore_HasModelLoaded(swigCPtr, this, index);
  }

  public String GetMaterialPath(int index) {
    return EffekseerCoreJNI.EffekseerEffectCore_GetMaterialPath(swigCPtr, this, index);
  }

  public int GetMaterialCount() {
    return EffekseerCoreJNI.EffekseerEffectCore_GetMaterialCount(swigCPtr, this);
  }

  public boolean LoadMaterial(byte[] data, int len, int index) {
    return EffekseerCoreJNI.EffekseerEffectCore_LoadMaterial(swigCPtr, this, data, len, index);
  }

  public String GetCurvePath(int index) {
    return EffekseerCoreJNI.EffekseerEffectCore_GetCurvePath(swigCPtr, this, index);
  }

  public boolean HasMaterialLoaded(int index) {
    return EffekseerCoreJNI.EffekseerEffectCore_HasMaterialLoaded(swigCPtr, this, index);
  }

  public int GetCurveCount() {
    return EffekseerCoreJNI.EffekseerEffectCore_GetCurveCount(swigCPtr, this);
  }

  public boolean LoadCurve(byte[] data, int len, int index) {
    return EffekseerCoreJNI.EffekseerEffectCore_LoadCurve(swigCPtr, this, data, len, index);
  }

  public boolean HasCurveLoaded(int index) {
    return EffekseerCoreJNI.EffekseerEffectCore_HasCurveLoaded(swigCPtr, this, index);
  }

  public int GetTermMax() {
    return EffekseerCoreJNI.EffekseerEffectCore_GetTermMax(swigCPtr, this);
  }

  public int GetTermMin() {
    return EffekseerCoreJNI.EffekseerEffectCore_GetTermMin(swigCPtr, this);
  }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy