Stephen Seo
c99407a474
3d_helpers facilitate usage of transformation matrices. Unit tests ensure the 3d_helpers are correct. Currently, the program rotates a Cube mesh in x, y, and z axes.
17 lines
537 B
C
17 lines
537 B
C
#ifndef JUMPARTIFACT_DOT_COM_DEMO_0_3D_HELPERS_H_
|
|
#define JUMPARTIFACT_DOT_COM_DEMO_0_3D_HELPERS_H_
|
|
|
|
// third party includes
|
|
#include <raylib.h>
|
|
|
|
extern Matrix get_identity_matrix();
|
|
extern Matrix get_rotation_matrix_about_z(float radians);
|
|
extern Matrix get_rotation_matrix_about_y(float radians);
|
|
extern Matrix get_rotation_matrix_about_x(float radians);
|
|
|
|
extern Matrix translate_matrix_z(float distance);
|
|
|
|
extern Matrix operator*(const Matrix &a, const Matrix &b);
|
|
extern Vector4 operator*(const Matrix &m, const Vector4 &v);
|
|
|
|
#endif
|