Implementation of plotting the Mandelbrot Set using the SDL library for rendering.
SDLWindow.h/.cpp: - Encapsulates the window display settings
MandelbrotSet.h/.cpp: - Container class that holds an instance of SDLWindow - Class proprietary methods to compute the brightness and scale the pixel values
main.cpp: - Driver program and entry point for execution
README
- (All Rubric Points REQUIRED)
Compiling and Testing
- (All Rubric Points REQUIRED)
Loops, Functions, I/O
- The project demonstrates an understanding of C++ functions and control structures.
Object Oriented Programming
- The project uses Object Oriented Programming techniques (SDLWindow.h/.cpp | MandelbrotSet.h/.cpp)
- Classes use appropriate access specifiers for class members (SDLWindow.h/.cpp | MandelbrotSet.h/.cpp)
- Class constructors utilize member initialization lists (MandelbrotSet.cpp, line 22)
- Classes abstract implementation details from their interfaces (SDLWindow.h/.cpp | MandelbrotSet.h/.cpp)
- cmake >= 3.7
- All OSes: click here for installation instructions
- make >= 4.1 (Linux, Mac), 3.81 (Windows)
- Linux: make is installed by default on most Linux distros
- Mac: install Xcode command line tools to get make
- Windows: Click here for installation instructions
- gcc/g++ >= 5.4
- Linux: gcc / g++ is installed by default on most Linux distros
- Mac: same deal as make - install Xcode command line tools
- Windows: recommend using MinGW
- SDL 2.0
- Linux:
sudo apt install cmake libsdl2-dev g++
- Windows: https://www.libsdl.org/download-2.0.php
- Linux:
- Clone this repo.
- Make a build directory in the top level directory:
mkdir build && cd build
- Compile:
cmake .. && make
- Run it:
./mandelbrot