本文整理匯總了Java中org.lwjgl.glfw.GLFW.GLFW_TRUE屬性的典型用法代碼示例。如果您正苦於以下問題:Java GLFW.GLFW_TRUE屬性的具體用法?Java GLFW.GLFW_TRUE怎麽用?Java GLFW.GLFW_TRUE使用的例子?那麽, 這裏精選的屬性代碼示例或許可以為您提供幫助。您也可以進一步了解該屬性所在類org.lwjgl.glfw.GLFW
的用法示例。
在下文中一共展示了GLFW.GLFW_TRUE屬性的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: toString
@Override
public String toString() {
return "PixelBufferHandle [redBits=" + redBits + ", redBitsAccum=" + redBitsAccum + ", greenBits=" + greenBits
+ ", greenBitsAccum=" + greenBitsAccum + ", blueBits=" + blueBits + ", blueBitsAccum=" + blueBitsAccum
+ ", alphaBits=" + alphaBits + ", alphaBitsAccum=" + alphaBitsAccum + ", depthBits=" + depthBits
+ ", stencilBits=" + stencilBits + ", auxBuffers=" + auxBuffers + ", samples=" + samples
+ ", refreshRate=" + refreshRate + ", stereo=" + (stereo == GLFW.GLFW_TRUE ? "true" : "false")
+ ", srgbCapable=" + (srgbCapable == GLFW.GLFW_TRUE ? "true" : "false") + ", doubleBuffer="
+ (doubleBuffer == GLFW.GLFW_TRUE ? "true" : "false") + "]";
}
示例2: getWindowAttribute
private boolean getWindowAttribute(int attribute) {
return (GLFW.glfwGetWindowAttrib(this.windowID, attribute) == GLFW.GLFW_TRUE ? true : false);
}
示例3: checkBoolean
private int checkBoolean(int input) {
if (input <= 0)
return GLFW.GLFW_FALSE;
else
return GLFW.GLFW_TRUE;
}