Viverna is a simple C++17 framework I wrote for building cross-platform games for Windows, Linux and Android. As of now, it uses OpenGL 4.6 on Windows/Linux and OpenGL ES 3.2 on Android.
To use Viverna, you'll need the following:
- CMake
- version 3.24 or later
- Android SDK
- ANDROID_HOME environment variable set to the SDK path
- Android NDK
- Clone the repository:
git clone https://github.com/MicPret/Viverna.git
- Edit
Application.cpp
insrc/game
- Edit
config.yaml
to give your game a name
- Desktop
cmake --preset desktopDebug
orcmake --preset desktopRelease
; you might have to specify the generator with the-G
flag (cmake --preset desktopDebug -G "Ninja"
)cmake --build build
- Your executable will be in the
build
folder
- Android
cd android
- Use the gradle wrapper to assemble the APK
- Windows:
.\gradlew.bat assembleDebug
- Linux:
./gradlew assembleDebug
- Windows:
- Your APK will be in
android/app/build/outputs/apk/debug
- If you want to directly install the APK instead of assembling it, you can pair and connect a device through
adb
in theplatform-tools
of the Android SDK and runinstallDebug
instead ofassembleDebug
Remember you need OpenGL 4.6 on desktop and OpenGL ES 3.2 on Android and have fun!
This project depends on the following libraries: