本文整理汇总了Java中org.lwjgl.util.generator.PointerWrapper类的典型用法代码示例。如果您正苦于以下问题:Java PointerWrapper类的具体用法?Java PointerWrapper怎么用?Java PointerWrapper使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
PointerWrapper类属于org.lwjgl.util.generator包,在下文中一共展示了PointerWrapper类的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getValidAnnotationTypes
import org.lwjgl.util.generator.PointerWrapper; //导入依赖的package包/类
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;
}
示例2: getValidAnnotationTypes
import org.lwjgl.util.generator.PointerWrapper; //导入依赖的package包/类
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;
}
示例3: getValidAnnotationTypes
import org.lwjgl.util.generator.PointerWrapper; //导入依赖的package包/类
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;
}
示例4: glGetSynciv2
import org.lwjgl.util.generator.PointerWrapper; //导入依赖的package包/类
/** @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);
示例5: glGetSynciv3
import org.lwjgl.util.generator.PointerWrapper; //导入依赖的package包/类
@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);
示例6: glDebugMessageCallbackAMD
import org.lwjgl.util.generator.PointerWrapper; //导入依赖的package包/类
/**
* 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);
示例7: clSetMemObjectDestructorAPPLE
import org.lwjgl.util.generator.PointerWrapper; //导入依赖的package包/类
@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);
示例8: clCreateFromGLTexture
import org.lwjgl.util.generator.PointerWrapper; //导入依赖的package包/类
@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);
示例9: glCreateSyncFromCLeventARB
import org.lwjgl.util.generator.PointerWrapper; //导入依赖的package包/类
@PointerWrapper("GLsync")
GLSync glCreateSyncFromCLeventARB(@PointerWrapper("cl_context") CLContext context, @PointerWrapper("cl_event") CLEvent event, @GLbitfield int flags);
示例10: glFenceSync
import org.lwjgl.util.generator.PointerWrapper; //导入依赖的package包/类
@Reuse("GL32")
@PointerWrapper("GLsync")
GLSync glFenceSync(@GLenum int condition, @GLbitfield int flags);
示例11: glIsSync
import org.lwjgl.util.generator.PointerWrapper; //导入依赖的package包/类
@Reuse("GL32")
boolean glIsSync(@PointerWrapper("GLsync") GLSync sync);