matter
Matter is a UI framework that makes creating a fast cross-platform UI easy.
main.cpp
functions as an example of the current point of the library. In future all SDL2 code will be abstracted in a class. Build instructions for Unix and Windows can be found below.- Once the codebase is at the minimum working stage documentation will be available.
Usage
Based on the code that exists at present creating a window with a fullscreen button is as simple as this:
Window win = Window(window, renderer);
Label btn = PushButton();
btn.setText("Click Me");
win.setRootView(&btn);
Building
While the library is being built main.cpp
serves as the test sandbox and can be built using the following steps.
Unix
- Install
sdl2
andsdl2_ttf
through your package manager or manually. - Run
make
in your terminal at the root of the project andmatter
will be built.
Windows
- Install
mingw-get
and install the essentials, especiallymingw32-gcc-g++-bin
andmingw32-make
. - Download the SDL2 MinGW library and the SDL2 TTF MinGW library, extract the two archives and drag all files from the
i686
folder in both to your MinGW installation folder (most likelyC:\MinGW
). - Run
mingw32-make
in your terminal at the root of the project andmatter.exe
will be built.
Contributing
This project is in early stages so contributing is more than welcome! Please submit a pull request documenting what changes you have made and be sure to give CODESTYLE.md
a quick read to stay consistent with the existing codebase.