package glfw-ocaml

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

Image data for creating custom cursors and window icons.

type t
val 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.