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


Java GLvoid类代码示例

本文整理汇总了Java中org.lwjgl.util.generator.opengl.GLvoid的典型用法代码示例。如果您正苦于以下问题:Java GLvoid类的具体用法?Java GLvoid怎么用?Java GLvoid使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


GLvoid类属于org.lwjgl.util.generator.opengl包,在下文中一共展示了GLvoid类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: glMultiDrawElementsIndirectCountARB

import org.lwjgl.util.generator.opengl.GLvoid; //导入依赖的package包/类
@Alternate("glMultiDrawElementsIndirectCountARB")
void glMultiDrawElementsIndirectCountARB(@GLenum int mode,
                                         @GLenum int type,
                                         @BufferObject(BufferKind.IndirectBO) @Check("(stride == 0 ? 5 : stride >> 2) * maxdrawcount") @Const @GLvoid(PrimitiveType.Kind.INT) IntBuffer indirect,
                                         @GLintptr long drawcount,
                                         @GLsizei int maxdrawcount,
                                         @GLsizei int stride);
 
开发者ID:Superloup10,项目名称:Wolf_game,代码行数:8,代码来源:ARB_indirect_parameters.java

示例2: glMultiDrawElementsIndirect

import org.lwjgl.util.generator.opengl.GLvoid; //导入依赖的package包/类
@Reuse("GL43")
@Alternate("glMultiDrawElementsIndirect")
void glMultiDrawElementsIndirect(@GLenum int mode,
                                 @GLenum int type,
                                 @BufferObject(BufferKind.IndirectBO) @Check("(stride == 0 ? 5 : stride >> 2) * primcount") @Const @GLvoid(PrimitiveType.Kind.INT) IntBuffer indirect,
                                 @GLsizei int primcount,
                                 @GLsizei int stride);
 
开发者ID:Superloup10,项目名称:Wolf_game,代码行数:8,代码来源:ARB_multi_draw_indirect.java

示例3: getTypeInfos

import org.lwjgl.util.generator.opengl.GLvoid; //导入依赖的package包/类
private static Collection<TypeInfo> getTypeInfos(TypeMap type_map, Declaration param, TypeMirror decl_type) {
	Collection<AnnotationMirror> annotations = Utils.getSortedAnnotations(param.getAnnotationMirrors());
	Map<Class, TypeInfo> types = new HashMap<Class, TypeInfo>();
	Collection<TypeInfo> multityped_result = new ArrayList<TypeInfo>();
	boolean add_default_type = true;
	for (AnnotationMirror annotation : annotations) {
		NativeType native_type_annotation = NativeTypeTranslator.getAnnotation(annotation, NativeType.class);
		if (native_type_annotation != null) {
			Class<? extends Annotation> annotation_type = NativeTypeTranslator.getClassFromType(annotation.getAnnotationType());
			Signedness signedness = type_map.getSignednessFromType(annotation_type);
			Class inverse_type = type_map.getInverseType(annotation_type);
			String auto_type = type_map.getAutoTypeFromAnnotation(annotation);
			if (inverse_type != null) {
				if (types.containsKey(inverse_type)) {
					TypeInfo inverse_type_info = types.get(inverse_type);
					String inverse_auto_type = inverse_type_info.getAutoType();
					auto_type = signedness == Signedness.UNSIGNED ? auto_type + " : " + inverse_auto_type :
						inverse_auto_type + " : " + auto_type;
					auto_type = UNSIGNED_PARAMETER_NAME + " ? " + auto_type;
					signedness = Signedness.BOTH;
					types.remove(inverse_type);
					multityped_result.remove(inverse_type_info);
				}
			}
			Class type;
			PrimitiveType.Kind kind;
			GLvoid void_annotation = param.getAnnotation(GLvoid.class);
			kind = void_annotation == null ? type_map.getPrimitiveTypeFromNativeType(annotation_type) : void_annotation.value();
			if (Utils.getNIOBufferType(decl_type) != null)
				type = getBufferTypeFromPrimitiveKind(kind);
			else
				type = getTypeFromPrimitiveKind(kind);
			TypeInfo type_info = new TypeInfo(type, signedness, auto_type);
			types.put(annotation_type, type_info);
			multityped_result.add(type_info);
			add_default_type = false;
		}
	}
	if (add_default_type) {
		TypeInfo default_type_info = getDefaultTypeInfo(decl_type);
		Collection<TypeInfo> result = new ArrayList<TypeInfo>();
		result.add(default_type_info);
		return result;
	} else
		return multityped_result;
}
 
