Renderer: Expose present mode and allow to query/set it
This commit is contained in:
@@ -35,10 +35,12 @@ namespace Nz::GL
|
||||
virtual bool Create(const ContextParams& params, WindowHandle window, const EGLContextBase* shareContext = nullptr);
|
||||
virtual void Destroy();
|
||||
|
||||
void EnableVerticalSync(bool enabled) override;
|
||||
PresentModeFlags GetSupportedPresentModes() const override;
|
||||
|
||||
inline bool HasPlatformExtension(const std::string& str) const;
|
||||
|
||||
void SetPresentMode(PresentMode presentMode) override;
|
||||
|
||||
void SwapBuffers() override;
|
||||
|
||||
EGLContextBase& operator=(const EGLContextBase&) = delete;
|
||||
@@ -72,6 +74,8 @@ namespace Nz::GL
|
||||
|
||||
std::unordered_set<std::string> m_supportedPlatformExtensions;
|
||||
EGLContext m_handle;
|
||||
EGLint m_maxSwapInterval;
|
||||
EGLint m_minSwapInterval;
|
||||
bool m_ownsDisplay;
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user