]>
Dogcows Code - chaz/yoink/blob - src/Moof/Video.hh
9b1a092332203b3e31291109413cb31e6abaa8bf
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>
20 #include <Moof/Core.hh>
27 typedef boost::shared_ptr
<Video
> VideoP
;
37 long colorBuffer
[4]; // rgba
42 long accumBuffer
[4]; // rgba
44 long multisampleBuffers
;
45 long multisampleSamples
;
52 long mode
[3]; // width, height, bpp
67 static VideoP
alloc(const std::string
& caption
,
68 const std::string
& icon
)
70 return VideoP(new Video(caption
, icon
));
74 explicit Video(const Attributes
& attribs
);
75 Video(const std::string
& caption
, const std::string
& icon
);
78 void setVideoMode(const long mode
[3]);
79 Attributes
getAttributes() const;
81 void resize(int width
, int height
);
84 void setCaption(const std::string
& caption
);
85 std::string
getCaption() const;
87 const std::string
& getIcon() const;
89 void setFull(bool full
);
93 void setCursorVisible(bool hasCursor
);
94 void toggleCursorVisible();
95 bool isCursorVisible() const;
97 void setResizable(bool resizable
);
98 void toggleResizable();
99 bool isResizable() const;
101 void setCursorGrab(bool cursorGrab
);
102 void toggleCursorGrab();
103 bool isCursorGrab() const;
107 int getWidth() const;
108 int getHeight() const;
114 void recreateContext();
115 void setOpenGLAttributes();
119 // TODO this implementation should be hidden
121 SDL_Surface
* mContext
;
132 #endif // _MOOF_VIDEO_HH_
This page took 0.042916 seconds and 4 git commands to generate.