本文整理匯總了Java中org.lwjgl.opengl.GL30.GL_FRAMEBUFFER_COMPLETE屬性的典型用法代碼示例。如果您正苦於以下問題:Java GL30.GL_FRAMEBUFFER_COMPLETE屬性的具體用法?Java GL30.GL_FRAMEBUFFER_COMPLETE怎麽用?Java GL30.GL_FRAMEBUFFER_COMPLETE使用的例子?那麽, 這裏精選的屬性代碼示例或許可以為您提供幫助。您也可以進一步了解該屬性所在類org.lwjgl.opengl.GL30
的用法示例。
在下文中一共展示了GL30.GL_FRAMEBUFFER_COMPLETE屬性的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: verifyIntegrity
public void verifyIntegrity() {
bind();
if(GL30.glCheckFramebufferStatus(GL30.GL_FRAMEBUFFER) != GL30.GL_FRAMEBUFFER_COMPLETE) {
System.err.println("Error in FrameBuffer.verifyIntegrity(): Framebuffer is not complete");
new Exception().printStackTrace();
}
unbind();
}
示例2: isComplete
/**
* @return True if this framebuffer has been correctly set up and is
* complete.
*/
public boolean isComplete() {
GL30.glBindFramebuffer(GL30.GL_FRAMEBUFFER, fboId);
boolean complete = GL30.glCheckFramebufferStatus(GL30.GL_FRAMEBUFFER) == GL30.GL_FRAMEBUFFER_COMPLETE;
GL30.glBindFramebuffer(GL30.GL_FRAMEBUFFER, 0);
return complete;
}
示例3: isComplete
/**
* @return True if this framebuffer has been correctly set up and is
* complete.
*/
public boolean isComplete() {
GL30.glBindFramebuffer(GL30.GL_FRAMEBUFFER, fboId);
boolean complete = GL30.glCheckFramebufferStatus(GL30.GL_FRAMEBUFFER) == GL30.GL_FRAMEBUFFER_COMPLETE;
GL30.glBindFramebuffer(GL30.GL_FRAMEBUFFER, 0);
return complete;
}