Ocular Engine
WindowDescriptor.hpp
1 
17 #pragma once
18 #ifndef __H__OCULAR_RENDERER_WINDOW_DESCRIPTOR__H__
19 #define __H__OCULAR_RENDERER_WINDOW_DESCRIPTOR__H__
20 
21 #include "WindowDisplay.hpp"
22 #include <string>
23 
24 //------------------------------------------------------------------------------------------
25 
30 namespace Ocular
31 {
36  namespace Core
37  {
79  {
80  std::string displayName;
81 
82  union {uint32_t width, xResolution; };
83  union {uint32_t height, yResolution; };
84 
85  uint32_t colorBits;
86  uint32_t depthBits;
87  uint32_t stencilBits;
88 
89  WindowDisplayMode displayMode;
90 
91  bool exclusiveMode;
92  bool external;
93 
94  WindowDescriptor() : displayName("Window"), width(800), height(600), colorBits(8), depthBits(8), stencilBits(8), displayMode(WindowDisplayMode::WindowedBordered), exclusiveMode(false), external(false) { }
95  };
96  }
100 }
105 //------------------------------------------------------------------------------------------
106 
107 #endif
Definition: WindowDescriptor.hpp:78
bool external
If true, the window was created externally (ie in Editor) and should not be destroyed.
Definition: WindowDescriptor.hpp:92
Note: Once this library is made dynamic, this will no longer be needed.
Definition: Common.hpp:70
std::string displayName
Name used for display purposes (such as the title bar)
Definition: WindowDescriptor.hpp:80