本文整理汇总了Java中org.lwjgl.opengl.ARBShaderObjects.glGetInfoLogARB方法的典型用法代码示例。如果您正苦于以下问题:Java ARBShaderObjects.glGetInfoLogARB方法的具体用法?Java ARBShaderObjects.glGetInfoLogARB怎么用?Java ARBShaderObjects.glGetInfoLogARB使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.lwjgl.opengl.ARBShaderObjects
的用法示例。
在下文中一共展示了ARBShaderObjects.glGetInfoLogARB方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: printLogInfo
import org.lwjgl.opengl.ARBShaderObjects; //导入方法依赖的package包/类
private static boolean printLogInfo(int obj, String name)
{
IntBuffer intbuffer = BufferUtils.createIntBuffer(1);
ARBShaderObjects.glGetObjectParameterARB(obj, ARBShaderObjects.GL_OBJECT_INFO_LOG_LENGTH_ARB, (IntBuffer)intbuffer);
int i = intbuffer.get();
if (i > 1)
{
ByteBuffer bytebuffer = BufferUtils.createByteBuffer(i);
intbuffer.flip();
ARBShaderObjects.glGetInfoLogARB(obj, intbuffer, bytebuffer);
byte[] abyte = new byte[i];
bytebuffer.get(abyte);
if (abyte[i - 1] == 0)
{
abyte[i - 1] = 10;
}
String s = new String(abyte);
SMCLog.info("Info log: " + name + "\n" + s);
return false;
}
else
{
return true;
}
}
示例2: getLogInfo
import org.lwjgl.opengl.ARBShaderObjects; //导入方法依赖的package包/类
private String getLogInfo(int obj) {
return ARBShaderObjects.glGetInfoLogARB(obj, ARBShaderObjects.glGetObjectParameteriARB(obj, ARBShaderObjects.GL_OBJECT_INFO_LOG_LENGTH_ARB));
}
示例3: glGetShaderInfoLog
import org.lwjgl.opengl.ARBShaderObjects; //导入方法依赖的package包/类
public static String glGetShaderInfoLog(int shaderIn, int maxLength)
{
return arbShaders ? ARBShaderObjects.glGetInfoLogARB(shaderIn, maxLength) : GL20.glGetShaderInfoLog(shaderIn, maxLength);
}
示例4: glGetProgramInfoLog
import org.lwjgl.opengl.ARBShaderObjects; //导入方法依赖的package包/类
public static String glGetProgramInfoLog(int program, int maxLength)
{
return arbShaders ? ARBShaderObjects.glGetInfoLogARB(program, maxLength) : GL20.glGetProgramInfoLog(program, maxLength);
}
示例5: getLogInfo
import org.lwjgl.opengl.ARBShaderObjects; //导入方法依赖的package包/类
public static String getLogInfo(int obj) {
return ARBShaderObjects.glGetInfoLogARB(obj, ARBShaderObjects.glGetObjectParameteriARB(obj, ARBShaderObjects.GL_OBJECT_INFO_LOG_LENGTH_ARB));
}