本文整理汇总了Java中org.lwjgl.opengl.GL11.glGetError方法的典型用法代码示例。如果您正苦于以下问题:Java GL11.glGetError方法的具体用法?Java GL11.glGetError怎么用?Java GL11.glGetError使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.lwjgl.opengl.GL11
的用法示例。
在下文中一共展示了GL11.glGetError方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: generateDisplayLists
import org.lwjgl.opengl.GL11; //导入方法依赖的package包/类
/**
* Generates the specified number of display lists and returns the first index.
*/
public static synchronized int generateDisplayLists(int range)
{
int i = GL11.glGenLists(range);
if (i == 0)
{
int j = GL11.glGetError();
String s = "No error code reported";
if (j != 0)
{
s = GLU.gluErrorString(j);
}
throw new IllegalStateException("glGenLists returned an ID of 0 for a count of " + range + ", GL error (" + j + "): " + s);
}
else
{
return i;
}
}
示例2: checkGLError
import org.lwjgl.opengl.GL11; //导入方法依赖的package包/类
/**
* Checks for an OpenGL error. If there is one, prints the error ID and error string.
*/
private void checkGLError(String message)
{
if (this.enableGLErrorChecking)
{
int i = GL11.glGetError();
if (i != 0)
{
String s = GLU.gluErrorString(i);
logger.error("########## GL ERROR ##########");
logger.error("@ " + message);
logger.error(i + ": " + s);
}
}
}
示例3: checkGLError
import org.lwjgl.opengl.GL11; //导入方法依赖的package包/类
public static int checkGLError(String location)
{
int i = GL11.glGetError();
if (i != 0)
{
boolean flag = false;
if (!flag)
{
if (i == 1286)
{
int j = EXTFramebufferObject.glCheckFramebufferStatusEXT(36160);
System.err.format("GL error 0x%04X: %s (Fb status 0x%04X) at %s\n", new Object[] {Integer.valueOf(i), GLU.gluErrorString(i), Integer.valueOf(j), location});
}
else
{
System.err.format("GL error 0x%04X: %s at %s\n", new Object[] {Integer.valueOf(i), GLU.gluErrorString(i), location});
}
}
}
return i;
}
示例4: frameFinish
import org.lwjgl.opengl.GL11; //导入方法依赖的package包/类
private void frameFinish()
{
if (this.mc.theWorld != null)
{
long i = System.currentTimeMillis();
if (i > this.lastErrorCheckTimeMs + 10000L)
{
this.lastErrorCheckTimeMs = i;
int j = GL11.glGetError();
if (j != 0)
{
String s = GLU.gluErrorString(j);
ChatComponentText chatcomponenttext = new ChatComponentText(I18n.format("of.message.openglError", new Object[] {Integer.valueOf(j), s}));
this.mc.ingameGUI.getChatGUI().printChatMessage(chatcomponenttext);
}
}
}
}
示例5: frameFinish
import org.lwjgl.opengl.GL11; //导入方法依赖的package包/类
private void frameFinish() {
if (this.mc.theWorld != null) {
long i = System.currentTimeMillis();
if (i > this.lastErrorCheckTimeMs + 10000L) {
this.lastErrorCheckTimeMs = i;
int j = GL11.glGetError();
if (j != 0) {
String s = GLU.gluErrorString(j);
ChatComponentText chatcomponenttext = new ChatComponentText(
"\u00a7eOpenGL Error\u00a7f: " + j + " (" + s + ")");
this.mc.ingameGUI.getChatGUI().printChatMessage(chatcomponenttext);
}
}
}
}
示例6: checkGlError
import org.lwjgl.opengl.GL11; //导入方法依赖的package包/类
public static void checkGlError(String p_checkGlError_0_)
{
int i = GL11.glGetError();
if (i != 0)
{
String s = GLU.gluErrorString(i);
error("OpenGlError: " + i + " (" + s + "), at: " + p_checkGlError_0_);
}
}
示例7: checkGLError
import org.lwjgl.opengl.GL11; //导入方法依赖的package包/类
/**
* Checks for an OpenGL error. If there is one, prints the error ID and error
* string.
*/
private void checkGLError(String message) {
if (this.enableGLErrorChecking) {
int i = GL11.glGetError();
if (i != 0) {
String s = GLU.gluErrorString(i);
logger.error("########## GL ERROR ##########");
logger.error("@ " + message);
logger.error(i + ": " + s);
}
}
}
示例8: glGetError
import org.lwjgl.opengl.GL11; //导入方法依赖的package包/类
public void glGetError() {
GL11.glGetError();
}
示例9: glGetError
import org.lwjgl.opengl.GL11; //导入方法依赖的package包/类
public static int glGetError()
{
return GL11.glGetError();
}