18cd10c71STri-Edge AI/*
28cd10c71STri-Edge AI * Copyright 2012-2013 Tri-Edge AI <triedgeai@gmail.com>
38e727810SJohn Scipione * Copyright 2014 Haiku, Inc. All rights reserved.
48e727810SJohn Scipione *
58e727810SJohn Scipione * Distributed under the terms of the MIT license.
68e727810SJohn Scipione *
78e727810SJohn Scipione * Authors:
88e727810SJohn Scipione *		Tri-Edge AI
98e727810SJohn Scipione *		John Scipione, jscipione@gmail.com
108cd10c71STri-Edge AI */
118cd10c71STri-Edge AI#ifndef GRAVITY_VIEW_H
128cd10c71STri-Edge AI#define GRAVITY_VIEW_H
138cd10c71STri-Edge AI
148cd10c71STri-Edge AI
158cd10c71STri-Edge AI#include <GLView.h>
168cd10c71STri-Edge AI
178cd10c71STri-Edge AI
188cd10c71STri-Edge AIclass Gravity;
199216fc01SAugustin Cavalierstruct GravitySource;
208cd10c71STri-Edge AI
218e727810SJohn Scipione
228e727810SJohn Scipioneclass GravityView : public BGLView {
238cd10c71STri-Edge AIpublic:
248e727810SJohn Scipione							GravityView(BRect frame, Gravity* parent);
258e727810SJohn Scipione							~GravityView();
268cd10c71STri-Edge AI
278e727810SJohn Scipione			void			AttachedToWindow();
288cd10c71STri-Edge AI
298e727810SJohn Scipione			void			DirectDraw();
308cd10c71STri-Edge AI
318cd10c71STri-Edge AIprivate:
328e727810SJohn Scipione			Gravity*		fParent;
338e727810SJohn Scipione			GravitySource*	fGravitySource;
348cd10c71STri-Edge AI
358e727810SJohn Scipione			int32			fSize;
368e727810SJohn Scipione			int32			fShade;
378cd10c71STri-Edge AI};
388cd10c71STri-Edge AI
398cd10c71STri-Edge AI
408e727810SJohn Scipione#endif	// GRAVITY_VIEW_H
41