1 /* 2 * Copyright 2012-2013 Tri-Edge AI <triedgeai@gmail.com> 3 * All rights reserved. Distributed under the terms of the MIT license. 4 */ 5 #ifndef GRAVITY_VIEW_H 6 #define GRAVITY_VIEW_H 7 8 9 #include <GLView.h> 10 11 12 class Gravity; 13 class GravitySource; 14 15 class GravityView : public BGLView 16 { 17 public: 18 GravityView(Gravity* parent, BRect rect); 19 ~GravityView(); 20 21 void AttachedToWindow(); 22 23 void DirectDraw(); 24 25 private: 26 Gravity* fParent; 27 GravitySource* fGravSource; 28 29 }; 30 31 32 #endif 33