]> git.tdb.fi Git - libs/gl.git/blobdiff - source/core/backend.h
Check the flat qualifier from the correct member
[libs/gl.git] / source / core / backend.h
index 0dd0172c503637a388932468a4439d1d12ebd959..abdb4ccf4b27a72e6af5375f5a0ce0839816b928 100644 (file)
@@ -9,15 +9,16 @@ namespace GL {
 enum GraphicsApi
 {
        OPENGL,
-       OPENGL_ES
+       OPENGL_ES,
+       VULKAN
 };
 
 struct Version
 {
-       unsigned short major;
-       unsigned short minor;
+       unsigned short major = 0;
+       unsigned short minor = 0;
 
-       Version();
+       Version() = default;
        Version(unsigned short, unsigned short);
        Version(const std::string &);
 
@@ -29,9 +30,6 @@ struct Version
 /** Returns the backend for which the library was compiled. */
 GraphicsApi get_backend_api();
 
-/** Returns the backend version number, as reported by the implementation. */
-const Version &get_backend_version();
-
 } // namespace GL
 } // namespace Msp