AGL
A graphics library
|
Small, easy to use C++ library for 3D drawing, based on openGL.
The goal of this project is to create an api that makes it easy to write 3D graphics demos in C++. This library supports my teaching and research (and so the api still changes frequently!). The design goals of this project are:
For example, the following program draws a sphere with phong shading
The source repository is here.
To get started, you will need a C++ development environment, git, cmake. To build, you will also need to several dependencies.
Windows
On windows, you will need to have a C++ build environment, git and cmake installed. If you do not have a C++ compiler on windows, you can use the community version of visual studio.
Important!! During installation, select: Desktop development with C++
The dependencies, such as GLEW, GLFW, and GLM, are included in this repository under /external.
macOS
On macOS, you should have git and a C++ compiler from running command xcode-select --install
. To install cmake, glew, and glfw, you can use brew.
brew install cmake
brew install glew
brew install glfw3
GLM is included with this repository but you can also install it using the instructions here. Other dependencies are included in /external.
Ubuntu
On linux, you can install many of the necessary tools and dependencies using apt-get
.
sudo apt-get install cmake
sudo apt-get install git
brew install glfw3
todo
Windows
On windows, use cmake to build either makefiles or a visual studio project. And then build from there.
From terminal (either git bash or powershell):
After building all source, you can run either from visual studio or the command line:
macOS/Ubuntu
Open terminal to the directory containing this repository.