-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathBitmapsInfo.txt
More file actions
78 lines (60 loc) · 1.14 KB
/
Copy pathBitmapsInfo.txt
File metadata and controls
78 lines (60 loc) · 1.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
Coordinates
-------------
Display:
--------
(x, y)
(0, 0)
+----+
| |
| |
+----+
(pView->m_pBitmapInfo->biWidth-1, pView->m_pBitmapInfo->biHeight-1)
Bitmaps:
--------
(bx, by)
bx = x
by = (pView->m_pBitmapInfo->biHeight-1) - y
(pView->m_pBitmapInfo->biWidth-1, pView->m_pBitmapInfo->biHeight-1)
+----+
| |
| |
+----+
(0, 0)
Tilepoints:
-----------
(tx, ty)
tx =
ty =
(pDoc->m_War3Map.GetMapWidth(), pDoc->m_War3Map.GetMapHeight())
+----+
| |
| |
+----+
(0, 0)
note: pDoc->m_War3Map.GetMapWidth() = "nombre de tilepoints sur une ligne" - 1
(idem pour la verticale)
Doodads coordinates:
--------------------
(dx, dy)
Path map TGA:
-------------
(px, py)
px =
py =
(0, 0)
+----+
| |
| |
+----+
(pDoc->m_War3Map.GetMapWidth()*4 -1, pDoc->m_War3Map.GetMapHeight()*4 -1)
Shadow map & path map:
----------------------
(sx, sy)
sx =
sy =
(pDoc->m_War3Map.mapShadowMap.GetShadowMapWidth() -1, pDoc->m_War3Map.mapShadowMap.GetShadowMapHeight() -1)
+----+
| |
| |
+----+
(0, 0)