本文整理汇总了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;
}