libobs: Add function to enumerate video adapters

The gs_enum_adapters function is an optional implementation to allow
enumeration of available graphics adapters that can be used with the
program.  The ID associated with the adapter can be an index or a hash
depending on the implementation.
This commit is contained in:
jp9000
2015-01-14 21:08:33 -08:00
parent 05fc9c5b78
commit 1cb02d5879
6 changed files with 78 additions and 0 deletions

View File

@@ -42,6 +42,7 @@ bool load_graphics_imports(struct gs_exports *exports, void *module,
GRAPHICS_IMPORT(device_get_name);
GRAPHICS_IMPORT(device_get_type);
GRAPHICS_IMPORT_OPTIONAL(device_enum_adapters);
GRAPHICS_IMPORT(device_preprocessor_name);
GRAPHICS_IMPORT(device_create);
GRAPHICS_IMPORT(device_destroy);