Report OpenSubdiv version Blender is compiled against

This commit is contained in:
Sergey Sharybin
2017-06-07 12:16:48 +02:00
parent 3fe73c72d6
commit 5489b40a5a
7 changed files with 168 additions and 0 deletions

View File

@@ -33,6 +33,7 @@
#include <stdlib.h>
#include <GL/glew.h>
#include <opensubdiv/version.h>
#include <opensubdiv/osd/glMesh.h>
/* CPU Backend */
@@ -381,3 +382,8 @@ int openSubdiv_supportGPUDisplay(void)
(GLEW_ARB_texture_buffer_object || GLEW_EXT_texture_buffer_object)));
/* also ARB_explicit_attrib_location? */
}
int openSubdiv_getVersionHex(void)
{
return OPENSUBDIV_VERSION_NUMBER;
}

View File

@@ -152,6 +152,8 @@ void openSubdiv_init(bool gpu_legacy_support);
void openSubdiv_cleanup(void);
bool openSubdiv_gpu_legacy_support(void);
int openSubdiv_getVersionHex(void);
#ifdef __cplusplus
}
#endif