Skip to content
A quick and simple C/C++ header-only library for drawing with SDL2.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bin
script
src
.gitignore
QS2D.sln
QS2D.vcxproj
QS2D.vcxproj.filters
README.md
compil.bat

README.md

QS2D : Quick Sdl2 Draw

A basic drawing C/C++ header-only library.

Dependency

-SDL2

Example :

Draw random pixel on screen with random color

#define QS2D_IMPLEMENTATION
#include "hdr/qs2d.h"

int main()
{
	QS2D_Init("Random Pixel and Color", 400, 400);
	while (!QS2D_Event())
	{
		QS2D_Color color = { rand() % 255, rand() % 255, rand() % 255, 255 };
		QS2D_SetColor(color);
		QS2D_Pixel(rand() % 400, rand() % 400);
	}
	QS2D_Close();
	return 0;
}
You can’t perform that action at this time.