vsg  1.1.0
VulkanSceneGraph library
Version.h
1 /* <editor-fold desc="MIT License">
2 
3 Copyright(c) 2018 Robert Osfield
4 
5 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
6 
7 The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
8 
9 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
10 
11 </editor-fold> */
12 
13 #pragma once
14 
15 #include <vsg/core/Export.h>
16 
17 #ifdef __cplusplus
18 extern "C"
19 {
20 #endif
21 
22  #define VSG_VERSION_MAJOR 1
23  #define VSG_VERSION_MINOR 1
24  #define VSG_VERSION_PATCH 0
25  #define VSG_SOVERSION 14
26 
27  #define VSG_VERSION_STRING "1.1.0"
28  #define VSG_SOVERSION_STRING "14"
29 
31  #define VSG_MAX_DEVICES 1
32 
34  #define VSG_SUPPORTS_ShaderCompiler 1
35 
37  #define VSG_SUPPORTS_Windowing 1
38 
39  struct VsgVersion
40  {
41  unsigned int major;
42  unsigned int minor;
43  unsigned int patch;
44  unsigned int soversion;
45  };
46 
47  extern VSG_DECLSPEC struct VsgVersion vsgGetVersion();
48  extern VSG_DECLSPEC const char* vsgGetVersionString();
49  extern VSG_DECLSPEC const char* vsgGetSOVersionString();
50 
53  extern VSG_DECLSPEC int vsgBuiltAsSharedLibrary();
54 
55 #ifdef __cplusplus
56 }
57 #endif
58 
59 #ifdef __cplusplus
60  inline bool operator < (const VsgVersion& lhs, const VsgVersion& rhs)
61  {
62  if (lhs.major < rhs.major) return true;
63  if (lhs.major > rhs.major) return false;
64  if (lhs.minor < rhs.minor) return true;
65  if (lhs.minor > rhs.minor) return false;
66  if (lhs.patch < rhs.patch) return true;
67  if (lhs.patch > rhs.patch) return false;
68  return lhs.soversion < rhs.soversion;
69  }
70 #endif
Definition: Version.h:40