xref: /haiku/src/add-ons/screen_savers/glife/GLifeView.h (revision 25a7b01d15612846f332751841da3579db313082)
1 /*
2  * Copyright 2012, Haiku, Inc.
3  * Distributed under the terms of the MIT License.
4  *
5  * Authors:
6  * 		Aaron Hill <serac@hillvisions.com>
7  */
8 #ifndef _GLIFE_GLIFEVIEW_H
9 #define _GLIFE_GLIFEVIEW_H
10 
11 
12 #include <GLView.h>
13 
14 #include "GLifeState.h"
15 #include "GLifeGrid.h"
16 
17 
18 // GLifeView Class Declaration
19 class GLifeView : public BGLView {
20 public:
21 	// Constructor & Destructor
22 						GLifeView(BRect, const char*, ulong, ulong, GLifeState*);
23 						~GLifeView(void);
24 
25 	// Public Methods
26 			void		AttachedToWindow(void);
27 	virtual	void		Draw(BRect updateRect);
28 			void		Advance(void);
29 
30 private:
31 			GLifeState*	m_pglsState;
32 			GLifeGrid*	m_pglgGrid;
33 
34 			GLfloat		m_glfDelta;
35 			int32		m_iStep;
36 };
37 
38 
39 #endif /* _GLIFE_GLIFEVIEW_H */
40