public Class[] getValidAnnotationTypes(Class type) { Class[] valid_types; if ( Buffer.class.isAssignableFrom(type) ) valid_types = getValidBufferTypes(type); else if ( type.isPrimitive() ) valid_types = getValidPrimitiveTypes(type); else if ( String.class.equals(type) ) valid_types = new Class[] { GLubyte.class }; else if ( org.lwjgl.PointerWrapper.class.isAssignableFrom(type) ) valid_types = new Class[] { PointerWrapper.class }; else if (void.class.equals(type) ) valid_types = new Class[] { GLreturn.class }; else valid_types = new Class[] { }; return valid_types; }
public Class[] getValidAnnotationTypes(Class type) { Class[] valid_types; if ( Buffer.class.isAssignableFrom(type) ) valid_types = getValidBufferTypes(type); else if ( type.isPrimitive() ) valid_types = getValidPrimitiveTypes(type); else if ( String.class.equals(type) ) valid_types = new Class[] { GLubyte.class }; else if ( org.lwjgl.PointerWrapper.class.isAssignableFrom(type) ) valid_types = new Class[] { PointerWrapper.class }; else if (void.class.equals(type) ) valid_types = new Class[] { GLreturn.class }; else if ( PointerBuffer.class.equals(type) ) valid_types = new Class[] { GLintptr.class, GLintptrARB.class, GLsizeiptr.class, GLsizeiptrARB.class }; else valid_types = new Class[] { }; return valid_types; }
public Class[] getValidAnnotationTypes(Class type) { Class[] valid_types; if ( Buffer.class.isAssignableFrom(type) ) valid_types = getValidBufferTypes(type); else if ( type.isPrimitive() ) valid_types = getValidPrimitiveTypes(type); else if ( String.class.equals(type) ) valid_types = new Class[] { GLubyte.class }; else if ( org.lwjgl.PointerWrapper.class.isAssignableFrom(type) ) valid_types = new Class[] { PointerWrapper.class }; else if ( void.class.equals(type) ) valid_types = new Class[] { GLreturn.class }; else valid_types = new Class[] { }; return valid_types; }
/** @deprecated Will be removed in 3.0. Use {@link #glGetSynci} instead. */ @Alternate("glGetSynciv") @GLreturn("values") @StripPostfix("values") @Reuse(value = "GL32", method = "glGetSynci") @Deprecated void glGetSynciv2(@PointerWrapper("GLsync") GLSync sync, @GLenum int pname, @Constant("1") @GLsizei int bufSize, @OutParameter @GLsizei @Constant("0L") IntBuffer length, @OutParameter IntBuffer values);
@Reuse("GL32") @Alternate("glGetSynciv") @GLreturn("values") @StripPostfix(value = "values", postfix = "v") void glGetSynciv3(@PointerWrapper("GLsync") GLSync sync, @GLenum int pname, @Constant("1") @GLsizei int bufSize, @OutParameter @GLsizei @Constant("0L") IntBuffer length, @OutParameter IntBuffer values);
/** * The {@code AMDDebugOutputCallback.Handler} implementation passed to this method will be used for * AMD_debug_output messages. If callback is null, any previously registered handler for the current * thread will be unregistered and stop receiving messages. * * @param callback the callback function to use */ @Code( // Create a GlobalRef to the callback object and register it with the current context. javaBeforeNative = "\t\tlong userParam = callback == null ? 0 : CallbackUtil.createGlobalRef(callback.getHandler());\n" + "\t\tCallbackUtil.registerContextCallbackAMD(userParam);" ) void glDebugMessageCallbackAMD(@PointerWrapper(value = "GLDEBUGPROCAMD", canBeNull = true) AMDDebugOutputCallback callback, @Constant("userParam") @PointerWrapper("GLvoid *") long userParam);
@Code( tryBlock = true, // Create a GlobalRef to the callback object. javaBeforeNative = "\t\tlong user_data = CallbackUtil.createGlobalRef(pfn_notify);", // Check if we need to delete the GlobalRef. javaFinally = "\t\t\tCallbackUtil.checkCallback(__result, user_data);" ) @cl_int int clSetMemObjectDestructorAPPLE(@PointerWrapper("cl_mem") CLMem memobj, @PointerWrapper("cl_mem_object_destructor_callback") CLMemObjectDestructorCallback pfn_notify, @Constant("user_data") @PointerWrapper("void *") long user_data);
@Check(value = "errcode_ret", canBeNull = true) @PointerWrapper(value = "cl_mem", params = "context") CLMem clCreateFromGLTexture(@PointerWrapper("cl_context") CLContext context, @NativeType("cl_mem_flags") long flags, @NativeType("GLenum") int target, @NativeType("GLint") int miplevel, @NativeType("GLuint") int texture, @OutParameter @Check(value = "1", canBeNull = true) @cl_int IntBuffer errcode_ret);
@PointerWrapper("GLsync") GLSync glCreateSyncFromCLeventARB(@PointerWrapper("cl_context") CLContext context, @PointerWrapper("cl_event") CLEvent event, @GLbitfield int flags);
@Reuse("GL32") @PointerWrapper("GLsync") GLSync glFenceSync(@GLenum int condition, @GLbitfield int flags);
@Reuse("GL32") boolean glIsSync(@PointerWrapper("GLsync") GLSync sync);