Skip to content

C++ OpenGL 2D Framework. A third attempt at writing an game framework/engine.

Notifications You must be signed in to change notification settings

r0neko/AiFramework

Repository files navigation

AiFramework

Yet another game framework, being my third attempt at making one.

Test Application

The test application was moved to a separate repository for organizational reasons, which can be found here: https://github.com/r0neko/AiFrameworkTestApp

Requirements - Windows(vcpkg)

You are an Windows user? We gotchu! Install these requirements and then the code will magically work!

vcpkg install glad[wgl]:x86-windows-static-md opengl:x86-windows-static-md glm:x86-windows-static-md glad[wgl]:x64-windows-static-md opengl:x64-windows-static-md glm:x64-windows-static-md

Don't forget to use Visual Studio for this to work! (in the future you'll be able to use CMake too, or maybe you can ditch Visual Studio altogether)

Experimental CMake Support

I'm not good at talking CMake, so feel free to point out everything I did wrong. I made an experimental CMake file which will help compile AiFramework. It was tested only on Windows.

To use it in an IDE like CLion, please make sure that you define the vcpkg toolchain path. For example: -DCMAKE_TOOLCHAIN_FILE=C:/vcpkg/scripts/buildsystems/vcpkg.cmake The library will be outputted in the build_dir/output directory. You should also output your executable in the same directory. Maybe this will be fixed in a future update.

Requirements - Linux

You are a Linux gamer? No problem! To compile AiFramework, just run our professional grade building script like this...

./build.sh

and it will take care of installing the required packages and building everything automatically! After running the building script, you can just make and it will build libaifw.so under the build directory, which can be later used in your apps.

IMPORTANT NOTE: Building AiFramework with an earlier version of GCC will fail! Make sure you have GCC 9 or newer and check whether the C++20 standard is supported. This may occur to you when compiling AiFramework on a standard installation of Raspbian. Upgrade to a newer version of GCC to solve this. A script is provided in the AiFramework directory for this purpose, called gcc_update_rpi.sh

Requirements - MacOS

Well, we didn't get that far. If you want to take your shot at making this a reality, make a fork, do your magic, then make a pull request.

Requirements - Android

Actually, it's currently work-in-progress. Slowly moving to the CMake build system to make this happen. Also, it will use the Android NDK to build the library and you will need to implement a small JNI interface for your app.

Documentation

You may be wondering... where is the documentation? I will write some documentation once everything is stable enough. Until then, you can perhaps try to refer to the provided test application.

About

C++ OpenGL 2D Framework. A third attempt at writing an game framework/engine.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published