2 * Copyright 2009, Haiku Inc. All rights reserved.
3 * Distributed under the terms of the MIT License.
6 * Alexandre Deckner <alex@zappotek.com>
20 class RenderView
: public BGLView
{
22 RenderView(BRect frame
);
25 virtual void AttachedToWindow();
26 virtual void FrameResized(float width
, float height
);
27 virtual void ErrorCallback(unsigned long error
);
33 void _UpdateViewport();
36 uint32
_CreateRenderThread();
37 void _StopRenderThread();
38 static int32
_RenderThreadEntry(void* pointer
);
43 typedef std::vector
<MeshInstance
*> MeshInstanceList
;
44 MeshInstanceList fMeshInstances
;
46 thread_id fRenderThread
;
49 BPoint fRes
, fNextRes
;
50 bigtime_t fLastFrameTime
;
53 #endif /* _RENDERVIEW_H */