started to implement stuff, it can actually be used and renders my test app almost like the old implementation, plus clipping

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12050 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stephan Aßmus
2005-03-26 22:09:02 +00:00
parent e56d7bd374
commit 4157339be2
2 changed files with 366 additions and 107 deletions
@@ -33,6 +33,9 @@
#include "DisplayDriver.h"
class HWInterface;
class Painter;
class DisplayDriverPainter : public DisplayDriver {
public:
DisplayDriverPainter();
@@ -225,16 +228,8 @@ class DisplayDriverPainter : public DisplayDriver {
virtual bool IsCursorObscured(bool state);*/
// These two will rarely be implemented by subclasses,
// but it still needs to be possible
virtual bool Lock(bigtime_t timeout = B_INFINITE_TIMEOUT);
virtual void Unlock();
// display mode access
virtual void SetMode(const display_mode &mode);
void GetMode(display_mode *mode);
inline const display_mode* DisplayMode() const
{ return &fDisplayMode; }
virtual bool DumpToFile(const char *path);
virtual ServerBitmap* DumpToBitmap();
@@ -282,7 +277,8 @@ class DisplayDriverPainter : public DisplayDriver {
virtual void ConstrainClippingRegion(BRegion *reg);
private:
Painter fPainter;
Painter* fPainter;
HWInterface* fGraphicsCard;
};
#endif // _DISPLAY_DRIVER_PAINTER_H_