# @jaredly/reasongl-native

> Reason bindings to OpenGL

Latest version **1.0.3-touch5** (published 2018-03-09) · 0 weekly downloads

## Install

```sh
npm install @jaredly/reasongl-native
pnpm add @jaredly/reasongl-native
yarn add @jaredly/reasongl-native
bun add @jaredly/reasongl-native
```

## Health

**Score 5/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: insecure dependencies; abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.3-touch5 |
| Published | 2018-03-09 |
| First published | 2018-01-02 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 538.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | yes |
| GitHub stars | 1 |
| Author | bsansouci & schmavery |
| Maintainers | jaredly |

## Links

- npm: https://www.npmjs.com/package/@jaredly/reasongl-native
- Repository: https://github.com/jaredly/reasongl-native
- Homepage: https://github.com/jaredly/reasongl-native#readme
- Issues: https://github.com/jaredly/reasongl-native/issues
- npm.io page: https://npm.io/package/@jaredly/reasongl-native

## Dependencies (3)

- [Tgls](https://npm.io/package/Tgls.md) github:bsansouci/tgls#45ca252012060f1f96f85361776815eeb8b26b8c
- [Tsdl](https://npm.io/package/Tsdl.md) github:bsansouci/tsdl#ff6f02470778999ebdf9868f36bb3058ca6deb23
- [@jaredly/reasongl-interface](https://npm.io/package/@jaredly/reasongl-interface.md) 1.0.1-touch

## Recent versions

- 1.0.3-touch5 (latest) — 2018-03-09
- 1.0.3-touch4 — 2018-03-09
- 1.0.3-touch3 — 2018-03-09
- 1.0.3-touch2 — 2018-03-09
- 1.0.3-touch — 2018-03-09
- 1.0.3 — 2018-01-13
- 1.0.2 — 2018-01-13
- 1.0.1 — 2018-01-03
- 1.0.0 — 2018-01-02

## README

ReasonglNative
===

Slightly high level OCaml/Reason bindings to OpenGL.

This repository follows the interface described in [ReasonglInterface](https://github.com/bsansouci/reasongl-interface) which is an abstraction designed on top of OpenGL 2.1 and WebGL. This package also depends on SDL to create a window and handle events.

The best way to use this is to use [bsb-native](https://github.com/bsansouci/bsb-native), add this package to your `bs-dependencies` along with `ReasonglInterface` and then simply refer to the module `Reasongl`.

If you're not using `bsb-native` you can simply wrap your code in a functor that takes `Gl : ReasonglInterface.Gl.t` and have, for example, a native entry point file containing `module NativeMain = Main (ReasonglNative);` which just passes the right implementation manually.

If you want super thin direct bindings to OpenGL use [tgls](https://github.com/bsansouci/tgls).

If you want direct bindings to SDL use [tsdl](https://github.com/bsansouci/tsdl).

---
_Source: https://npm.io/package/@jaredly/reasongl-native · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
