Single header gint/SDL2 wrapper
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
kdx 26febade03
LDFLAGS last
2 months ago
inc maybe_unused --> void casts again 2 months ago
res font char draw 1 year ago
src consistant rect behavior 10 months ago
.clang-format stub laydown 1 year ago
.gitignore header dependencies 1 year ago
CMakeLists.txt nodiscard and c2x requirements were overkill 2 months ago
LICENSE add MIT license 1 year ago
Makefile LDFLAGS last 2 months ago
README.md implementation readme 1 year ago
compile_flags.txt c2x 2 months ago

README.md

lzy

Simple game framework for SDL2 and gint.

Usage

Drop (inc/lzy.h)[lzy.h] into an existing project.

Include implementation in a single source file:

#define LZY_IMPLEMENTATION
#include "lzy.h"

Optional defines before implementation:

#define LZY_IMPLEMENTATION
#define LZY_SDL_INCLUDE <SDL.h>
#define LZY_SDL_IMAGE_INCLUDE <SDL_image.h>
#define LZY_SDL_MIXER_INCLUDE <SDL_mixer.h>
#define LZY_GINT_TILESET bimg_tset
#define LZY_GINT_FONT bimg_font
#define LZY_DISPLAY_WIDTH 396
#define LZY_DISPLAY_HEIGHT 224
#define LZY_TILE_SIZE 16
#define LZY_CHR_WIDTH LZY_TILE_SIZE
#define LZY_CHR_HEIGHT LZY_TILE_SIZE
#define LZY_FIRST_CHR ' '
#include "lzy.h"

Don't define LZY_IMPLEMENTATION before other inclusions.

For data structures and function prototypes, read the source.