本文整理汇总了Java中net.minecraft.client.renderer.OpenGlHelper.GL_FB_INCOMPLETE_ATTACHMENT属性的典型用法代码示例。如果您正苦于以下问题:Java OpenGlHelper.GL_FB_INCOMPLETE_ATTACHMENT属性的具体用法?Java OpenGlHelper.GL_FB_INCOMPLETE_ATTACHMENT怎么用?Java OpenGlHelper.GL_FB_INCOMPLETE_ATTACHMENT使用的例子?那么恭喜您, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在类net.minecraft.client.renderer.OpenGlHelper
的用法示例。
在下文中一共展示了OpenGlHelper.GL_FB_INCOMPLETE_ATTACHMENT属性的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: checkFramebufferComplete
public void checkFramebufferComplete()
{
int i = OpenGlHelper.glCheckFramebufferStatus(OpenGlHelper.GL_FRAMEBUFFER);
if (i != OpenGlHelper.GL_FRAMEBUFFER_COMPLETE)
{
if (i == OpenGlHelper.GL_FB_INCOMPLETE_ATTACHMENT)
{
throw new RuntimeException("GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT");
}
else if (i == OpenGlHelper.GL_FB_INCOMPLETE_MISS_ATTACH)
{
throw new RuntimeException("GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT");
}
else if (i == OpenGlHelper.GL_FB_INCOMPLETE_DRAW_BUFFER)
{
throw new RuntimeException("GL_FRAMEBUFFER_INCOMPLETE_DRAW_BUFFER");
}
else if (i == OpenGlHelper.GL_FB_INCOMPLETE_READ_BUFFER)
{
throw new RuntimeException("GL_FRAMEBUFFER_INCOMPLETE_READ_BUFFER");
}
else
{
throw new RuntimeException("glCheckFramebufferStatus returned unknown status:" + i);
}
}
}