コード例 #1
0
  /**
   * Virtual constructor. Calls {@link #malloc} and initializes the returned {@link
   * java.nio.ByteBuffer} instance with the specified values.
   */
  public static ByteBuffer malloc(
      int width, int height, int redBits, int greenBits, int blueBits, int refreshRate) {
    ByteBuffer glfwvidmode = malloc();

    width(glfwvidmode, width);
    height(glfwvidmode, height);
    redBits(glfwvidmode, redBits);
    greenBits(glfwvidmode, greenBits);
    blueBits(glfwvidmode, blueBits);
    refreshRate(glfwvidmode, refreshRate);

    return glfwvidmode;
  }
コード例 #2
0
 public void setBlueBits(int blueBits) {
   blueBits(struct, blueBits);
 }