CUGL 1.3
Cornell University Game Library
All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends
CUDisplay-impl.h
1 //
2 // CUDisplay-impl.h
3 // Cornell University Game Library (CUGL)
4 //
5 // The SDL display information tools fail on OS X and iOS. Therefore, we have
6 // factored this information out into platform specific files. This header
7 // is the uniform header for all platforms.
8 //
9 // This header is an internal header. It is not accessible by general users
10 // of the CUGL API.
11 //
12 // CUGL MIT License:
13 // This software is provided 'as-is', without any express or implied
14 // warranty. In no event will the authors be held liable for any damages
15 // arising from the use of this software.
16 //
17 // Permission is granted to anyone to use this software for any purpose,
18 // including commercial applications, and to alter it and redistribute it
19 // freely, subject to the following restrictions:
20 //
21 // 1. The origin of this software must not be misrepresented; you must not
22 // claim that you wrote the original software. If you use this software
23 // in a product, an acknowledgment in the product documentation would be
24 // appreciated but is not required.
25 //
26 // 2. Altered source versions must be plainly marked as such, and must not
27 // be misrepresented as being the original software.
28 //
29 // 3. This notice may not be removed or altered from any source distribution.
30 //
31 // Author: Walker White
32 // Version: 12/12/18
33 
34 #ifndef __CU_DISPLAY_IMPL_H__
35 #define __CU_DISPLAY_IMPL_H__
36 
37 #include <cugl/math/CURect.h>
38 #include <cugl/math/CUVec2.h>
39 #include <cugl/base/CUDisplay.h>
40 
41 namespace cugl {
42 namespace impl {
58  cugl::Rect DisplayBounds();
59 
84 
102  cugl::Vec2 DisplayPixelDensity();
103 
120  Display::Orientation DisplayOrientation(bool display);
121 
136  bool DisplayNotch();
137 }
138 }
139 #endif /* __CU_DISPLAY_IMPL_H__ */
cugl::Display::Orientation::UNKNOWN
cugl::Rect
Definition: CURect.h:45
cugl::Display::Orientation
Orientation
Definition: CUDisplay.h:244
cugl::Vec2
Definition: CUVec2.h:61