Skip to content

vortexint/Magnet

Repository files navigation

3D horseshoe magnet icon
Magnet
A robust C++ framework for 3D software

Official webpage · License

Dependencies

Linux

Choose the appropriate package manager for your system.

Manager Packages
apt cmake clang libgl1-mesa-dev x11proto-core-dev libx11-dev lz4 p7zip-full openexr
pacman cmake clang mesa xorgproto libx11 lz4 p7zip openexr
dnf clang mesa-libGL-devel libX11-devel lz4 p7zip openexr
zypper cmake clang Mesa-libGL-devel libX11-devel lz4 p7zip openexr

Most packages are likely already installed on your system.

Windows

Usage

This project uses CMake as it's build system, prefer an IDE that manages CMake configuration automatically on save, such as:

Setup

Assuming you have CMake & Git...

in your working directory, run:
git clone https://github.com/vortexdevsoftware/Magnet.git

# Or if a submodule is preferred:

git submodule add https://github.com/vortexdevsoftware/Magnet.git
git submodule update --init --recursive --progress

After this, you should be ready to configure the project with CMake...

Learning Material

There are several samples to learn from:

Project Description
Barebones As raw as it gets, establishes a minimal project
Primitives Populating the scenes with simple models
Native UI Using Magnet's native UI
Sandbox Physics sandbox