Changeset View
Changeset View
Standalone View
Standalone View
abstract_opengl_context_attribute_builder.h
Show First 20 Lines • Show All 80 Lines • ▼ Show 20 Line(s) | 80 | if (m_compatibilityProfile) { | |||
---|---|---|---|---|---|
81 | setCoreProfile(false); | 81 | setCoreProfile(false); | ||
82 | } | 82 | } | ||
83 | } | 83 | } | ||
84 | 84 | | |||
85 | bool isCompatibilityProfile() const { | 85 | bool isCompatibilityProfile() const { | ||
86 | return m_compatibilityProfile; | 86 | return m_compatibilityProfile; | ||
87 | } | 87 | } | ||
88 | 88 | | |||
89 | void setResetOnVideoMemoryPurge(bool reset) { | ||||
90 | m_resetOnVideoMemoryPurge = reset; | ||||
91 | } | ||||
92 | | ||||
93 | bool isResetOnVideoMemoryPurge() const { | ||||
94 | return m_resetOnVideoMemoryPurge; | ||||
95 | } | ||||
96 | | ||||
89 | virtual std::vector<int> build() const = 0; | 97 | virtual std::vector<int> build() const = 0; | ||
90 | 98 | | |||
91 | QDebug operator<<(QDebug dbg) const; | 99 | QDebug operator<<(QDebug dbg) const; | ||
92 | 100 | | |||
93 | private: | 101 | private: | ||
94 | bool m_versionRequested = false; | 102 | bool m_versionRequested = false; | ||
95 | int m_majorVersion = 0; | 103 | int m_majorVersion = 0; | ||
96 | int m_minorVersion = 0; | 104 | int m_minorVersion = 0; | ||
97 | bool m_robust = false; | 105 | bool m_robust = false; | ||
98 | bool m_forwardCompatible = false; | 106 | bool m_forwardCompatible = false; | ||
99 | bool m_coreProfile = false; | 107 | bool m_coreProfile = false; | ||
100 | bool m_compatibilityProfile = false; | 108 | bool m_compatibilityProfile = false; | ||
109 | bool m_resetOnVideoMemoryPurge = false; | ||||
101 | }; | 110 | }; | ||
102 | 111 | | |||
103 | inline QDebug operator<<(QDebug dbg, const AbstractOpenGLContextAttributeBuilder *attribs) | 112 | inline QDebug operator<<(QDebug dbg, const AbstractOpenGLContextAttributeBuilder *attribs) | ||
104 | { | 113 | { | ||
105 | return attribs->operator<<(dbg); | 114 | return attribs->operator<<(dbg); | ||
106 | } | 115 | } | ||
107 | 116 | | |||
108 | } | 117 | } |