• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

Java PointerWrapper类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了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;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java InvalidationPreferences类代码示例发布时间:2022-05-22
下一篇:
Java FileChooserActivity类代码示例发布时间:2022-05-22
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap