org.lwjgl.opengl.Util Java Examples

The following examples show how to use org.lwjgl.opengl.Util. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: LwjglAbstractDisplay.java    From jmonkeyengine with BSD 3-Clause "New" or "Revised" License 5 votes vote down vote up
protected boolean checkGLError() {
    try {
        Util.checkGLError();
    } catch (OpenGLException ex){
        listener.handleError("An OpenGL error has occurred!", ex);
    }
    // NOTE: Always return true since this is used in an "assert" statement
    return true;
}
 
Example #2
Source File: LwjglOffscreenBuffer.java    From MikuMikuStudio with BSD 2-Clause "Simplified" License 5 votes vote down vote up
protected boolean checkGLError(){
    try {
        Util.checkGLError();
    } catch (OpenGLException ex){
        listener.handleError("An OpenGL error has occured!", ex);
    }
    // NOTE: Always return true since this is used in an "assert" statement
    return true;
}
 
Example #3
Source File: LwjglAbstractDisplay.java    From MikuMikuStudio with BSD 2-Clause "Simplified" License 5 votes vote down vote up
protected boolean checkGLError(){
    try {
        Util.checkGLError();
    } catch (OpenGLException ex){
        listener.handleError("An OpenGL error has occured!", ex);
    }
    // NOTE: Always return true since this is used in an "assert" statement
    return true;
}
 
Example #4
Source File: OpenGLUtils.java    From OpenModsLib with MIT License 4 votes vote down vote up
@SuppressWarnings("null")
public static String errorsToString(Iterable<Integer> errors) {
	return Joiner.on(',').join(Iterables.transform(errors, Util::translateGLErrorString));
}