Skip to content
This repository has been archived by the owner on Aug 5, 2023. It is now read-only.
/ SDLW-deprecated Public archive

A basic wrapper for SDL window creation and event management with a syntax inspired by GLFW3

License

Notifications You must be signed in to change notification settings

lxmcf/SDLW-deprecated

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SDLW

< Description | Dependencies | Configuration | Compiling | Roadmap >

SDLW (SDL Wrapper) is a simple 'wrapper' for SDL2's window and renderer with an API inspired by GLFW3.

What and why?


SDLW was inspired by the syntax of GLFW3, I found myself spending more time getting boiler plate SDL window and renderer creation than actual prototyping.

In every project I would start, I would either start copy-pasting a large chunk of code just to get basic events working or just rewriting the same code base with minor tweaks, I may as well build a simple wrapper I can include to expedite this step and here we are!

Note: I have only tested the current build using Fedora 36!

Dependencies


  • sdl2

Build Dependencies


  • gcc
  • SDL2-devel
  • meson

Compiling


SDLW can simply have the source code directly added to your current project, however it is recommended the static library is installed globally and linked!

# This is just a recommendation method
meson builddir --prefix=/usr
sudo meson install -C builddir

# Use these commands to just build the tests
meson builddir -Dbuild_examples=true
sudo meson compile -C builddir

Roadmap


This roadmap outlines my current plans to implement features and will be updated as plans change

  • Version 1.0

    • Basic window callback and creation
  • Version 2.0

    • Initial renderer function wrapping
    • Add more window functions and callbacks
    • Update documentation
  • Version 2.1

    • Add extra renderer functions (Primitive rendering, etc)
    • Add compile time configurations
  • Version 3.0

    • Custom texture wrapper
    • Texture loading via stb_image

About

A basic wrapper for SDL window creation and event management with a syntax inspired by GLFW3

Resources

License

Stars

Watchers

Forks

Packages