Java 类org.lwjgl.util.generator.Alternate 实例源码

项目:PhET    文件:GL20.java   
/** Overloads glGetActiveUniform. This version returns only the uniform type. */
@Alternate(value = "glGetActiveUniform", javaAlt = true)
@GLreturn(value = "type")
void glGetActiveUniformType(@GLuint int program, @GLuint int index, @Constant("0") @GLsizei int maxLength,
                            @OutParameter @GLsizei @Constant("0L") IntBuffer length,
                            @OutParameter @Constant("MemoryUtil.getAddress(type, 1)") IntBuffer size, // Reuse type buffer and ignore
                            @OutParameter @GLenum IntBuffer type,
                            @OutParameter @GLchar @Constant("APIUtil.getBufferByte0(caps)") ByteBuffer name);
项目:PhET    文件:GLReferencesGeneratorProcessorFactory.java   
private static void generateCopiesFromMethods(PrintWriter writer, InterfaceDeclaration interface_decl) {
    for (MethodDeclaration method : interface_decl.getMethods()) {
        if ( method.getAnnotation(Alternate.class) != null )
            continue;

        generateCopiesFromParameters(writer, interface_decl, method);
    }
}
项目:PhET    文件:NV_transform_feedback.java   
/** Overloads glGetActiveVaryingNV. This version returns only the varying type. */
@Alternate(value = "glGetActiveVaryingNV", javaAlt = true)
@GLreturn(value = "type")
void glGetActiveVaryingTypeNV(@GLuint int program, @GLuint int index, @Constant("0") @GLsizei int bufSize,
                              @OutParameter @GLsizei @Constant("0L") IntBuffer length,
                              @OutParameter @Constant("MemoryUtil.getAddress(type, 1)") IntBuffer size, // Reuse type buffer and ignore
                              @OutParameter @GLenum IntBuffer type,
                              @OutParameter @GLchar @Constant("APIUtil.getBufferByte0(caps)") ByteBuffer name);
项目:PhET    文件:ARB_sync.java   
/** @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);
项目:PhET    文件:ARB_uniform_buffer_object.java   
/** @deprecated Will be removed in 3.0. Use {@link #glGetActiveUniformsi} instead. */
@Alternate("glGetActiveUniformsiv")
@GLreturn("params")
@StripPostfix("params")
@Reuse(value = "GL31", method = "glGetActiveUniformsi")
@Deprecated
void glGetActiveUniformsiv(@GLuint int program, @Constant("1") @GLsizei int uniformCount,
                           @Constant(value = "params.put(1, uniformIndex), 1", keepParam = true) int uniformIndex, // Reuse params buffer
                           @GLenum int pname,
                           @OutParameter @GLint IntBuffer params);
项目:PhET    文件:GL20.java   
/** @deprecated Will be removed in 3.0. Use {@link #glGetProgrami} instead. */
@Alternate("glGetProgramiv")
@GLreturn("params")
@StripPostfix("params")
@Reuse(value = "GL20", method = "glGetProgrami")
@Deprecated
void glGetProgramiv2(@GLuint int program, @GLenum int pname, @OutParameter IntBuffer params);
项目:PhET    文件:ARB_uniform_buffer_object.java   
/** @deprecated Will be removed in 3.0. Use {@link #glGetActiveUniformBlocki} instead. */
@Alternate("glGetActiveUniformBlockiv")
@GLreturn("params")
@StripPostfix("params")
@Reuse(value = "GL31", method = "glGetActiveUniformBlocki")
@Deprecated
void glGetActiveUniformBlockiv2(@GLuint int program, @GLuint int uniformBlockIndex, @GLenum int pname,
                                @OutParameter @GLint IntBuffer params);
项目:PhET    文件:EXT_transform_feedback.java   
@Alternate("glGetTransformFeedbackVaryingEXT")
@GLreturn(value = "name", maxLength = "bufSize")
void glGetTransformFeedbackVaryingEXT2(@GLuint int program, @GLuint int index, @GLsizei int bufSize,
                                       @OutParameter @GLsizei @Constant("MemoryUtil.getAddress0(name_length)") IntBuffer length,
                                       @OutParameter @GLsizei @Check("1") IntBuffer size,
                                       @OutParameter @GLenum @Check("1") IntBuffer type,
                                       @OutParameter @GLchar ByteBuffer name);
项目:PhET    文件:GL30.java   
/** @deprecated Will be removed in 3.0. Use {@link #glGetRenderbufferParameteri} instead. */
@Alternate("glGetRenderbufferParameteriv")
@GLreturn("params")
@StripPostfix("params")
@Reuse(value = "GL30", method = "glGetRenderbufferParameteri")
@Deprecated
void glGetRenderbufferParameteriv2(@GLenum int target, @GLenum int pname, @OutParameter IntBuffer params);
项目:PhET    文件:ARB_sync.java   
@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);
项目:PhET    文件:NV_program.java   
/** @deprecated Will be removed in 3.0. Use {@link #glGetProgramiNV} instead. */
@Alternate("glGetProgramivNV")
@GLreturn("params")
@StripPostfix("params")
@Reuse(value = "NVProgram", method = "glGetProgramiNV")
@Deprecated
void glGetProgramivNV2(@GLuint int programID, @GLenum int parameterName, @OutParameter @GLint IntBuffer params);
项目:PhET    文件:GL40.java   
/** @deprecated Will be removed in 3.0. Use {@link #glGetActiveSubroutineUniformi} instead. */
@Alternate("glGetActiveSubroutineUniformiv")
@GLreturn("values")
@StripPostfix("values")
@Reuse(value = "GL40", method = "glGetActiveSubroutineUniformi")
@Deprecated
void glGetActiveSubroutineUniformiv2(@GLuint int program, @GLenum int shadertype, @GLuint int index, @GLenum int pname,
                                     @OutParameter IntBuffer values);
项目:PhET    文件:EXT_framebuffer_object.java   
/** @deprecated Will be removed in 3.0. Use {@link #glGetFramebufferAttachmentParameteriEXT} instead. */
@Alternate("glGetFramebufferAttachmentParameterivEXT")
@GLreturn("params")
@StripPostfix("params")
@Reuse(value = "EXTFramebufferObject", method = "glGetFramebufferAttachmentParameteriEXT")
@Deprecated
void glGetFramebufferAttachmentParameterivEXT2(@GLenum int target, @GLenum int attachment, @GLenum int pname, @OutParameter IntBuffer params);
项目:PhET    文件:GL40.java   
/** @deprecated Will be removed in 3.0. Use {@link #glGetQueryIndexedi} instead. */
@Alternate("glGetQueryIndexediv")
@GLreturn("params")
@StripPostfix("params")
@Reuse(value = "GL40", method = "glGetQueryIndexedi")
@Deprecated
void glGetQueryIndexediv2(@GLenum int target, @GLuint int index, @GLenum int pname, @OutParameter IntBuffer params);
项目:PhET    文件:ARB_occlusion_query.java   
/** @deprecated Will be removed in 3.0. Use {@link #glGetQueryiARB} instead. */
@Alternate("glGetQueryivARB")
@GLreturn("params")
@StripPostfix("params")
@Reuse(value = "ARBOcclusionQuery", method = "glGetQueryiARB")
@Deprecated
void glGetQueryivARB2(@GLenum int target, @GLenum int pname, @OutParameter IntBuffer params);
项目:PhET    文件:EXT_framebuffer_object.java   
/** @deprecated Will be removed in 3.0. Use {@link #glGetRenderbufferParameteriEXT} instead. */
@Alternate("glGetRenderbufferParameterivEXT")
@GLreturn("params")
@StripPostfix("params")
@Reuse(value = "EXTFramebufferObject", method = "glGetRenderbufferParameteriEXT")
@Deprecated
void glGetRenderbufferParameterivEXT2(@GLenum int target, @GLenum int pname, @OutParameter IntBuffer params);
项目:PhET    文件:ARB_framebuffer_object.java   
/** @deprecated Will be removed in 3.0. Use {@link #glGetFramebufferAttachmentParameteri} instead. */
@Alternate("glGetFramebufferAttachmentParameteriv")
@GLreturn("params")
@StripPostfix("params")
@Reuse(value = "GL30", method = "glGetFramebufferAttachmentParameteri")
@Deprecated
void glGetFramebufferAttachmentParameteriv2(@GLenum int target, @GLenum int attachment,
                                            @GLenum int pname, @OutParameter IntBuffer params);