开发者ID:mleoking,项目名称:PhET,代码行数:47,代码来源:TypeInfo.java

示例4: glDrawArraysIndirect

import org.lwjgl.util.generator.opengl.GLvoid; //导入依赖的package包/类
@Reuse("GL40")
void glDrawArraysIndirect(@GLenum int mode, @BufferObject(BufferKind.IndirectBO) @Check("4 * 4") @Const @GLvoid ByteBuffer indirect);
 
开发者ID:mleoking,项目名称:PhET,代码行数:3,代码来源:ARB_draw_indirect.java

示例5: glDrawElementsIndirect

import org.lwjgl.util.generator.opengl.GLvoid; //导入依赖的package包/类
@Reuse("GL40")
void glDrawElementsIndirect(@GLenum int mode, @GLenum int type, @BufferObject(BufferKind.IndirectBO) @Check("5 * 4") @Const @GLvoid ByteBuffer indirect);
 
开发者ID:mleoking,项目名称:PhET,代码行数:3,代码来源:ARB_draw_indirect.java

示例6: glGetProgramBinary

import org.lwjgl.util.generator.opengl.GLvoid; //导入依赖的package包/类
@Reuse("GL41")
void glGetProgramBinary(@GLuint int program, @AutoSize("binary") @GLsizei int bufSize,
                        @Check(value = "1", canBeNull = true) @GLsizei IntBuffer length,
                        @Check("1") @GLenum IntBuffer binaryFormat,
                        @OutParameter @GLvoid ByteBuffer binary);
 
开发者ID:mleoking,项目名称:PhET,代码行数:6,代码来源:ARB_get_program_binary.java

示例7: glProgramBinary

import org.lwjgl.util.generator.opengl.GLvoid; //导入依赖的package包/类
@Reuse("GL41")
void glProgramBinary(@GLuint int program, @GLenum int binaryFormat, @Const @GLvoid ByteBuffer binary, @AutoSize("binary") @GLsizei int length);
 
开发者ID:mleoking,项目名称:PhET,代码行数:3,代码来源:ARB_get_program_binary.java

示例8: glCompressedTexImage1DARB

import org.lwjgl.util.generator.opengl.GLvoid; //导入依赖的package包/类
void glCompressedTexImage1DARB(@GLenum int target, int level, @GLenum int internalformat, @GLsizei int width, int border, @AutoSize("pData") @GLsizei int imageSize,
@BufferObject(BufferKind.UnpackPBO)
@Check
@Const
@GLvoid
ByteBuffer pData);
 
开发者ID:mleoking,项目名称:PhET,代码行数:7,代码来源:ARB_texture_compression.java

示例9: glCompressedTexImage2DARB

import org.lwjgl.util.generator.opengl.GLvoid; //导入依赖的package包/类
void glCompressedTexImage2DARB(@GLenum int target, int level, @GLenum int internalformat, @GLsizei int width, @GLsizei int height, int border, @AutoSize("pData") @GLsizei int imageSize,
@BufferObject(BufferKind.UnpackPBO)
@Check
@Const
@GLvoid
ByteBuffer pData);
 
开发者ID:mleoking,项目名称:PhET,代码行数:7,代码来源:ARB_texture_compression.java

示例10: glCompressedTexImage3DARB

import org.lwjgl.util.generator.opengl.GLvoid; //导入依赖的package包/类
void glCompressedTexImage3DARB(@GLenum int target, int level, @GLenum int internalformat, @GLsizei int width, @GLsizei int height, @GLsizei int depth, int border, @AutoSize("pData") @GLsizei int imageSize,
@BufferObject(BufferKind.UnpackPBO)
@Check
@Const
@GLvoid
ByteBuffer pData);
 
开发者ID:mleoking,项目名称:PhET,代码行数:7,代码来源:ARB_texture_compression.java

示例11: glCompressedTexSubImage1DARB

import org.lwjgl.util.generator.opengl.GLvoid; //导入依赖的package包/类
void glCompressedTexSubImage1DARB(@GLenum int target, int level, int xoffset, @GLsizei int width, @GLenum int format, @AutoSize("pData") @GLsizei int imageSize,
@BufferObject(BufferKind.UnpackPBO)
@Check
@Const
@GLvoid
ByteBuffer pData);
 
开发者ID:mleoking,项目名称:PhET,代码行数:7,代码来源:ARB_texture_compression.java

