Update README.md
This commit is contained in:
parent
dd0c4025f8
commit
7eeea9c1f2
1 changed files with 23 additions and 1 deletions
24
README.md
24
README.md
|
|
@ -9,6 +9,28 @@ Bindings are autogenerated at compile time and all related libraries are downloa
|
||||||
nimble install nim_sdl2
|
nimble install nim_sdl2
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Usage
|
||||||
|
|
||||||
|
Examples are coming. To import (and use all libs except sdl2_gpu), use
|
||||||
|
|
||||||
|
```nim
|
||||||
|
import sdl2
|
||||||
|
import sdl2 / sdl2_gpu
|
||||||
|
```
|
||||||
|
|
||||||
|
If you want to only use specific libs, import individually:
|
||||||
|
|
||||||
|
```nim
|
||||||
|
import sdl2 / sdl2
|
||||||
|
import sdl2 / sdl2_image
|
||||||
|
import sdl2 / sdl2_ttf
|
||||||
|
import sdl2 / sdl2_net
|
||||||
|
import sdl2 / sdl2_mixer
|
||||||
|
import sdl2 / sdl2_gfx
|
||||||
|
|
||||||
|
import sdl2 / sdl2_gpu
|
||||||
|
```
|
||||||
|
|
||||||
## Configuration
|
## Configuration
|
||||||
|
|
||||||
This project uses [nimterop](https://github.com/nimterop/nimterop) to generate it's bindings and documentation.
|
This project uses [nimterop](https://github.com/nimterop/nimterop) to generate it's bindings and documentation.
|
||||||
|
|
@ -33,4 +55,4 @@ View autogenerated documentation [here](https://jyapayne.github.io/nim-sdl2).
|
||||||
|
|
||||||
All symbols and procedure definitions should be in line with their C counterparts, except with the prefixes removed (GPU_, SDL_, etc).
|
All symbols and procedure definitions should be in line with their C counterparts, except with the prefixes removed (GPU_, SDL_, etc).
|
||||||
|
|
||||||
See the [SDL2 docs](https://wiki.libsdl.org/) for more information.
|
See the [SDL2 docs](https://wiki.libsdl.org/) for more information.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue