robjinman / mandelbrot

Rendering the Mandelbrot fractal inside a fragment shader

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Mandelbrot

Renders the Mandelbrot fractal in a fragment shader.

Building from source

Prerequisites

linux

  • cmake
  • vcpkg

OS X

  • XCode
  • cmake
  • vcpkg

You might also need homebrew in case the build output warns you of missing system dependencies. Then you can install them with brew install.

Windows

  • Visual Studio 2022
  • cmake
  • vcpkg

Make sure everything you need is on your PATH, including objdump.exe, which should be installed with Visual Studio. You can find the location of objdump by opening a Native Tools command prompt and typing where objdump.

Build

To build, just run the relevant workflow from the project root.

To see the list of workflows

    cmake --workflow --list-presets

For example, to make a debug build on linux

    cmake --workflow --preset=linux-debug

You can also run the configure/build steps separately

    cmake --preset=linux-debug
    cmake --build --preset=linux-debug

VMs for testing

To test the app has been packaged correctly with all its dependencies, it can be helpful to create a VM with a clean OS install to deploy the app to. On Mac OS you can use UTM, on Windows and Linux you can use Virtual Box.

About

Rendering the Mandelbrot fractal inside a fragment shader


Languages

Language:C++ 93.9%Language:CMake 3.6%Language:GLSL 2.5%