vfs: check userland buffers before reading them.
[haiku.git] / src / add-ons / screen_savers / glife / GLifeView.h
blob2b249e3ee00b6e9fe9b70882392e9df762dbbdfa
1 /*
2 * Copyright 2012, Haiku, Inc.
3 * Distributed under the terms of the MIT License.
5 * Authors:
6 * Aaron Hill <serac@hillvisions.com>
7 */
8 #ifndef _GLIFE_GLIFEVIEW_H
9 #define _GLIFE_GLIFEVIEW_H
12 #include <GLView.h>
14 #include "GLifeState.h"
15 #include "GLifeGrid.h"
18 // GLifeView Class Declaration
19 class GLifeView : public BGLView {
20 public:
21 // Constructor & Destructor
22 GLifeView(BRect, const char*, ulong,
23 ulong, GLifeState*);
24 ~GLifeView(void);
26 // Public Methods
27 void AttachedToWindow(void);
28 virtual void Draw(BRect updateRect);
29 void Advance(void);
31 private:
32 GLifeState* m_pglsState;
33 GLifeGrid* m_pglgGrid;
35 GLfloat m_glfDelta;
36 int32 m_iStep;
40 #endif /* _GLIFE_GLIFEVIEW_H */