diff options
author | truelight <truelight@openttd.org> | 2007-06-12 20:24:12 +0000 |
---|---|---|
committer | truelight <truelight@openttd.org> | 2007-06-12 20:24:12 +0000 |
commit | f3f744d36a60431a6845d2b7e3ce17e64ee2e4f5 (patch) | |
tree | bed173ca279e1556489d31b0b8aa873a6d1cf110 /src/gfx.h | |
parent | 381b11c9796d6b40653f8b4c319c33f9920f047a (diff) | |
download | openttd-f3f744d36a60431a6845d2b7e3ce17e64ee2e4f5.tar.xz |
(svn r10121) -Codechange: split renderer from rest of code; no longer any code directly accesses the video-buffer
-Add: added NULL blitter and renderer, which are always used for -vnull
-Add: dedicated driver doesn't blit nor render by default. Can be overruled by user. (-D -b 8bpp-optimized)
-Remove: removed CTRL+D from win32, which is incompatible with above
-Add: extended screenshot support for PNG and BMP
-Codechange: remove all hardcoded 8bpp references and replace them with more dynamic ones
-Codechange: minor stuff in blitters
Diffstat (limited to 'src/gfx.h')
-rw-r--r-- | src/gfx.h | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -7,6 +7,7 @@ #include "openttd.h" #include "zoom.hpp" +#include "renderer/renderer.hpp" enum WindowKeyCodes { WKC_SHIFT = 0x8000, @@ -93,7 +94,6 @@ void GameLoop(); void CreateConsole(); typedef int32 CursorID; -typedef byte Pixel; struct Point { int x,y; @@ -134,10 +134,11 @@ struct CursorVars { }; struct DrawPixelInfo { - Pixel *dst_ptr; + void *dst_ptr; int left, top, width, height; int pitch; ZoomLevel zoom; + Renderer *renderer; }; struct Colour { |