Unofficial OpenGL Software Development Kit: C:/Projects/distro/glsdk_0_5_1/glutil/include/glutil/WindowPos.h Source File

Unofficial OpenGL Software Development Kit 0.5.0

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
WindowPos.h
Go to the documentation of this file.
1
2 #ifndef WINDOW_POSITION_UTIL_H
3 #define WINDOW_POSITION_UTIL_H
4
10 #include <glm/glm.hpp>
11
12 namespace glutil
13 {
16
18 enum HorizWindowPos
19 {
20 WH_CENTER,
21 WH_LEFT,
22 WH_RIGHT,
23 };
24
26 enum VertWindowPos
27 {
28 WV_CENTER,
29 WV_TOP,
30 WV_BOTTOM,
31 };
32
45 glm::ivec2 CalcWindowPosition(const glm::ivec2 &wndSize, const glm::ivec2 &desktopSize,
46 HorizWindowPos hpos = WH_CENTER, VertWindowPos vpos = WV_CENTER);
48 }
49
50 #endif //WINDOW_POSITION_UTIL_H