diff options
author | Philippe Houdoin <[email protected]> | 2004-08-14 10:27:08 +0000 |
---|---|---|
committer | Philippe Houdoin <[email protected]> | 2004-08-14 10:27:08 +0000 |
commit | a041e62418a72f0fd379e50263e1c9d2e6c6bb55 (patch) | |
tree | 578847e0704507461122c73f5fff867e284a5c37 /src/glut/beos/glutWindow.h | |
parent | fad0e5d448d9a2b55a7faa3fcb569470c381fb4b (diff) |
Update to Jake Hamby's BeOS GLUT 3.7 port.
Diffstat (limited to 'src/glut/beos/glutWindow.h')
-rw-r--r-- | src/glut/beos/glutWindow.h | 28 |
1 files changed, 19 insertions, 9 deletions
diff --git a/src/glut/beos/glutWindow.h b/src/glut/beos/glutWindow.h index 7a4292e7331..d3ac1862695 100644 --- a/src/glut/beos/glutWindow.h +++ b/src/glut/beos/glutWindow.h @@ -1,5 +1,10 @@ /*********************************************************** - * Copyright (C) 1997, Be Inc. All rights reserved. + * Copyright (C) 1997, Be Inc. Copyright (C) 1999, Jake Hamby. + * + * This program is freely distributable without licensing fees + * and is provided without guarantee or warrantee expressed or + * implied. This program is -not- in the public domain. + * * * FILE: glutWindow.h * @@ -32,8 +37,6 @@ public: void MouseMoved(BPoint point, uint32 transit, const BMessage *message); void FrameResized(float width, float height); void Draw(BRect updateRect); - void Hide(); - void Show(); void Pulse(); // needed since MouseUp() is broken void MouseCheck(); // check for button state changes void ErrorCallback(GLenum errorCode); @@ -62,6 +65,7 @@ public: GLUTkeyboardCB keyboard; /* keyboard (ASCII,x,y) */ GLUTvisibilityCB visibility; /* visibility */ GLUTspecialCB special; /* special key */ + GLUTwindowStatusCB windowStatus; /* window status */ bool anyevents; // were any events received? bool displayEvent; // call display @@ -71,13 +75,11 @@ public: bool passiveEvent; // call passive bool entryEvent; // call entry bool keybEvent; // call keyboard - bool visEvent; // call visibility + bool windowStatusEvent; // call visibility bool specialEvent; // call special bool statusEvent; // menu status changed bool menuEvent; // menu selected - bool swapHack; // faked out single buffering - int button, mouseState; // for mouse callback int mouseX, mouseY; // for mouse callback int motionX, motionY; // for motion callback @@ -93,17 +95,25 @@ public: int statusX, statusY; // for status callback int menuNumber; // for menu and status callbacks int menuValue; // for menu callback + bool visible; // for visibility callback }; /*********************************************************** * CLASS: GlutBWindow * - * INHERITS FROM: BWindow + * INHERITS FROM: BDirectWindow * * DESCRIPTION: basically a BWindow that won't quit ***********************************************************/ -class GlutBWindow : public BWindow { +class GlutBWindow : public BDirectWindow { public: GlutBWindow(BRect frame, char *name); + ~GlutBWindow(); + void DirectConnected(direct_buffer_info *info); bool QuitRequested(); // exits app -};
\ No newline at end of file + void Minimize(bool minimized); // minimized windows are not visible + void Hide(); + void Show(); + GlutWindow *bgl; + bool fConnectionDisabled; +}; |