Skip to content

dinau/sdl3_nim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sdl3_nim


alt

SDL3 wrapper for Nim language

This is highly work in progress and my experiment project.

Install


First delete old version

nimble uninstall sdl3_nim

then

nimble install https://github.com/dinau/sdl3_nim 

Build and run examples


git clone https://github.com/dinau/sdl3_nim
cd sdl3_nim
make 

or

pwd sdl3_nim
cd examples/basic
make run

alt

or

pwd 
sdl3_nim
cd examples/platformer
make run

alt

Develeopment : Generating SDL3 Nim header files with Futhark


The definition file of SDL3 can be updated by yourself as follows,

  1. Replace src/private/SDL3 with latest officail SDL3-devel library

  2. Install Futhark

  3. Generate definition file

    pwd 
    sdl3_nim
    make gen

    src/sdl3_defs.nim updated will be generated.

My tools version


  • Futhark 0.13.7
  • nim-2.2.2
  • Gcc.exe (Rev2, Built by MSYS2 project) 14.2.0

Other SDL game tutorial platfromer project


ald

Language 1 SDL Project
LuaJIT Script SDL2 LuaJIT-Platformer
Nelua Compiler SDL2 NeLua-Platformer
Nim Compiler SDL3 / SDL2 Nim-Platformer-sdl2/ Nim-Platformer-sdl3
Ruby Script SDL3 Ruby-Platformer
Zig Compiler SDL2 Zig-Platformer

Other examples project for Dear ImGui


Language 1 Project
Lua Script LuaJITImGui
NeLua Compiler NeLuaImGui
Nim Compiler ImGuin, Nimgl_test, Nim_implot
Python Script DearPyGui for 32bit WindowsOS Binary
Ruby Script igRuby_Examples
Zig, C lang. Compiler Dear_Bindings_Build
Zig Compiler ImGuinZ

Footnotes

  1. Alphabectial order 2