add primitives
This commit is contained in:
parent
06c47a9060
commit
a45540412c
3 changed files with 309 additions and 13 deletions
|
|
@ -93,9 +93,18 @@ void mat3_rotate_x(Matrix3 *m, int angle);
|
|||
void mat3_rotate_y(Matrix3 *m, int angle);
|
||||
void mat3_mul(Matrix3 *res, Matrix3 *a, Matrix3 *b);
|
||||
|
||||
void set_object_pos(Object3D *obj, fixed x, fixed y, fixed z);
|
||||
void move_object(Object3D *obj, fixed dx, fixed dy, fixed dz);
|
||||
void set_object_color(Object3D *obj, uint8_t col);
|
||||
|
||||
/* Retournent un pointeur sur le nouvel Object3D, NULL si pool saturé */
|
||||
Object3D* add_sphere (Universe *uni, fixed x, fixed y, fixed z, fixed r, int det, uint8_t col, uint8_t wire);
|
||||
Object3D* add_cylinder(Universe *uni, fixed x, fixed y, fixed z, fixed r, fixed h, int det, uint8_t col, uint8_t wire);
|
||||
Object3D* add_box (Universe *uni, fixed x, fixed y, fixed z, fixed dx, fixed dy, fixed dz, uint8_t col, uint8_t wire);
|
||||
Object3D* add_sphere (Universe *uni, fixed x, fixed y, fixed z, fixed r, int det, uint8_t col, uint8_t wire);
|
||||
Object3D* add_cylinder (Universe *uni, fixed x, fixed y, fixed z, fixed r, fixed h, int det, uint8_t col, uint8_t wire);
|
||||
Object3D* add_cone (Universe *uni, fixed x, fixed y, fixed z, fixed r, fixed h, int det, uint8_t col, uint8_t wire);
|
||||
Object3D* add_plane (Universe *uni, fixed x, fixed y, fixed z, fixed w, fixed d, int seg_x, int seg_z, uint8_t col, uint8_t wire);
|
||||
Object3D* add_math_surface(Universe *uni, fixed x, fixed y, fixed z, fixed w, fixed d, int seg_x, int seg_z, uint8_t col, uint8_t wire);
|
||||
Object3D* add_torus (Universe *uni, fixed x, fixed y, fixed z, fixed r_main, fixed r_tube, int seg_main, int seg_tube, uint8_t col, uint8_t wire);
|
||||
|
||||
void render_universe(Universe *uni, Camera *cam, int mode);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue