Android studio native project template using cross platform raylib graphics library.

Related tags

Graphics rayturbo
Overview

rayturbo

Android studio native project template using cross platform raylib graphics library.


https://www.raylib.com/

This project use Android Studio with gradle and cmake to easily build apk files for arm, arm64, x86, x86_64.

The raylib library is built in c, however this project is adapted to the c ++ language to be able to quickly prototype applications. (c / c++ mix) for that name contain turbo.

/app/src/main/cpp/libs folder contain prebuilt version of debug static raylib for all mobile platforms. But beware because the library is built with different options for the compiler:

raylib makefile:

this line: ifeq ($(ANDROID_ARCH),arm64)

          ORG: CFLAGS += -target aarch64 -mfix-cortex-a53-835769
          
          NEW: CFLAGS += -m64

To build apk you need Android Studio software and ndk configured and installed.
I tested this under linux debian frankenstein version:) environment.

Requirements:

Linux pc machine
Railib library prebuild for android , is included inside project libs folder.
Android Studio: https://developer.android.com/studio/index.html
Android NDK & SDK: (available for download in Android Studio)

You need some system configuration for additional paths and enviroment variables:

Well, add lines to yours file .bashrc or .profile one of this hidden files inside home directory
replace build tools version, mine: 31.0.0
replace ndk version to fit, mine: 23.0.7599858
replace java path and version, mine: /home/$USER/JDK/graalvm-ce-java16
replace android sdk path to match you needs mine: /home/$USER/Android/Sdk

This below config is important for building raylib from sources and it comes in handy for the terminal operations.

export JAVA_HOME="/home/$USER/JDK/graalvm-ce-java16"
export ANDROID_SDK_ROOT=/home/$USER/Android/Sdk
export ANDROID_HOME=$ANDROID_SDK_ROOT
export ANDROID_NDK_HOME=/home/$USER/Android/Sdk/ndk/23.0.7599858

export PATH="$PATH:$ANDROID_SDK_ROOT/build-tools/31.0.0:
$ANDROID_SDK_ROOT/cmdline-tools/latest/bin:
$ANDROID_SDK_ROOT/emulator:
$ANDROID_SDK_ROOT/tools:
$ANDROID_SDK_ROOT/platform-tools:
$JAVA_HOME/bin:
$ANDROID_NDK_HOME:
$ANDROID_HOME/bin"

here is one line export path version:
export PATH="$PATH:$ANDROID_SDK_ROOT/build-tools/31.0.0:$ANDROID_SDK_ROOT/cmdline-tools/latest/bin:$ANDROID_SDK_ROOT/emulator:$ANDROID_SDK_ROOT/tools:$ANDROID_SDK_ROOT/platform-tools:$JAVA_HOME/bin:$ANDROID_NDK_HOME:$ANDROID_HOME/bin"

Important! 💣 🧨
Tips for Android studio: consider change java version from 1.8 under project structure settings to java >= 11 , for build this project i use java 16 from: https://www.graalvm.org/
You can successfully use java provided by android studio or from debian repositories.

Owner
Ciapas Linux
I am an independent programmer since C64 to this day...
Ciapas Linux
A modern cross-platform low-level graphics library and rendering framework

Diligent Engine A Modern Cross-Platform Low-Level 3D Graphics Library Diligent Engine is a lightweight cross-platform graphics API abstraction library

Diligent Graphics 2.4k Aug 1, 2022
A small cross-platform graphics library made in C

minigfx Small graphics library made in C Intended to be: Simple to understand Intuitive Fun to use Features Cross platform: Windows and Linux. To see

Laurentino Luna 27 Jul 18, 2021
Low Level Graphics Library (LLGL) is a thin abstraction layer for the modern graphics APIs OpenGL, Direct3D, Vulkan, and Metal

Low Level Graphics Library (LLGL) Documentation NOTE: This repository receives bug fixes only, but no major updates. Pull requests may still be accept

Lukas Hermanns 1.4k Aug 1, 2022
A terminal-based graphics library for both 2D and 3D graphics.

TermGL A terminal-based graphics library for both 2D and 3D graphics. Written in C, created for terminals supporting ANSI escape codes. Table of Conte

null 203 Jul 15, 2022
Pathway is an Android library that provides new functionalities around the graphics Path API.

Pathway is an Android library that provides new functionalities around the graphics Path API.

Romain Guy 119 Jul 28, 2022
kaun is a replacement for löve's built-in love.graphics module intended for 3D graphics

kaun kaun is a replacement for löve's built-in love.graphics module intended for 3D graphics. It is a Lua module you can require from a shared library

Joel Schumacher 4 Apr 5, 2021
This repo contains the DirectX Graphics samples that demonstrate how to build graphics intensive applications on Windows.

DirectX-Graphics-Samples This repo contains the DirectX 12 Graphics samples that demonstrate how to build graphics intensive applications for Windows

Microsoft 4.6k Jul 28, 2022
Yet another Chip-8 interpreter, this time written in C++ using GLFW and OpenGL as its graphics library 💻

Yet another Chip-8 interpreter, but this time with a beautiful interface ??

Akshit Garg 26 Jun 4, 2022
A graphics library using SDL programmed in C++

2DGraphicsLib A graphics library using SDL programmed in C++ This project will serve multiple purposes: I aim to learn how to program with C++ To crea

Angus Robertson 1 Nov 22, 2021
SPIR-V extension for Visual Studio

SPIR-V extension for Visual Studio (VSIX) About This VSIX extension adds SPIR-V related commands to the context menu of GLSL shader files (and folders

Sascha Willems 85 Jul 12, 2022
This repository is used for storing sourcecode related to final project of Computer Graphics and Computer Vision

Computer Graphics and Computer Vision Description: This repository is used for storing sourcecode related to final project of Computer Graphics and Co

null 10 Jul 8, 2022
A Sudoku solver made in C++ using SDL for graphics.

sudoku_solver A Sudoku solver made in C++ using SDL for graphics. What is a Sudoku puzzle? Sudoku puzzles have been around for a very long time, origi

null 1 Nov 12, 2021
A low-level, cross-platform GPU library

vgpu is cross-platform low-level GPU library. Features Support for Windows, Linux, macOS. Modern rendering using Vulkan and Direct3D12. Dependencies U

Amer Koleci 9 Jul 28, 2022
Cross-platform 2D and 3D game engine.

Urho3D Urho3D is a free lightweight, cross-platform 2D and 3D game engine implemented in C++ and released under the MIT license. Greatly inspired by O

null 4.1k Jul 31, 2022
Cross-platform, sophisticated frontend for the libretro API. Licensed GPLv3.

RetroArch RetroArch is the reference frontend for the libretro API. Popular examples of implementations for this API includes video game system emulat

null 6.9k Aug 3, 2022
Gearcoleco is a cross-platform ColecoVision emulator written in C++.

This is an open source project with its ongoing development made possible thanks to the support by these awesome backers.

Ignacio Sanchez Gines 34 Apr 20, 2022
Ksnip is a Qt-based cross-platform screenshot tool that provides many annotation features for your screenshots.

Ksnip is a Qt-based cross-platform screenshot tool that provides many annotation features for your screenshots.

ksnip 1.4k Jul 28, 2022
Cocos2d-x is a suite of open-source, cross-platform, game-development tools used by millions of developers all over the world.

Cocos2d-x is a suite of open-source, cross-platform, game-development tools used by millions of developers all over the world.

cocos2d 16.3k Aug 4, 2022