Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
rubberduckycooly
GitHub Repository: rubberduckycooly/Sonic-Mania-Decompilation
Path: blob/master/SonicMania/Objects/Helpers/DrawHelpers.h
338 views
1
#ifndef OBJ_DRAWHELPERS_H
2
#define OBJ_DRAWHELPERS_H
3
4
#include "Game.h"
5
6
// Object Class
7
struct ObjectDrawHelpers {
8
RSDK_OBJECT
9
};
10
11
// Entity Class
12
struct EntityDrawHelpers {
13
RSDK_ENTITY
14
};
15
16
// Object Entity
17
extern ObjectDrawHelpers *DrawHelpers;
18
19
// Standard Entity Events
20
void DrawHelpers_Update(void);
21
void DrawHelpers_LateUpdate(void);
22
void DrawHelpers_StaticUpdate(void);
23
void DrawHelpers_Draw(void);
24
void DrawHelpers_Create(void *data);
25
void DrawHelpers_StageLoad(void);
26
#if GAME_INCLUDE_EDITOR
27
void DrawHelpers_EditorDraw(void);
28
void DrawHelpers_EditorLoad(void);
29
#endif
30
void DrawHelpers_Serialize(void);
31
32
// Extra Entity Functions
33
void DrawHelpers_DrawHitboxOutline(int32 x, int32 y, Hitbox *hitbox, uint8 direction, uint32 color);
34
void DrawHelpers_DrawArrowAdditive(int32 x1, int32 y1, int32 x2, int32 y2, uint32 color);
35
void DrawHelpers_DrawIsocelesTriangle(int32 x1, int32 y1, int32 x2, int32 y2, int32 edgeSize, uint32 color, uint32 inkEffect, uint32 alpha);
36
void DrawHelpers_DrawCross(int32 x, int32 y, int32 sizeX, int32 sizeY, uint32 color);
37
38
// Custom Helpers I added for editor stuff
39
void DrawHelpers_DrawArrow(int32 x1, int32 y1, int32 x2, int32 y2, uint32 color, uint32 inkEffect, uint32 alpha);
40
void DrawHelpers_DrawRectOutline(int32 x, int32 y, int32 sizeX, int32 sizeY, uint32 color);
41
void DrawHelpers_DrawArenaBounds(int32 left, int32 top, int32 right, int32 bottom, uint8 sideMasks, uint32 color);
42
43
#endif //! OBJ_DRAWHELPERS_H
44
45