package raylib
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
OCaml bindings for raylib
Install
dune-project
Dependency
Authors
Maintainers
Sources
raylib-2.2.1.tbz
sha256=f3bd8a1a7a6b3c979e42b4ad3094123071b4df950f22a1d00f5d5a54b60d0f24
sha512=8e3f23c7134a2a400ea2b9698155a64cfc4f3a157ddbab81f73aa6d46212753badd706bb890851c5ac0d70c3f7e52fbed4ce148b8e68fc3df3108ea14cd8aab1
doc/src/raylib.core/raylib_core.ml.html
Source file raylib_core.ml
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48include Ctypes_reexports include Raylib_types open Ctypes_reexports open Ctypes include Raylib_c.Raylib_generated.Functions (* CArray or string wrapped functions *) let load_file_data path = let count = ptr_of_int 0 in let data = _load_file_data path count in let s = string_from_ptr data ~length:!@count in _unload_file_data data; s let save_file_data path data = let count = CArray.length data in _save_file_data path (to_voidp (CArray.start data)) count let export_data_as_code data filename = _export_data_as_code data (String.length data) filename let _strlen ptr = let i = ref 0 in while !@(ptr +@ !i) <> '\000' do incr i done; !i let load_file_text path = let text = _load_file_text path in let count = _strlen text in let s = string_from_ptr text ~length:count in _unload_file_text text; s let compress_data in_data = let in_count = CArray.length in_data in let out_count = ptr_of_int 0 in let out_data = _compress_data (CArray.start in_data) in_count out_count in CArray.from_ptr out_data !@out_count let decompress_data in_data = let in_count = CArray.length in_data in let out_count = ptr_of_int 0 in let out_data = _decompress_data (CArray.start in_data) in_count out_count in CArray.from_ptr out_data !@out_count let get_char_pressed () = _get_char_pressed () |> Uchar.of_int
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>