package raylib

All checked builds pass
  1. Overview
  2. Docs
OCaml bindings for raylib

Install

dune-project
 Dependency

Authors

Maintainers

Sources

raylib-2.4.2.tbz
sha256=99835d66dce2e6d73693b1af784c6b74c937c348904d166c250dc1b618b81ff4
sha512=b74ca2f8e9d9a2fc13bc860590b7fbcf30100295a9fb6006b25c80a343df8cec890700cc0fb084a063f8833400415283236666cdf06f44ab2e872c7b7e9d9485

doc/src/raylib.types/ctypes_reexports.ml.html

Source file ctypes_reexports.ml

1
2
3
4
5
6
7
8
9
10
11
12
13
14
(* Re-exports some ctypes functionality to the Raylib module *)
(* but it's a band-aid *)

module CArray = Ctypes.CArray

type 'a ctyp = 'a Ctypes.structure
type 'a ptr = 'a Ctypes.ptr

let to_ctyp (a : 'a Ctypes.structure) = a
let addr (x : 'a ctyp) = Ctypes.addr x
let to_voidp = Ctypes.to_voidp
let ptr_of_int i = Ctypes.(allocate int i)
let ptr_of_uint i = Ctypes.(allocate uint i)
let void_ptr_of_int i = Ctypes.(to_voidp (ptr_of_int i))