sm64

A Super Mario 64 decompilation
Log | Files | Refs | README | LICENSE

shape_helper.h (1126B)


      1 #ifndef GD_SHAPE_HELPER_H
      2 #define GD_SHAPE_HELPER_H
      3 
      4 #include <PR/ultratypes.h>
      5 
      6 #include "gd_types.h"
      7 
      8 // data
      9 extern struct ObjGroup *gMarioFaceGrp;
     10 extern struct ObjShape *gSpotShape;
     11 extern struct ObjShape *gShapeRedSpark;
     12 extern struct ObjShape *gShapeSilverSpark;
     13 extern struct ObjShape *gShapeRedStar;
     14 extern struct ObjShape *gShapeSilverStar;
     15 
     16 // functions
     17 void calc_face_normal(struct ObjFace *face);
     18 struct ObjVertex *gd_make_vertex(f32 x, f32 y, f32 z);
     19 void add_3_vtx_to_face(struct ObjFace *face, struct ObjVertex *vtx1, struct ObjVertex *vtx2, struct ObjVertex *vtx3);
     20 struct ObjShape *make_shape(s32 flag, const char *name);
     21 void scale_verts_in_shape(struct ObjShape *shape, f32 x, f32 y, f32 z);
     22 struct ObjNet *make_netfromshape(struct ObjShape *shape);
     23 void animate_mario_head_gameover(struct ObjAnimator *self);
     24 void animate_mario_head_normal(struct ObjAnimator *self);
     25 s32 load_mario_head(void (*aniFn)(struct ObjAnimator *));
     26 void load_shapes2(void);
     27 
     28 // see bad_declarations.h
     29 #ifndef GD_USE_BAD_DECLARATIONS
     30 struct ObjFace* make_face_with_colour(f32 r, f32 g, f32 b);
     31 #endif
     32 
     33 #endif // GD_SHAPE_HELPER_H