mirror of
https://github.com/guezoloic/t3dsr.git
synced 2026-01-25 09:34:24 +00:00
feat: add mat4 init functions
This commit is contained in:
@@ -1,7 +1,13 @@
|
||||
#include <stdio.h>
|
||||
#include "math/vec4.h"
|
||||
#include "math/mat4.h"
|
||||
|
||||
int main(void)
|
||||
{
|
||||
float arr[16] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16};
|
||||
Mat4f_t mat1 = mat4f_from_array(arr);
|
||||
Mat4f_t mat2 = mat4f_scalar(1);
|
||||
Mat4f_t mat3 = mat4f_zero();
|
||||
Mat4f_t mat4 = mat4f_identity();
|
||||
printf("%f", arr[1]);
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user