sm64pc/src/goddard/shape_helper.h

34 lines
1.1 KiB
C
Raw Permalink Normal View History

2020-06-02 18:44:34 +02:00
#ifndef GD_SHAPE_HELPER_H
#define GD_SHAPE_HELPER_H
#include <PR/ultratypes.h>
2019-08-25 06:46:40 +02:00
#include "gd_types.h"
// data
extern struct ObjGroup *gMarioFaceGrp;
extern struct ObjShape *D_801A82E4;
extern struct ObjShape *gShapeRedSpark;
2019-12-02 03:52:53 +01:00
extern struct ObjShape *gShapeSilverSpark;
2019-08-25 06:46:40 +02:00
extern struct ObjShape *gShapeRedStar;
extern struct ObjShape *gShapeSilverStar;
// functions
2020-06-02 18:44:34 +02:00
void calc_face_normal(struct ObjFace *face);
struct ObjVertex *gd_make_vertex(f32 x, f32 y, f32 z);
void add_3_vtx_to_face(struct ObjFace *face, struct ObjVertex *vtx1, struct ObjVertex *vtx2, struct ObjVertex *vtx3);
struct ObjShape *make_shape(s32 flag, const char *name);
void scale_verts_in_shape(struct ObjShape *shape, f32 x, f32 y, f32 z);
struct ObjNet *make_netfromshape(struct ObjShape *shape);
void animate_mario_head_gameover(struct ObjAnimator *self);
void animate_mario_head_normal(struct ObjAnimator *self);
s32 load_mario_head(void (*aniFn)(struct ObjAnimator *));
void load_shapes2(void);
2019-08-25 06:46:40 +02:00
// see bad_declarations.h
2019-12-02 03:52:53 +01:00
#ifndef GD_USE_BAD_DECLARATIONS
2020-06-02 18:44:34 +02:00
struct ObjFace* make_face_with_colour(f32 r, f32 g, f32 b);
2019-08-25 06:46:40 +02:00
#endif
2020-06-02 18:44:34 +02:00
#endif // GD_SHAPE_HELPER_H