Changeset View
Changeset View
Standalone View
Standalone View
abstract_opengl_context_attribute_builder.h
Show First 20 Lines • Show All 88 Lines • ▼ Show 20 Line(s) | 29 | public: | |||
---|---|---|---|---|---|
89 | void setResetOnVideoMemoryPurge(bool reset) { | 89 | void setResetOnVideoMemoryPurge(bool reset) { | ||
90 | m_resetOnVideoMemoryPurge = reset; | 90 | m_resetOnVideoMemoryPurge = reset; | ||
91 | } | 91 | } | ||
92 | 92 | | |||
93 | bool isResetOnVideoMemoryPurge() const { | 93 | bool isResetOnVideoMemoryPurge() const { | ||
94 | return m_resetOnVideoMemoryPurge; | 94 | return m_resetOnVideoMemoryPurge; | ||
95 | } | 95 | } | ||
96 | 96 | | |||
97 | void setHighPriority(bool highPriority) { | ||||
98 | m_highPriority = highPriority; | ||||
99 | } | ||||
100 | | ||||
101 | bool isHighPriority() const { | ||||
102 | return m_highPriority; | ||||
103 | } | ||||
104 | | ||||
97 | virtual std::vector<int> build() const = 0; | 105 | virtual std::vector<int> build() const = 0; | ||
98 | 106 | | |||
99 | QDebug operator<<(QDebug dbg) const; | 107 | QDebug operator<<(QDebug dbg) const; | ||
100 | 108 | | |||
101 | private: | 109 | private: | ||
102 | bool m_versionRequested = false; | 110 | bool m_versionRequested = false; | ||
103 | int m_majorVersion = 0; | 111 | int m_majorVersion = 0; | ||
104 | int m_minorVersion = 0; | 112 | int m_minorVersion = 0; | ||
105 | bool m_robust = false; | 113 | bool m_robust = false; | ||
106 | bool m_forwardCompatible = false; | 114 | bool m_forwardCompatible = false; | ||
107 | bool m_coreProfile = false; | 115 | bool m_coreProfile = false; | ||
108 | bool m_compatibilityProfile = false; | 116 | bool m_compatibilityProfile = false; | ||
109 | bool m_resetOnVideoMemoryPurge = false; | 117 | bool m_resetOnVideoMemoryPurge = false; | ||
118 | bool m_highPriority = false; | ||||
110 | }; | 119 | }; | ||
111 | 120 | | |||
112 | inline QDebug operator<<(QDebug dbg, const AbstractOpenGLContextAttributeBuilder *attribs) | 121 | inline QDebug operator<<(QDebug dbg, const AbstractOpenGLContextAttributeBuilder *attribs) | ||
113 | { | 122 | { | ||
114 | return attribs->operator<<(dbg); | 123 | return attribs->operator<<(dbg); | ||
115 | } | 124 | } | ||
116 | 125 | | |||
117 | } | 126 | } |