Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
/ sdl2-template Public template

A SDL2 template with Image and TTF support using Meson.

License

Notifications You must be signed in to change notification settings

teppyboy/sdl2-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

4 Commits

Repository files navigation

SDL2 Template

This is a SDL2 template with image, text and music support made using Meson.

Preview

The Herta

Installation

To use this template, you must have Meson, Ninja, CMake, make, g++/clang++ along with required headers installed. If you don't have these installed then you should use MSYS2 to install them (or use https://github.com/justapieop/SDLTesting/tree/dev for a better experience)

git clone https://github.com/teppyboy/sdl2-template
cd sdl2-template
meson setup builddir # Needed for installing SDL2 libraries to the project.

Building

The project itself

  • Debug
meson compile -C ./builddir
cp -r assets ./builddir/

The output will be in ./builddir

  • Release
meson setup builddir-release --buildtype release --optimization 3 --strip
meson compile -C ./builddir-release
cp -r assets ./builddir-release/

The output will be in ./builddir-release

Why?

Because of my university, and no I don't wanna use Code::Blocks. (削除) Also plain vcpkg doesn't work with my MSYS2 and MSVC combined install somehow (削除ここまで)

Acknowledgements

License

MIT

About

A SDL2 template with Image and TTF support using Meson.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

AltStyle によって変換されたページ (->オリジナル) /