项目:PhET    文件:APPLE_fence.java   
@Alternate("glDeleteFencesAPPLE")
void glDeleteFencesAPPLE(@Constant("1") @GLsizei int n, @Const @GLuint @Constant(value = "APIUtil.getInt(caps, fence)", keepParam = true) int fence);
项目:PhET    文件:ARB_shader_subroutine.java   
@Alternate("glGetSubroutineUniformLocation")
@Reuse("GL40")
int glGetSubroutineUniformLocation(@GLuint int program, @GLenum int shadertype, @NullTerminated CharSequence name);
项目:PhET    文件:EXT_framebuffer_object.java   
@Alternate("glDeleteRenderbuffersEXT")
void glDeleteRenderbuffersEXT(@Constant("1") int n, @Constant(value = "APIUtil.getInt(caps, renderbuffer)", keepParam = true) int renderbuffer);
项目:PhET    文件:NV_register_combiners.java   
@Alternate("glGetCombinerOutputParameterfvNV")
@GLreturn("params")
@StripPostfix(value = "params", postfix = "v")
void glGetCombinerOutputParameterfvNV2(@GLenum int stage, @GLenum int portion, @GLenum int pname, @OutParameter FloatBuffer params);
项目:PhET    文件:ARB_viewport_array.java   
@Reuse("EXTDrawBuffers2")
@Alternate("glGetIntegerIndexedivEXT")
@GLreturn("v")
@StripPostfix(value = "v", extension = "EXT")
void glGetIntegerIndexedvEXT2(@GLenum int target, @GLuint int index, @OutParameter IntBuffer v);
项目:PhET    文件:APPLE_fence.java   
@Alternate("glGenFencesAPPLE")
@GLreturn("fences")
void glGenFencesAPPLE2(@Constant("1") @GLsizei int n, @OutParameter @GLuint IntBuffer fences);
项目:PhET    文件:EXT_texture_integer.java   
@Alternate("glTexParameterIivEXT")
@StripPostfix(value = "param", postfix = "v")
void glTexParameterIivEXT(@GLenum int target, @GLenum int pname, @Constant(value = "APIUtil.getInt(caps, param)", keepParam = true) int param);
项目:PhET    文件:NV_explicit_multisample.java   
@Reuse("EXTDrawBuffers2")
@Alternate("glGetBooleanIndexedvEXT")
@GLreturn("data")
@StripPostfix(value = "data", extension = "EXT")
void glGetBooleanIndexedvEXT2(@GLenum int pname, @GLuint int index, @OutParameter @GLboolean ByteBuffer data);
项目:PhET    文件:EXT_framebuffer_object.java   
@Alternate("glGetRenderbufferParameterivEXT")
@GLreturn("params")
@StripPostfix(value = "params", postfix = "v")
void glGetRenderbufferParameterivEXT3(@GLenum int target, @GLenum int pname, @OutParameter IntBuffer params);
项目:PhET    文件:EXT_framebuffer_object.java   
@Alternate("glGenRenderbuffersEXT")
@GLreturn("renderbuffers")
void glGenRenderbuffersEXT2(@Constant("1") int n, @OutParameter @GLuint IntBuffer renderbuffers);
项目:PhET    文件:ARB_vertex_array_object.java   
@Reuse("GL30")
@Alternate("glGenVertexArrays")
@GLreturn("arrays")
void glGenVertexArrays2(@Constant("1") @GLsizei int n, @OutParameter @GLuint IntBuffer arrays);
项目:PhET    文件:NV_program.java   
@Alternate("glGetProgramStringNV")
@Code("\t\tint programLength = glGetProgramiNV(programID, GL_PROGRAM_LENGTH_NV);")
@GLreturn(value="paramString", maxLength = "programLength", forceMaxLength = true)
void glGetProgramStringNV2(@GLuint int programID, @GLenum int parameterName, @OutParameter @GLchar ByteBuffer paramString);
项目:PhET    文件:NV_occlusion_query.java   
@Alternate("glGenOcclusionQueriesNV")
@GLreturn("piIDs")
void glGenOcclusionQueriesNV2(@Constant("1") @GLsizei int n, @OutParameter @GLuint IntBuffer piIDs);
项目:PhET    文件:ARB_uniform_buffer_object.java   
@Reuse("GL31")
@Alternate("glGetActiveUniformBlockiv")
@GLreturn("params")
@StripPostfix(value = "params", postfix = "v")
void glGetActiveUniformBlockiv3(@GLuint int program, @GLuint int uniformBlockIndex, @GLenum int pname,
                                @OutParameter @GLint IntBuffer params);
