thegoldgoat / sdl2-app

SDL2 application template class

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

sdl2-app

SDL2 application template class.

How to use

Create your own application class, which needs to be a public SDLApp:
class Application : public SDLApp
This class needs 2 methos:
void draw(void) and
void events(void).
These methods are called by sdlApp after launching yourApp.runApp().
To stop and close the app your class need to call the close method
A basic class and main template are included in the repository. (src/application.* and src/main.cpp)

About

SDL2 application template class


Languages

Language:C++ 76.6%Language:Makefile 19.8%Language:C 3.6%