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 19class GLifeView : public BGLView { 20public: 21 // Constructor & Destructor 22 GLifeView(BRect, const char*, ulong, 23 ulong, GLifeState*); 24 ~GLifeView(void); 25 26 // Public Methods 27 void AttachedToWindow(void); 28 virtual void Draw(BRect updateRect); 29 void Advance(void); 30 31private: 32 GLifeState* m_pglsState; 33 GLifeGrid* m_pglgGrid; 34 35 GLfloat m_glfDelta; 36 int32 m_iStep; 37}; 38 39 40#endif /* _GLIFE_GLIFEVIEW_H */ 41