2 * Copyright 2008 Haiku Inc. All rights reserved.
3 * Distributed under the terms of the MIT License.
11 * Original Be Sample source modified to use a quaternion for the object's orientation
15 Copyright 1999, Be Incorporated. All Rights Reserved.
16 This file may be used under the terms of the Be Sample Code License.
22 #include "ObjectView.h"
24 #include "Quaternion.h"
44 GLObject(ObjectView
* ov
);
46 virtual void Draw(bool forID
, float IDcolor
[]);
48 virtual bool SpinIt();
49 void Spin(float rx
, float ry
);
50 void RotateWorldSpace(float rx
, float ry
);
51 virtual void MenuInvoked(BPoint point
);
52 virtual void DoDrawing(bool forID
) {};
69 class TriangleObject
: public GLObject
{
71 TriangleObject(ObjectView
* ov
);
72 virtual ~TriangleObject();
73 status_t
InitCheck() const;
74 virtual void DoDrawing(bool forID
);
78 BufferArray
<point
> fPoints
;
79 BufferArray
<tri
> fTriangles
;
80 BufferArray
<quadStrip
> fQs
;