![JAR search and dependency download from the Maven repository](/logo.png)
com.nativelibs4java.opencl.library.OpenGLContextUtils Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of opencl4java-jna Show documentation
Show all versions of opencl4java-jna Show documentation
OpenCL4Java is a thin Java wrapper around OpenCL's C API.
It uses JNA as its interop layer library, which means it works on all of the (many) JNA-supported platforms (see http://jna.dev.java.net/).
It is autogenerated by JNAerator (http://jnaerator.googlecode.com/), so updates to newer OpenCL specs are a matter of seconds.
Note that OpenCL4Java is used by JavaCL, an Object-Oriented API that presents OpenCL in a much more practical, powerful and idiomatic way to Java.
For more info, please visit http://code.google.com/p/nativelibs4java/wiki/OpenCL.
The newest version!
package com.nativelibs4java.opencl.library;
/**
* JNA Wrapper for library OpenGL
* This file was autogenerated by JNAerator,
* a tool written by Olivier Chafik that uses a few opensource projects..
* For help, please visit NativeLibs4Java, Rococoa, or JNA.
*/
public interface OpenGLContextUtils extends com.sun.jna.Library {
public static final java.lang.String JNA_LIBRARY_NAME =
com.sun.jna.Platform.isWindows() ? "OpenGL32" :
com.sun.jna.Platform.isLinux() ? "GL" :
"OpenGL";
//public static final java.lang.String JNA_LIBRARY_NAME = com.ochafik.lang.jnaerator.runtime.LibraryExtractor.getLibraryPath("OpenGL", true, OpenGLApple.class);
//public static final com.sun.jna.NativeLibrary JNA_NATIVE_LIB = com.sun.jna.NativeLibrary.getInstance(OpenGLApple.JNA_LIBRARY_NAME, com.ochafik.lang.jnaerator.runtime.MangledFunctionMapper.DEFAULT_OPTIONS);
public static final OpenGLContextUtils INSTANCE = (OpenGLContextUtils)com.sun.jna.Native.loadLibrary(JNA_LIBRARY_NAME, OpenGLContextUtils.class);//OpenGLApple.JNA_LIBRARY_NAME, OpenGLApple.class, com.ochafik.lang.jnaerator.runtime.MangledFunctionMapper.DEFAULT_OPTIONS);
/// Original signature : CGLShareGroupObj CGLGetShareGroup(CGLContextObj)
com.ochafik.lang.jnaerator.runtime.NativeSize CGLGetShareGroup(com.ochafik.lang.jnaerator.runtime.NativeSize ctx);
/**
* * Current context functions
* Original signature : CGLError CGLSetCurrentContext(CGLContextObj)
*/
int CGLSetCurrentContext(com.sun.jna.Pointer ctx);
/// Original signature : CGLContextObj CGLGetCurrentContext()
com.ochafik.lang.jnaerator.runtime.NativeSize CGLGetCurrentContext();
/**
* * Version numbers
* Original signature : void CGLGetVersion(GLint*, GLint*)
*/
void CGLGetVersion(java.nio.IntBuffer majorvers, java.nio.IntBuffer minorvers);
/**
* * Convert an error code to a string
* Original signature : char* CGLErrorString(CGLError)
* @param error @see CGLError
*/
java.lang.String CGLErrorString(int error);
com.ochafik.lang.jnaerator.runtime.NativeSize wglGetCurrentDC();
com.ochafik.lang.jnaerator.runtime.NativeSize wglGetCurrentContext();
com.ochafik.lang.jnaerator.runtime.NativeSize glXGetCurrentDisplay();
com.ochafik.lang.jnaerator.runtime.NativeSize glXGetCurrentContext();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy