Y
Hacker News
new
|
ask
|
show
|
jobs
by
potiuper
2709 days ago
Prefer the use of types over preprocessor defines - ex: static const vs #define PI, RAD2DEG, etc. (
https://github.com/raysan5/raylib/blob/master/src/raymath.h
). Also, take a look at using the GLSL data types for vectors and matrices -
https://www.khronos.org/opengl/wiki/Data_Type_(GLSL)
along with explicit use of SSE when appropriate and supported.