Begin cross platform support

This commit is contained in:
2025-10-10 03:00:00 +04:00
parent a2a9343c27
commit 7698d0e657
25 changed files with 757 additions and 545 deletions

17
src/engine/point.h Normal file
View File

@@ -0,0 +1,17 @@
#ifndef POINT_H
#define POINT_H
#include "../utils/screen.h"
typedef struct Point {
float coordinates[3];
} Point;
void point_transform(Point *const point, int size,
const float translate_matrix[size][size]);
void point_create_translate_matrix(const Point *const position,
float translate_matrix[4][4], int k);
ScreenPoint point_convert_to_screen_point(Point *point, Screen *screen,
const float render_matrix[4][4]);
#endif