]>
Dogcows Code - chaz/yoink/blob - src/Moof/Video.hh
0cc1a4e66687c8c33ea7c7a8d7ea89e983142c20
2 /*] Copyright (c) 2009-2010, Charles McGarvey [**************************
3 **] All rights reserved.
7 * Distributable under the terms and conditions of the 2-clause BSD license;
8 * see the file COPYING for a complete text of the license.
10 **************************************************************************/
12 #ifndef _MOOF_VIDEO_HH_
13 #define _MOOF_VIDEO_HH_
17 #include <boost/shared_ptr.hpp>
21 #include <Moof/Core.hh>
28 typedef boost::shared_ptr
<Video
> VideoP
;
38 long colorBuffer
[4]; // rgba
43 long accumBuffer
[4]; // rgba
45 long multisampleBuffers
;
46 long multisampleSamples
;
53 long mode
[3]; // width, height, bpp
68 static VideoP
alloc(const std::string
& caption
,
69 const std::string
& icon
)
71 return VideoP(new Video(caption
, icon
));
75 explicit Video(const Attributes
& attribs
);
76 Video(const std::string
& caption
, const std::string
& icon
);
79 void setVideoMode(const long mode
[3]);
80 Attributes
getAttributes() const;
82 void resize(int width
, int height
);
85 void setCaption(const std::string
& caption
);
86 std::string
getCaption() const;
88 const std::string
& getIcon() const;
90 void setFull(bool full
);
94 void setCursorVisible(bool hasCursor
);
95 void toggleCursorVisible();
96 bool isCursorVisible() const;
98 void setResizable(bool resizable
);
99 void toggleResizable();
100 bool isResizable() const;
102 void setCursorGrab(bool cursorGrab
);
103 void toggleCursorGrab();
104 bool isCursorGrab() const;
108 int getWidth() const;
109 int getHeight() const;
115 void recreateContext();
116 void setOpenGLAttributes();
120 // TODO this implementation should be hidden
122 SDL_Surface
* mContext
;
133 #endif // _MOOF_VIDEO_HH_
This page took 0.043949 seconds and 3 git commands to generate.