当前位置: 首页>>代码示例>>Java>>正文


Java GLU.gluErrorString方法代码示例

本文整理汇总了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;
    }
}
 
开发者ID:Notoh,项目名称:DecompiledMinecraft,代码行数:25,代码来源:GLAllocation.java

示例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);
        }
    }
}
 
开发者ID:Notoh,项目名称:DecompiledMinecraft,代码行数:19,代码来源:Minecraft.java

示例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);
            }
        }
    }
}
 
开发者ID:SkidJava,项目名称:BaseClient,代码行数:21,代码来源:EntityRenderer.java

示例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);
			}
		}
	}
}
 
开发者ID:SkidJava,项目名称:BaseClient,代码行数:18,代码来源:EntityRenderer.java

示例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);
            }
        }
    }
}
 
开发者ID:sudofox,项目名称:Backmemed,代码行数:21,代码来源:EntityRenderer.java

示例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;
    }
}
 
开发者ID:sudofox,项目名称:Backmemed,代码行数:25,代码来源:GLAllocation.java

示例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());
    }
}
 
开发者ID:jd-lang,项目名称:betaexpansion,代码行数:12,代码来源:Minecraft.java

示例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_);
    }
}
 
开发者ID:SkidJava,项目名称:BaseClient,代码行数:11,代码来源:Config.java

示例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);
		}
	}
}
 
开发者ID:SkidJava,项目名称:BaseClient,代码行数:17,代码来源:Minecraft.java

示例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});
    }
}
 
开发者ID:NSExceptional,项目名称:Zombe-Modpack,代码行数:16,代码来源:Minecraft.java

示例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));
    }
}
 
开发者ID:F1r3w477,项目名称:CustomWorldGen,代码行数:9,代码来源:SplashProgress.java

示例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));
    }
}
 
开发者ID:SchrodingersSpy,项目名称:TRHS_Club_Mod_2016,代码行数:9,代码来源:SplashProgress.java

示例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);
}
 
开发者ID:IGNF,项目名称:geoxygene,代码行数:9,代码来源:GLPrimitiveTessCallback.java

示例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();
    }
}
 
开发者ID:Kobata,项目名称:animated-texture-fix,代码行数:12,代码来源:FastTextureAtlasSprite.java

示例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);
    }
}
 
开发者ID:nilsschmidt1337,项目名称:ldparteditor,代码行数:12,代码来源:OpenGL3_TheQuadTextured.java


注:本文中的org.lwjgl.util.glu.GLU.gluErrorString方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。