Change projection w/keyboard

This commit is contained in:
PedroEdiaz
2024-10-22 23:07:30 -06:00
parent 6727c5fa9a
commit 2a5a101080
7 changed files with 140 additions and 48 deletions

View File

@@ -12,6 +12,22 @@ typedef void * mesh_t;
typedef float * quat_t;
typedef float * mat4_t;
/*
This struct represent the proyection, where:
mesh: data of surface.
m: the dimention of the surface.
x: the coordanate of the x axis.
y: the coordanate of the y axis.
z: the coordanate of the z axis.
w: the coordanate of the w axis.
*/
struct projection
{
mesh_t mesh;
unsigned char m, x, y, z, w;
};
/*
Init window:
w: default width;
@@ -31,11 +47,12 @@ void close_window(window_t window);
Create mesh:
d: array of floats with the vertex data.
n: array of floats with the normal data.
coordanate: the number of the 3 axis that we are displaying.
m: Dimention of mesh
*/
mesh_t create_mesh( float * d, float * n, unsigned char * coordanate, unsigned char m );
mesh_t create_mesh( float * d, float * n, unsigned char m );
void set_projection_mesh( struct projection );
void destroy_mesh(mesh_t p);