package glfw-ocaml

  1. Overview
  2. Docs
A GLFW binding for OCaml

Install

dune-project
 Dependency

Authors

Maintainers

Sources

3.3.1.tar.gz
md5=be77a305cf56fbe9992b6f28b5a52307
sha512=b9333eeef5d3fd5e5f5d850d72a6afe2c7fb90828a71f7b7838b4e24d59c63cdc804afc79a4cc8e22e87383581da936cfa48359031899ebd13ba1601d9ee5012

doc/glfw-ocaml/GLFW/Image/index.html

Module GLFW.ImageSource

Image data for creating custom cursors and window icons.

Sourcetype t = private {
  1. width : int;
  2. height : int;
  3. pixels : bytes;
}
Sourceval create : width:int -> height:int -> pixels:bytes -> t

Create an image from the supplied pixel data with the specified width and height.

  • raises Invalid_argument

    if a dimension is negative or if there is not enough data to make an image with the specified dimensions.

OCaml

Innovation. Community. Security.