sdl4cpp, header-only C++ wrapper around SDL2.

Overview

sdl4cpp

sdl4cpp, header-only C++ wrapper around SDL2 (heavily work-in-progress)

An example:

#include "sdl4cpp/sdl4.hpp"
#include "sdl4cpp/timer.hpp"
#include "sdl4cpp/video.hpp"

int main() noexcept {
    sdl4::video::window::window wnd;
    sdl4::video::window::renderer::renderer render;

    if(sdl4::init(SDL_INIT_VIDEO) != 0) { return 1; }

    if(wnd.create_window_and_renderer(600, 400, 0, &render) == 0) {
        render.set_render_draw_color(155, 155, 13, SDL_ALPHA_OPAQUE);
        render.render_draw_line(350, 200, 300, 240);
        render.set_render_draw_color(200, 105, 55, SDL_ALPHA_OPAQUE);
        render.render_draw_line(0, 10, 600, 10);
        render.render_present();
        sdl4::timer::delay(3500);
    }

    sdl4::quit();
}

sdl4cpp licensed under the terms of MIT License.

Owner
Ferhat Geçdoğan
Ferhat Geçdoğan
A tester for game controller written in C, using SDL2.

SDL2 Controller Tester This little application has been made while I was attending a tutorial to make games in C using SDL2. Since my purpose will be

Michele Righi 14 Jul 31, 2022
A (broken) SDL2 game made in 48 hours

Twini-Golf Twini-Golf is a game created in 48 hours for the 2021 GMTK Game Jam using C++ and SDL2. It can be played on itch.io. Screenshots Background

PolyMars 163 Aug 12, 2022
A blank for a SDL2-based platformer game

A blank for a SDL2-based platformer game Attention, this repository does not contain (and never will) a playable game. The goal is to show basic princ

Dmitry V. Sokolov 33 Jul 11, 2022
SDL2 example games

SDL games Just a repository for make retro and new games with SDL and C++... Snake The classic game that everyone in our life has played, be a Snake a

Juan Salazar 1 Nov 16, 2021
A game called Lavendachrysanth. I am working on using SDL2 and C++(Originally ran on windows 10)

Lavendachrysanth A game called Lavendachrysanth. I am working on using SDL2 and C++(Originally ran on windows 10) MinGW 6.3.0-1 Vscode 1.61.2 GNU Make

Sitanshu Shrestha 0 Mar 31, 2022
Chessclone with SDL2

Chess Description Links Repo Screenshots Built With C++ Visual Studio 2019 SDL2 SDL2_Image Build process Clone the repository copy "sdl2-config.cmake"

Julian Unland 50 Aug 5, 2022
Super Mario Bros in C++ under SDL2

