PowerBlocks SDK
 
Loading...
Searching...
No Matches
matrix4.h
Go to the documentation of this file.
1
11
12#pragma once
13
14typedef float matrix4[4][4];
15
28extern void matrix4_perspective(matrix4 mtx, float fov, float aspect, float near, float far);
29
49extern void matrix4_orthographic(matrix4 mtx, float left, float right, float bottom, float top, float near, float far);
void matrix4_orthographic(matrix4 mtx, float left, float right, float bottom, float top, float near, float far)
Generate a orthographic projection matrix.
Definition matrix4.c:40
void matrix4_perspective(matrix4 mtx, float fov, float aspect, float near, float far)
Generate a perspective projection matrix.
Definition matrix4.c:16