Add renderer info query API
This commit is contained in:
@@ -117,6 +117,13 @@ typedef struct mjrRect_ { // OpenGL rectangle
|
||||
} mjrRect;
|
||||
|
||||
|
||||
typedef struct mjrRendererInfo_ { // active renderer identity
|
||||
const char* renderer; // renderer family: classic, filament, noop
|
||||
const char* backend; // graphics backend: opengl, vulkan; empty if uninitialized
|
||||
const char* backend_version; // backend version string, empty if unknown
|
||||
} mjrRendererInfo;
|
||||
|
||||
|
||||
typedef struct mjrVertexAttribute_ { // vertex attribute format specification
|
||||
const void* bytes; // vertex data
|
||||
int usage; // position, normal, etc [mjrVertexAttributeUsage]
|
||||
|
||||
Reference in New Issue
Block a user