Single header gint/SDL2 wrapper
Go to file
KikooDX c3b2215bf9 align definitions in readme 2022-05-21 16:09:46 +02:00
inc extended colorspace & overclock 2022-05-21 16:06:05 +02:00
res font char draw 2022-03-01 15:13:35 +01:00
src extended colorspace & overclock 2022-05-21 16:06:05 +02:00
.clang-format stub laydown 2022-02-28 15:39:50 +01:00
.gitignore header dependencies 2022-03-26 12:36:38 +01:00
CMakeLists.txt extended colorspace & overclock 2022-05-21 16:06:05 +02:00
LICENSE add MIT license 2022-03-01 00:36:35 +01:00
Makefile use SDL_GetBasePath 2022-04-12 17:10:56 +02:00
README.md align definitions in readme 2022-05-21 16:09:46 +02:00

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_GINT_CLOCK_SPEED  CLOCK_SPEED_DEFAULT
#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.