equal
deleted
inserted
replaced
5 #ifndef GFX_H |
5 #ifndef GFX_H |
6 #define GFX_H |
6 #define GFX_H |
7 |
7 |
8 #include "openttd.h" |
8 #include "openttd.h" |
9 #include "zoom.hpp" |
9 #include "zoom.hpp" |
|
10 #include "renderer/renderer.hpp" |
10 |
11 |
11 enum WindowKeyCodes { |
12 enum WindowKeyCodes { |
12 WKC_SHIFT = 0x8000, |
13 WKC_SHIFT = 0x8000, |
13 WKC_CTRL = 0x4000, |
14 WKC_CTRL = 0x4000, |
14 WKC_ALT = 0x2000, |
15 WKC_ALT = 0x2000, |
91 void GameLoop(); |
92 void GameLoop(); |
92 |
93 |
93 void CreateConsole(); |
94 void CreateConsole(); |
94 |
95 |
95 typedef int32 CursorID; |
96 typedef int32 CursorID; |
96 typedef byte Pixel; |
|
97 |
97 |
98 struct Point { |
98 struct Point { |
99 int x,y; |
99 int x,y; |
100 }; |
100 }; |
101 |
101 |
132 bool fix_at; ///< mouse is moving, but cursor is not (used for scrolling) |
132 bool fix_at; ///< mouse is moving, but cursor is not (used for scrolling) |
133 bool in_window; ///< mouse inside this window, determines drawing logic |
133 bool in_window; ///< mouse inside this window, determines drawing logic |
134 }; |
134 }; |
135 |
135 |
136 struct DrawPixelInfo { |
136 struct DrawPixelInfo { |
137 Pixel *dst_ptr; |
137 void *dst_ptr; |
138 int left, top, width, height; |
138 int left, top, width, height; |
139 int pitch; |
139 int pitch; |
140 ZoomLevel zoom; |
140 ZoomLevel zoom; |
|
141 Renderer *renderer; |
141 }; |
142 }; |
142 |
143 |
143 struct Colour { |
144 struct Colour { |
144 byte r; |
145 byte r; |
145 byte g; |
146 byte g; |