13 #define BGL_OVERLAY 64 14 #define BGL_UNDERLAY 128 15 #define BGL_STENCIL 512 17 #include <interface/View.h> 18 #include <support/Locker.h> 20 #include <GL/oscontext.h> 21 #include <game/WindowScreen.h> 22 #include <game/DirectWindow.h> 24 class BGLView :
public BView {
26 BGLView(BRect rect,
char *name,
27 ulong resizingMode, ulong mode,
38 virtual void ErrorCallback(GLenum errorCode);
39 virtual void Draw(BRect updateRect);
40 virtual void AttachedToWindow();
41 virtual void AllAttached();
42 virtual void DetachedFromWindow();
43 virtual void AllDetached();
44 virtual void FrameResized(
float width,
float height);
51 virtual status_t Archive(BMessage *data,
bool deep =
true)
const;
52 virtual void MessageReceived(BMessage *msg);
53 virtual void SetResizingMode(uint32 mode);
58 virtual BHandler *ResolveSpecifier(BMessage *msg, int32 index,
59 BMessage *specifier, int32 form,
60 const char *property);
61 virtual status_t GetSupportedSuites(BMessage *data);
66 ostgl_context *context;
69 static BLocker locker;