OSVR-Core
DisplayInput.h
Go to the documentation of this file.
1 
11 // Copyright 2015 Sensics, Inc.
12 //
13 // Licensed under the Apache License, Version 2.0 (the "License");
14 // you may not use this file except in compliance with the License.
15 // You may obtain a copy of the License at
16 //
17 // http://www.apache.org/licenses/LICENSE-2.0
18 //
19 // Unless required by applicable law or agreed to in writing, software
20 // distributed under the License is distributed on an "AS IS" BASIS,
21 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
22 // See the License for the specific language governing permissions and
23 // limitations under the License.
24 
25 #ifndef INCLUDED_DisplayInput_h_GUID_66C8D271_F035_499C_6BD9_DCA114E2C9AF
26 #define INCLUDED_DisplayInput_h_GUID_66C8D271_F035_499C_6BD9_DCA114E2C9AF
27 
28 // Internal Includes
29 #include <osvr/Client/Export.h>
31 
32 // Library/third-party includes
33 // - none
34 
35 // Standard includes
36 // - none
37 
38 namespace osvr {
39 namespace client {
40  class DisplayConfigFactory;
41  class DisplayInput {
42  public:
44 
45  OSVR_CLIENT_EXPORT OSVR_DisplayDimension getDisplayWidth() const;
46  OSVR_CLIENT_EXPORT OSVR_DisplayDimension getDisplayHeight() const;
47 
48  private:
50  uint32_t m_width;
51  uint32_t m_height;
52  friend class DisplayConfigFactory;
53  };
54 
55 } // namespace client
56 } // namespace osvr
57 
58 #endif // INCLUDED_DisplayInput_h_GUID_66C8D271_F035_499C_6BD9_DCA114E2C9AF
Definition: DisplayInput.h:41
The main namespace for all C++ elements of the framework, internal and external.
Definition: namespace_osvr.dox:3
Definition: DisplayConfig.h:50
Header with integer types for Viewer, Eye, and Surface counts/indices, as well as viewport informatio...
int32_t OSVR_DisplayDimension
The integer type used in specification of size or location of a display input, in pixels...
Definition: RenderingTypesC.h:56