示例12: glCompressedTexSubImage2DARB

import org.lwjgl.util.generator.opengl.GLvoid; //导入依赖的package包/类
void glCompressedTexSubImage2DARB(@GLenum int target, int level, int xoffset, int yoffset, @GLsizei int width, @GLsizei int height, @GLenum int format, @AutoSize("pData") @GLsizei int imageSize,
@BufferObject(BufferKind.UnpackPBO)
@Check
@Const
@GLvoid
ByteBuffer pData);
 
开发者ID:mleoking,项目名称:PhET,代码行数:7,代码来源:ARB_texture_compression.java

示例13: glCompressedTexSubImage3DARB

import org.lwjgl.util.generator.opengl.GLvoid; //导入依赖的package包/类
void glCompressedTexSubImage3DARB(@GLenum int target, int level, int xoffset, int yoffset, int zoffset, @GLsizei int width, @GLsizei int height, @GLsizei int depth, @GLenum int format, @AutoSize("pData") @GLsizei int imageSize,
@BufferObject(BufferKind.UnpackPBO)
@Check
@Const
@GLvoid
ByteBuffer pData);
 
开发者ID:mleoking,项目名称:PhET,代码行数:7,代码来源:ARB_texture_compression.java

示例14: glGetCompressedTexImageARB

import org.lwjgl.util.generator.opengl.GLvoid; //导入依赖的package包/类
void glGetCompressedTexImageARB(@GLenum int target, int lod,
@OutParameter
      @BufferObject(BufferKind.PackPBO)
      @Check
      @GLvoid
      ByteBuffer pImg);
 
开发者ID:mleoking,项目名称:PhET,代码行数:7,代码来源:ARB_texture_compression.java

示例15: getTypeInfos

import org.lwjgl.util.generator.opengl.GLvoid; //导入依赖的package包/类
private static Collection<TypeInfo> getTypeInfos(TypeMap type_map, Declaration param, TypeMirror decl_type) {
	Collection<AnnotationMirror> annotations = Utils.getSortedAnnotations(param.getAnnotationMirrors());
	Map<Class, TypeInfo> types = new HashMap<Class, TypeInfo>();
	Collection<TypeInfo> multityped_result = new ArrayList<TypeInfo>();
	boolean add_default_type = true;
	for (AnnotationMirror annotation : annotations) {
		NativeType native_type_annotation = NativeTypeTranslator.getAnnotation(annotation, NativeType.class);
		if (native_type_annotation != null) {
			Class<? extends Annotation> annotation_type = NativeTypeTranslator.getClassFromType(annotation.getAnnotationType());
			Signedness signedness = type_map.getSignednessFromType(annotation_type);
			Class inverse_type = type_map.getInverseType(annotation_type);
			String auto_type = type_map.getAutoTypeFromAnnotation(annotation);
			if (inverse_type != null) {
				if (types.containsKey(inverse_type)) {
					TypeInfo inverse_type_info = types.get(inverse_type);
					String inverse_auto_type = inverse_type_info.getAutoType();
					auto_type = signedness == Signedness.UNSIGNED ? auto_type + " : " + inverse_auto_type :
						inverse_auto_type + " : " + auto_type;
					auto_type = UNSIGNED_PARAMETER_NAME + " ? " + auto_type;
					signedness = Signedness.BOTH;
					types.remove(inverse_type);
					multityped_result.remove(inverse_type_info);
				}
			}
			Class type;
			PrimitiveType.Kind kind;
			GLvoid void_annotation = param.getAnnotation(GLvoid.class);
			kind = void_annotation == null ? type_map.getPrimitiveTypeFromNativeType(annotation_type) : void_annotation.value();
			if (Utils.getNIOBufferType(decl_type) != null)
				type = getBufferTypeFromPrimitiveKind(kind, annotation);
			else
				type = getTypeFromPrimitiveKind(kind);
			TypeInfo type_info = new TypeInfo(type, signedness, auto_type);
			types.put(annotation_type, type_info);
			multityped_result.add(type_info);
			add_default_type = false;
		}
	}
	if (add_default_type) {
		TypeInfo default_type_info = getDefaultTypeInfo(decl_type);
		Collection<TypeInfo> result = new ArrayList<TypeInfo>();
		result.add(default_type_info);
		return result;
	} else
		return multityped_result;
}
 
开发者ID:Superloup10,项目名称:Wolf_game,代码行数:47,代码来源:TypeInfo.java


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