This is a beta version of my personal toolkit for C graphics programming.
Note: this code has only been tested on macOS
First, clone
$ git clone https://github.com/bil0u/libgraphic.git
You have to specify the include path -I <libgraphic_path>
and the library flags -lgraphic -Llibgraphic
Don't forget to #include "libgraphic.h"
or "libgraphic_macros.h"
(Note that libgraphic.h
already includes libgraphic_macros.h
)
A Makefile is provided, just run in your shell
$ make
or call it from a parent one with the rule make -C <libgraphic_path>
minilibx
made by Olivier Crouzet for 42 students
See mlx.h for details
Utilities for 42's MLX graphics library
See mlx_tools.h for details
RGB & RGBA
colors utilities
See colors.h for details
Functions for handling 2D & 3D integer/float
vertexes
See vertex.h for details
Functions for handling 2D & 3D integer/float
vectors
See vector.h for details
Functions for handling 4D
vectors aka quaternions
See quaternions.h for details
Functions for handling 4D integer/float
matrix
See matrix.h for details
Tools to quickly set camera based on pinhole model
See camera.h for details
Useful graphics maths functions
See g_maths.h for details
Poor debug functions, still needs a big improvement
See debug.h for details
-
all = libgraphic
Compile all the library components -
clean
Delete all the objects files -
fclean
Delete both objects and binaries -
re
Runs thefclean
andall
rules -
norm
Runs thenorminette
command on all the sources and includes subdirectories (Only usable in 42 clusters)
This project is licensed under the GNU General Public License v3.0 - see the LICENSE.txt file for details