Skip to content

BillKek/bezier_example_for_linux_and_windows

 
 

Repository files navigation

Bézier Curve

Just a fun little project to learn how to render Bézier Curves.

CPU implementation

thumbnail-cpu

GPU implementation

thumbnail-gpu

Screencasts

Thumbnail Link
thumbnail Coding Bézier Curves — Day 1
thumbnail Bézier Curves using OpenGL Fragment Shader — Day 2

Quick Start

$ make
$ ./cpu.exe
$ ./gpu.exe

Setup compiller environment in Windows

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.

References

P.S.

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.

Releases

No releases published

Packages

 
 
 

Languages

  • C 76.2%
  • GLSL 20.7%
  • Makefile 3.1%