本文整理汇总了Java中org.lwjgl.util.glu.GLU.gluErrorString方法的典型用法代码示例。如果您正苦于以下问题:Java GLU.gluErrorString方法的具体用法?Java GLU.gluErrorString怎么用?Java GLU.gluErrorString使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.lwjgl.util.glu.GLU
的用法示例。
在下文中一共展示了GLU.gluErrorString方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: generateDisplayLists
import org.lwjgl.util.glu.GLU; //导入方法依赖的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.util.glu.GLU; //导入方法依赖的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: frameFinish
import org.lwjgl.util.glu.GLU; //导入方法依赖的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);
}
}
}
}
示例4: frameFinish
import org.lwjgl.util.glu.GLU; //导入方法依赖的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);
}
}
}
}
示例5: frameFinish
import org.lwjgl.util.glu.GLU; //导入方法依赖的package包/类
private void frameFinish()
{
if (this.mc.world != null)
{
long i = System.currentTimeMillis();
if (i > this.lastErrorCheckTimeMs + 10000L)
{
this.lastErrorCheckTimeMs = i;
int j = GlStateManager.glGetError();
if (j != 0)
{
String s = GLU.gluErrorString(j);
TextComponentString textcomponentstring = new TextComponentString(I18n.format("of.message.openglError", new Object[] {Integer.valueOf(j), s}));
this.mc.ingameGUI.getChatGUI().printChatMessage(textcomponentstring);
}
}
}
}
示例6: generateDisplayLists
import org.lwjgl.util.glu.GLU; //导入方法依赖的package包/类
/**
* Generates the specified number of display lists and returns the first index.
*/
public static synchronized int generateDisplayLists(int range)
{
int i = GlStateManager.glGenLists(range);
if (i == 0)
{
int j = GlStateManager.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;
}
}
示例7: checkGLError
import org.lwjgl.util.glu.GLU; //导入方法依赖的package包/类
private void checkGLError(String s)
{
int i = GL11.glGetError();
if(i != 0)
{
String s1 = GLU.gluErrorString(i);
System.out.println("########## GL ERROR ##########");
System.out.println((new StringBuilder()).append("@ ").append(s).toString());
System.out.println((new StringBuilder()).append(i).append(": ").append(s1).toString());
}
}
示例8: checkGlError
import org.lwjgl.util.glu.GLU; //导入方法依赖的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_);
}
}
示例9: checkGLError
import org.lwjgl.util.glu.GLU; //导入方法依赖的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);
}
}
}
示例10: checkGLError
import org.lwjgl.util.glu.GLU; //导入方法依赖的package包/类
/**
* Checks for an OpenGL error. If there is one, prints the error ID and error string.
*/
private void checkGLError(String message)
{
int i = GlStateManager.glGetError();
if (i != 0)
{
String s = GLU.gluErrorString(i);
LOGGER.error("########## GL ERROR ##########");
LOGGER.error("@ {}", new Object[] {message});
LOGGER.error("{}: {}", new Object[] {Integer.valueOf(i), s});
}
}
示例11: checkGLError
import org.lwjgl.util.glu.GLU; //导入方法依赖的package包/类
public static void checkGLError(String where)
{
int err = glGetError();
if (err != 0)
{
throw new IllegalStateException(where + ": " + GLU.gluErrorString(err));
}
}
示例12: checkGLError
import org.lwjgl.util.glu.GLU; //导入方法依赖的package包/类
public static void checkGLError(String where)
{
int err = GL11.glGetError();
if (err != 0)
{
throw new IllegalStateException(where + ": " + GLU.gluErrorString(err));
}
}
示例13: error
import org.lwjgl.util.glu.GLU; //导入方法依赖的package包/类
@Override
public void error(final int errnum) {
String estring;
estring = GLU.gluErrorString(errnum);
logger.error("Tessellation Error Number: " + errnum);
logger.error("Tessellation Error: " + estring);
super.error(errnum);
}
示例14: checkGLError
import org.lwjgl.util.glu.GLU; //导入方法依赖的package包/类
private static void checkGLError(String desc) {
int error = GL11.glGetError();
while(error != GL11.GL_NO_ERROR) {
String errorString = GLU.gluErrorString(error);
AnimfixModContainer.log.error("GL Error: " + errorString + "(" + error + ") @ " + desc);
error = GL11.glGetError();
}
}
示例15: exitOnGLError
import org.lwjgl.util.glu.GLU; //导入方法依赖的package包/类
private void exitOnGLError(String errorMessage) {
int errorValue = GL11.glGetError();
if (errorValue != GL11.GL_NO_ERROR) {
String errorString = GLU.gluErrorString(errorValue);
System.err.println("ERROR - " + errorMessage + ": " + errorString);
if (Display.isCreated()) Display.destroy();
System.exit(-1);
}
}