gnSupportsRenderingAPI on linux
This commit is contained in:
@@ -2,14 +2,20 @@
|
|||||||
#include "gryphn_platform_linux.h"
|
#include "gryphn_platform_linux.h"
|
||||||
#include "gryphn_rendering_api.h"
|
#include "gryphn_rendering_api.h"
|
||||||
|
|
||||||
gnRenderingAPI renderingAPIs[2] = {
|
gnRenderingAPI renderingAPIs[3] = {
|
||||||
GN_RENDERINGAPI_VULKAN,
|
GN_RENDERINGAPI_VULKAN,
|
||||||
|
GN_RENDERINGAPI_OPENGL,
|
||||||
GN_RENDERINGAPI_SOFTWARE
|
GN_RENDERINGAPI_SOFTWARE
|
||||||
};
|
};
|
||||||
|
|
||||||
gnRenderingAPI* gnGetSupportedRenderingAPIs(int* count) {
|
gnRenderingAPI* gnGetSupportedRenderingAPIs(int* count) {
|
||||||
*count = 2;
|
*count = 3;
|
||||||
return renderingAPIs;
|
return renderingAPIs;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
gnBool gnSupportsRenderingAPI(gnRenderingAPI api) {
|
||||||
|
for (int i = 0; i < 3; i++) if (api == renderingAPIs[i]) return gnTrue;
|
||||||
|
return gnFalse;
|
||||||
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user