Super Mario Bros DEMO! Super Mario Bros in C++ under SDL2. This game is a DEMO with his first world! How to compile Code::Blocks is needed (although w

Gastón Martínez 0 Jul 28, 2022
A good & simple gameplay loop for C and SDL2.

FPSLoop A good & simple gameplay loop for C and SDL2. Dependencies A C compiler SDL2 Building The easiest way is just to run make, which will build th

Silent Tower Games 7 Jan 10, 2022
Game engine in c++ and SDL2

Netune game engine How to build As said, all work is in progress, if you want to run it you need to have SDL2 configured on your machine. This makefil

Pedro Lucas 4 May 24, 2022
Implementation of Conway's Game of Life in C++ with SDL2

Conway's Game of Life Implementation of Conway's Game of Life in C++ with SDL2. Usage make sure SDL2 is well configured. make run click on screen to m

Juni May 2 Feb 12, 2022
VE Font Cache is a single header-only GPU font rendering library designed for game engines.

VE Font Cache is a single header-only GPU font rendering library designed for game engines. It aims to: Be fast and simple to integrate. Take advantag

Xi Ma Chen 340 Aug 8, 2022
A UE4 plugin wrapper for Molecular Matter's Live++ Hot-Reloading Library

Good News Everyone: Natively integrated in UE4.22+ Details here: https://docs.unrealengine.com/en-us/Builds/4_22 UE4 LivePP: C/C++ live coding A UE4 p

Kite & Lightning 100 Jul 13, 2022
Exploit allowing to load arbitrary code on the PSX using only a memory card (no game needed)

FreePSXBoot Exploit allowing to load arbitrary code on the PSX (i.e. PlayStation 1) using only a memory card (no game needed). In other words, it's a

null 351 Aug 9, 2022
A gameboy emulator that only plays Pokemon Blue, in ~70 lines of c++.

pokegb A gameboy emulator that only plays Pokemon Blue, in ~70 lines of c++. See the technical write-up. Features Plays Pokemon Blue (and Red).

Ben Smith 1.2k Aug 6, 2022
A tic-tac-toe game made only in flutter

Tic Tac Toe Game A simple Flutter Tic tac toe game made for educational purpose. the main goal of this project is to teach the importance of data stru

Mouheb Boucherb 21 Jun 20, 2022
A cross-platform, top-down 2D space shooter written in C using only system libraries.

A cross-platform, top-down 2D space shooter written in C using only system libraries.

Tarek Sherif 1.3k Aug 10, 2022
A single-header C++ library for making simple 2D games

A single-header C++ library for making simple 2D games PLATFORM: Windows LANGUAGE: C++ ENVIRONMENT: Visual Studio Why? Learning C++ is often seen as d

Sumo Digital Academy 45 Aug 5, 2022
noclip is a single-header backend for a developer console

noclip Many computer games have a developer console or in-game console which provide a command-line interface for executing commands, changing game va

Kevin Chin 8 Mar 20, 2022
Header only wrapper around Hex-Rays API in C++20.

HexSuite HexSuite is a header only wrapper around Hex-Rays API in C++20 designed to simplify the use of Hex-Rays and IDA APIs by modern C++ features.

Can Bölük 117 Jul 15, 2022
curl4cpp - single header cURL wrapper for C++ around libcURL.

curl4cpp - single header cURL wrapper for C++ around libcURL.

Ferhat Geçdoğan 14 Jun 12, 2022
CMakeLists wrapper around imgui

ImGui Wrappings This is a trifold wrapper for the Dear ImGui library. Ease integration with CMake, Provide an RAII mechanism for ImGui scopes, Provide

Oliver Smith 29 Jul 20, 2022
lightweight, compile-time and rust-like wrapper around the primitive numerical c++ data types

prim_wrapper header-only, fast, compile-time, rust-like wrapper around the primitive numerical c++ data types dependencies gcem - provides math functi

null 1 Oct 22, 2021
A wrapper around std::variant with some helper functions

A wrapper around std::variant with some helper functions

Eyal Amir 1 Oct 30, 2021
Cython wrapper around C++ iostream

ciostream Provides a Cython wrapper around C++ iostream, allowing Python extensions to use Python streams with C++ code that uses C++ iostreams. Examp

Matthew Ballance 2 Dec 16, 2021
Plugin wrapper around VCV Rack

DISTRHO Cardinal Cardinal, the Rack! ! THIS PROJECT IS A WORK IN PROGRESS ! This is a DPF-based plugin wrapper around VCV Rack, using its code directl

DISTRHO 749 Aug 8, 2022
Autotools-style configure script wrapper around CMake

configure-cmake configure-cmake is an autotools-style configure script for CMake-based projects. People building software on Linux or BSD generally ex

Evan Nemerson 81 Jul 1, 2022
The C++14 wrapper around sqlite library

sqlite modern cpp wrapper This library is a lightweight modern wrapper around sqlite C api . #include<iostream> #include <sqlite_modern_cpp.h> using n

null 688 Aug 2, 2022
A cross-platform wrapper for using SDL2 with ImGui

ImSDL2 ImSDL2 is an open source "wrapper" of imgui backends available for SDL2. It aims to provide a backend-independent yet simple interface for inte

terens 5 Feb 2, 2022
Header-only, event based, tiny and easy to use libuv wrapper in modern C++ - now available as also shared/static library!

Do you have a question that doesn't require you to open an issue? Join the gitter channel. If you use uvw and you want to say thanks or support the pr

Michele Caini 1.5k Aug 10, 2022