Just a fun little project to learn how to render Bézier Curves.
Thumbnail | Link |
---|---|
Coding Bézier Curves — Day 1 | |
Bézier Curves using OpenGL Fragment Shader — Day 2 |
$ make
$ ./cpu.exe
$ ./gpu.exe
Install latest msys2_64
Run MSYS2 console : msys2.exe
In console install packages with pacman: pacman -Sy git mingw-w64-i686-toolchain mingw32/mingw-w64-i686-SDL2 mingw32/mingw-w64-i686-SDL2_mixer mingw32/mingw-w64-i686-SDL2_image mingw32/mingw-w64-i686-SDL2_ttf mingw32/mingw-w64-i686-SDL2_net mingw32/mingw-w64-i686-cmake mingw32/mingw-w64-i686-libepoxy make
. (it's for 32 bit version installation)
Add to system PATH
compiller directory name C:\msys64\mingw32\bin
Dublicate mingw32-make.exe
into make.exe
to get ability to run make with a classic command make
.
This example is suitable only for the first understanding of shader routines. The example does not show the real possibilities of shaders. To get acquainted with the real capabilities of shaders, it is better to look at raylib examples.