本文整理汇总了Java中com.jogamp.opengl.GL4.glGetProgramPipelineiv方法的典型用法代码示例。如果您正苦于以下问题:Java GL4.glGetProgramPipelineiv方法的具体用法?Java GL4.glGetProgramPipelineiv怎么用?Java GL4.glGetProgramPipelineiv使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.jogamp.opengl.GL4
的用法示例。
在下文中一共展示了GL4.glGetProgramPipelineiv方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: validate
import com.jogamp.opengl.GL4; //导入方法依赖的package包/类
private void validate(GL4 gl4) {
int[] status = {0};
gl4.glValidateProgramPipeline(pipelineName.get(0));
gl4.glGetProgramPipelineiv(pipelineName.get(0), GL_VALIDATE_STATUS, status, 0);
if (status[0] != GL_TRUE) {
int[] lengthMax = {0};
gl4.glGetProgramPipelineiv(pipelineName.get(0), GL_INFO_LOG_LENGTH, lengthMax, 0);
int[] lengthQuery = {0};
byte[] infoLog = new byte[lengthMax[0] + 1];
gl4.glGetProgramPipelineInfoLog(pipelineName.get(0), infoLog.length,
lengthQuery, 0,
infoLog, 0);
gl4.glDebugMessageInsert(
GL_DEBUG_SOURCE_APPLICATION,
GL_DEBUG_TYPE_OTHER, 76,
GL_DEBUG_SEVERITY_LOW,
lengthQuery[0],
new String(infoLog).trim());
}
}
示例2: validate
import com.jogamp.opengl.GL4; //导入方法依赖的package包/类
private void validate(GL4 gl4) {
int[] status = {0};
gl4.glValidateProgramPipeline(pipelineName.get(0));
gl4.glGetProgramPipelineiv(pipelineName.get(0), GL_VALIDATE_STATUS, status, 0);
if (status[0] != GL_TRUE) {
int[] lengthMax = {0};
gl4.glGetProgramPipelineiv(pipelineName.get(0), GL_INFO_LOG_LENGTH, lengthMax, 0);
IntBuffer lengthQuery = GLBuffers.newDirectIntBuffer(1);
ByteBuffer infoLog = GLBuffers.newDirectByteBuffer(lengthMax[0] + 1);
gl4.glGetProgramPipelineInfoLog(pipelineName.get(0), infoLog.capacity(), lengthQuery, infoLog);
gl4.glDebugMessageInsert(
GL_DEBUG_SOURCE_APPLICATION,
GL_DEBUG_TYPE_OTHER, 76,
GL_DEBUG_SEVERITY_LOW,
lengthQuery.get(0), new String(infoLog.array()).trim());
}
}
示例3: validate
import com.jogamp.opengl.GL4; //导入方法依赖的package包/类
private void validate(GL4 gl4) {
int[] status = {0};
gl4.glValidateProgramPipeline(pipelineName[0]);
gl4.glGetProgramPipelineiv(pipelineName[0], GL_VALIDATE_STATUS, status, 0);
if (status[0] != GL_TRUE) {
int[] lengthMax = {0};
gl4.glGetProgramPipelineiv(pipelineName[0], GL_INFO_LOG_LENGTH, lengthMax, 0);
int[] lengthQuery = {0};
byte[] infoLog = new byte[lengthMax[0] + 1];
gl4.glGetProgramPipelineInfoLog(pipelineName[0], infoLog.length, lengthQuery, 0, infoLog, 0);
gl4.glDebugMessageInsert(
GL_DEBUG_SOURCE_APPLICATION,
GL_DEBUG_TYPE_OTHER, 76,
GL_DEBUG_SEVERITY_LOW,
lengthQuery[0], new String(infoLog).trim());
}
}
示例4: validate
import com.jogamp.opengl.GL4; //导入方法依赖的package包/类
private void validate(GL4 gl4) {
int[] status = {0};
int[] lengthMax = {0};
gl4.glValidateProgramPipeline(pipelineName.get(0));
gl4.glGetProgramPipelineiv(pipelineName.get(0), GL_VALIDATE_STATUS, status, 0);
gl4.glGetProgramPipelineiv(pipelineName.get(0), GL_INFO_LOG_LENGTH, lengthMax, 0);
int[] lengthQuery = {0};
byte[] infoLog = new byte[lengthMax[0] + 1];
gl4.glGetProgramPipelineInfoLog(pipelineName.get(0), infoLog.length, lengthQuery, 0, infoLog, 0);
gl4.glDebugMessageInsert(
GL_DEBUG_SOURCE_APPLICATION,
GL_DEBUG_TYPE_OTHER, 76,
GL_DEBUG_SEVERITY_LOW,
lengthQuery[0],
new String(infoLog).trim());
}