当前位置: 首页>>代码示例>>Java>>正文


Java PointerWrapper类代码示例

本文整理汇总了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;
}
 
开发者ID:mleoking,项目名称:PhET,代码行数:17,代码来源:GLTypeMap.java

示例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;
}
 
开发者ID:Superloup10,项目名称:Wolf_game,代码行数:19,代码来源:GLTypeMap.java

示例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;
}
 
开发者ID:Superloup10,项目名称:Wolf_game,代码行数:17,代码来源:GLESTypeMap.java

示例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);
 
开发者ID:mleoking,项目名称:PhET,代码行数:10,代码来源:ARB_sync.java

示例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);
 
开发者ID:mleoking,项目名称:PhET,代码行数:8,代码来源:ARB_sync.java

示例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);
 
开发者ID:mleoking,项目名称:PhET,代码行数:15,代码来源:AMD_debug_output.java

示例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);
 
开发者ID:mleoking,项目名称:PhET,代码行数:12,代码来源:APPLE_SetMemObjectDestructor.java

示例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);
 
开发者ID:Superloup10,项目名称:Wolf_game,代码行数:9,代码来源:CL12GL.java

示例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);
 
开发者ID:mleoking,项目名称:PhET,代码行数:3,代码来源:ARB_cl_event.java

示例10: glFenceSync

import org.lwjgl.util.generator.PointerWrapper; //导入依赖的package包/类
@Reuse("GL32")
@PointerWrapper("GLsync")
GLSync glFenceSync(@GLenum int condition, @GLbitfield int flags);
 
开发者ID:mleoking,项目名称:PhET,代码行数:4,代码来源:ARB_sync.java

示例11: glIsSync

import org.lwjgl.util.generator.PointerWrapper; //导入依赖的package包/类
@Reuse("GL32")
boolean glIsSync(@PointerWrapper("GLsync") GLSync sync);
 
开发者ID:mleoking,项目名称:PhET,代码行数:3,代码来源:ARB_sync.java


注:本文中的org.lwjgl.util.generator.PointerWrapper类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。