Skip to content

Commit fc56589

Browse files
committed
bflibrary: Add gpoly_point struct to draw_gpoly()
Another step in making draw_gpoly() easier to understand.
1 parent 73cea3c commit fc56589

File tree

2 files changed

+204
-214
lines changed

2 files changed

+204
-214
lines changed

bflibrary/include/poly_gp.h

Lines changed: 13 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,15 @@ extern "C" {
2828

2929
#pragma pack(1)
3030

31+
struct gpoly_point {
32+
int Y;
33+
int X;
34+
int X_prc;
35+
int S;
36+
int U;
37+
int V;
38+
};
39+
3140
struct gpoly_factors {
3241
int S[4];
3342
};
@@ -40,33 +49,14 @@ struct gpoly_state {
4049
int ratioCA_X2Y;
4150
int ratioBA_X2Y;
4251
int ratioCB_X2Y;
52+
int var_134;
53+
struct gpoly_point ptA;
54+
struct gpoly_point ptB;
55+
struct gpoly_point ptC;
4356
struct gpoly_factors incC;
4457
struct gpoly_factors incD;
45-
int ptA_Y;
46-
int ptA_X;
47-
int ptA_X_prc;
48-
int ptA_S;
49-
int ptA_U;
50-
int ptA_V;
51-
int ptB_Y;
52-
int ptB_X;
53-
int ptB_X_prc;
54-
int ptB_S;
55-
int ptB_U;
56-
int ptB_V;
57-
int ptC_Y;
58-
int ptC_X;
59-
int ptC_X_prc;
60-
int ptC_S;
61-
int ptC_U;
62-
int ptC_V;
63-
int var_134;
6458
struct gpoly_factors incA;
6559
struct gpoly_factors incB;
66-
int var_0BC;
67-
int var_0B8;
68-
int var_0B4;
69-
int var_0A8;
7060
struct gpoly_blends bldA;
7161
struct gpoly_blends bldB;
7262
};

0 commit comments

Comments
 (0)