About

Metadata

  • Last updated , by Anut
  • License Apache-2.0
  • Categories Graphics
  • Maintained by: Anut

  • Lottery factor: 0

Links

Installation

Package Flags

Use the -f option with cabal commands to enable flags

    example (off by default)

    Build example project

Readme

raylib-imgui: Haskell bindings for rlImGui

This package provides bindings to rlImGui allowing raylib and dear-imgui interop.

Usage

Add the following in your .cabal file:

...
build-depends:
  , base
  , dear-imgui==1.2.2
  , gl
  , GLFW-b
  , h-raylib
  , raylib-imgui==4.5.0.9
...

NOTE: Each version of raylib-imgui requires a specific version of dear-imgui. raylib-imgui 4.5.0.9 requires dear-imgui 1.2.2

And in your cabal.project file add the following:

package dear-imgui
  flags: -sdl +glfw +opengl3

This is required because raylib uses GLFW rather than SDL.

See the example directory in the source for example code.

See also