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

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

/* !---- DO NOT EDIT: This file autogenerated by com/jogamp/gluegen/procaddress/ProcAddressEmitter.java on Sat Oct 19 05:25:32 CEST 2013 ----! */


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.MachineDescriptionRuntime;

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 CGcontext {

  StructAccessor accessor;

  private static final int mdIdx = MachineDescriptionRuntime.getStatic().ordinal();

  private static final int[] CGcontext_size = new int[] { 0 /* ARMle_EABI */, 0 /* X86_32_UNIX */, 0 /* X86_64_UNIX */, 0 /* X86_32_MACOS */, 0 /* X86_32_WINDOWS */, 0 /* X86_64_WINDOWS */, 0 /* SPARC_32_SUNOS */  };

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

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

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

  CGcontext(java.nio.ByteBuffer buf) {
    accessor = new StructAccessor(buf);
  }

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy