2 * Copyright 2006-2008, Haiku. All rights reserved.
3 * Distributed under the terms of the MIT License.
6 * Philippe Houdoin, philippe.houdoin@free.fr
9 #ifndef FAKE_RENDERER_H
10 #define FAKE_RENDERER_H
12 #include "GLRenderer.h"
14 class FakeRenderer
: public BGLRenderer
{
16 FakeRenderer(BGLView
* view
,
18 BGLDispatcher
* dispatcher
);
19 virtual ~FakeRenderer();
21 virtual void SwapBuffers(bool VSync
= false);
22 virtual void Draw(BRect updateRect
);
24 virtual void EnableDirectMode(bool enabled
);
25 virtual void DirectConnected(direct_buffer_info
* info
);
28 static int32
_DirectDrawThread(void *data
);
29 int32
_DirectDrawThread();
34 thread_id fDrawThread
;
41 color_space fColorSpace
;
42 clipping_rect fBounds
;
43 clipping_rect
* fRects
;
50 #endif // FAKE_RENDERER_H