项目:PhET    文件:ARB_uniform_buffer_object.java   
@Reuse("GL31")
@Alternate("glGetActiveUniformBlockName")
@GLreturn(value = "uniformBlockName", maxLength = "bufSize")
void glGetActiveUniformBlockName2(@GLuint int program, @GLuint int uniformBlockIndex, @GLsizei int bufSize,
                                  @OutParameter @GLsizei @Constant("MemoryUtil.getAddress0(uniformBlockName_length)") IntBuffer length,
                                  @OutParameter @GLchar ByteBuffer uniformBlockName);
项目:PhET    文件:ARB_uniform_buffer_object.java   
@Reuse("GL30")
@Alternate("glGetIntegeri_v")
@GLreturn("data")
@StripPostfix("data")
void glGetIntegeri_v2(@GLenum int value, @GLuint int index, @OutParameter IntBuffer data);
项目:PhET    文件:GL20.java   
@Alternate("glBindAttribLocation")
void glBindAttribLocation(@GLuint int program, @GLuint int index, @NullTerminated CharSequence name);
项目:PhET    文件:GL33.java   
@Alternate("glGetQueryObjecti64v")
@GLreturn("params")
@StripPostfix(value = "params", postfix = "v")
void glGetQueryObjecti64v3(@GLuint int id, @GLenum int pname, @OutParameter @GLint64 LongBuffer params);
项目:PhET    文件:EFX10.java   
@Alternate(value = "alGenFilters", nativeAlt = true)
@ALvoid
void alGenFilters2(@Constant("1") @ALsizei int n, @Result @ALuint int filter);
项目:PhET    文件:GL33.java   
@Alternate("glGetSamplerParameterIiv")
@GLreturn("params")
@StripPostfix(value = "params", postfix = "v")
void glGetSamplerParameterIiv2(@GLuint int sampler, @GLenum int pname, @OutParameter IntBuffer params);
项目:PhET    文件:GL31.java   
@Alternate("glGetUniformBlockIndex")
@GLuint
int glGetUniformBlockIndex(@GLuint int program, @NullTerminated CharSequence uniformBlockName);
项目:PhET    文件:NV_occlusion_query.java   
@Alternate("glGetOcclusionQueryivNV")
@GLreturn("params")
@StripPostfix(value = "params", postfix = "v")
void glGetOcclusionQueryivNV2(@GLuint int id, @GLenum int pname, @OutParameter IntBuffer params);
项目:PhET    文件:GL31.java   
@Alternate("glGetActiveUniformBlockiv")
@GLreturn("params")
@StripPostfix(value = "params", postfix = "v")
void glGetActiveUniformBlockiv3(@GLuint int program, @GLuint int uniformBlockIndex, @GLenum int pname,
                                @OutParameter @GLint IntBuffer params);