Nim Game Library

A collection of bindings for popular libraries mostly used in computer graphics.

Explore the docs »

Table of Contents

  • About
  • Getting Started
  • Installation
  • Usage
  • Green Window Example
  • Contribute
  • Supported Bindings
  • Roadmap
  • Gallery
  • Contact
  • Credits
  • License

About

NimGL (Nim Game Library) is a collection of bindings for popular libraries, mostly used in computer graphics. A library of libraries.

This collection of bindings is heavily inspired by LWJGL3. It enables low-level access and is not a framework, so we highly encourage you to use a game engine if you do not have experience in working with low-level graphics development. These bindings contain several optional helper procedures to help with development and to better suit it to the language.

Getting Started

We highly recommend using a Nimble project to easily add requirements such as NimGL.

Installation

Follow these steps to install NimGL:

With Nimble file (recommended)

  1. Install Nimble, it comes preinstalled with Nim.
  2. Add it to your .nimble file: requires nimgl >= 1.0.0
  3. Build with nimble: nimble build

With Nimble install

  1. Install Nimble, it comes preinstalled with Nim.
  2. Install NimGL with Nimble: nimble install nimgl
  3. Build with Nim: nim c -r main.nim

Contribute

Your contributions mean the world to us. If you are missing some procedures, bindings, or functionality, feel free to open an Issue with the specification and some example on how to properly implement it. For the adventurous, feel free to open a Pull Request, which will be greatly appreciated.

Sent.dm

A unified messaging API for sending messages across SMS, WhatsApp, and more.

https://www.sent.dm/

Supported Bindings

LibraryDescription
GLFWCreate multiple windows, handle user input, and more...
VulkanHigh-efficiency, cross-platform access to modern GPUs...
OpenGLOpen Graphics Library for 2D and 3D vector graphics rendering.
ImGUIA graphical user interface library for C++ applications.

License

MIT License. NimGL is open source and under the MIT License; we highly encourage every developer that uses it to make improvements and fork them here.