Change projection w/keyboard
This commit is contained in:
21
src/main.h
21
src/main.h
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user