Get the latest tech news

Swift and the Cute 2d game framework: Setting up a project with CMake


Cute Framework is a simple, yet powerful C/C++ framework for building 2D games using the modern GPU pipeline. While C or C++ is fine, Swift is a modern language that many developers prefer for its safety and expressiveness. In this post, we will explore how to set up a project using Cute Framework with CMake, enabling you to write your game logic in Swift while leveraging the performance of C/C++ for rendering and other performance-critical tasks.

In this post, we will explore how to set up a project using Cute Framework with CMake, enabling you to write your game logic in Swift while leveraging the performance of C/C++ for rendering and other performance-critical tasks. It sets up the Cute Framework as a dependency using FetchContent, which allows us to download and include it directly in our project. The shim.h file includes the Cute Framework header, allowing Swift to access its functions.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of project

project

Photo of CMake

CMake

Photo of 2d game framework

2d game framework

Related news:

News photo

Tales of Kenzera studio reveals its next title, published by Palworld's Pocketpair

News photo

NetherRealm ends Mortal Kombat 1 support as focus shifts to "the next project"

News photo

Xreal’s Project Aura targets Google’s Android XR platform