2 * Copyright 2012, Haiku, Inc.
3 * Distributed under the terms of the MIT License.
6 * Aaron Hill <serac@hillvisions.com>
8 #ifndef _GLIFE_GLIFESAVER_H
9 #define _GLIFE_GLIFESAVER_H
13 #include <ScreenSaver.h>
16 #include "GLifeGrid.h"
17 #include "GLifeState.h"
18 #include "GLifeView.h"
22 const int32 c_iTickSize
= 50000;
25 // GLifeSaver Class Declaration
26 class GLifeSaver
: public BScreenSaver
30 GLifeSaver(BMessage
*, image_id
);
32 // State/Preferences Methods
33 status_t
SaveState(BMessage
*) const;
34 void RestoreState(BMessage
*);
35 void StartConfig(BView
*);
38 status_t
StartSaver(BView
*, bool);
42 void DirectConnected(direct_buffer_info
*);
43 void Draw(BView
*, int32
);
46 GLifeState fGLifeState
;
47 GLifeView
* fGLifeViewport
;
51 #endif /* _GLIFE_GLIFESAVER_H */