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

com.jogamp.opengl.cg.CGeffect Maven / Gradle / Ivy

The newest version!
/* !---- DO NOT EDIT: This file autogenerated by com/jogamp/gluegen/procaddress/ProcAddressEmitter.java on Sat Oct 10 03:21:06 CEST 2015 ----! */


package com.jogamp.opengl.cg;

import java.nio.*;

import com.jogamp.gluegen.runtime.*;
import com.jogamp.common.os.*;
import com.jogamp.common.nio.*;
import jogamp.common.os.MachineDataInfoRuntime;

import jogamp.opengl.*;
import com.jogamp.common.os.DynamicLookupHelper;
import com.jogamp.common.os.DynamicLibraryBundle;
import com.jogamp.opengl.cg.CgDynamicLibraryBundleInfo;
import java.security.PrivilegedAction;
import java.security.AccessController;

public class CGeffect {

  StructAccessor accessor;

  private static final int mdIdx = MachineDataInfoRuntime.getStatic().ordinal();
  private final MachineDataInfo md;

  private static final int[] CGeffect_size = new int[] { 0 /* ARM_MIPS_32 */, 0 /* X86_32_UNIX */, 0 /* X86_32_MACOS */, 0 /* PPC_32_UNIX */, 0 /* SPARC_32_SUNOS */, 0 /* X86_32_WINDOWS */, 0 /* LP64_UNIX */, 0 /* X86_64_WINDOWS */  };

  public static int size() {
    return CGeffect_size[mdIdx];
  }

  public static CGeffect create() {
    return create(Buffers.newDirectByteBuffer(size()));
  }

  public static CGeffect create(java.nio.ByteBuffer buf) {
      return new CGeffect(buf);
  }

  CGeffect(java.nio.ByteBuffer buf) {
    md = MachineDataInfo.StaticConfig.values()[mdIdx].md;
    accessor = new StructAccessor(buf);
  }

  public java.nio.ByteBuffer getBuffer() {
    return accessor.getBuffer();
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy