Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Tengin

Personal practice project which includes example usage of the beautifully written modern RAII SDL abstraction (src/sdl.hpp). Includes SDL, SDL_image, SDL_ttf.

Supported OS:

  • MacOS
  • Windows (MSYS2)
  • Linux
  • FreeBSD

Clone

git clone https://github.com/TejasPersonal/Tengin.git
cd Tengin

Dependencies

  • C/C++ toolchain
  • SDL (version 3.x.x)
  • SDL_image (version 3.x.x)
  • SDL_ttf (version 3.x.x)

Dependency installation examples:

  • Arch Linux:

    sudo pacman -S clang sdl3 sdl3-image sdl3-ttf --noconfirm
    sudo pacman -S pkgconf # for static linking
  • Windows (MSYS2):

    • CLANG* (Native):
      pacman -S pactoys --noconfirm
      pacboy -S clang sdl3 sdl3-image sdl3-ttf --noconfirm
      pacboy -S pkgconf # for static linking
    • MSYS:
      pacman -S clang sdl3 sdl3-image sdl3-ttf --noconfirm
      pacman -S pkgconf # for static linking
  • MacOS:

    Install Homebrew if not installed

    /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

    Then:

    xcode-select --install
    brew install sdl3 sdl3_image sdl3_ttf
    brew install pkgconf # for static linking

Unix Compilation using clang

  • Dynamic Linking

    clang++ -o build/totpad src/main.cpp -lSDL3 -lSDL3_image -lSDL3_ttf
  • Static Linking

    clang++ -o build/totpad src/main.cpp -static $(pkg-config --libs --static sdl3 sdl3-image sdl3-ttf)

Note: clang++ can be used interchangeably with g++ if available

Run

cd build
./totpad
totpad.mp4

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages