some include path jazz
This commit is contained in:
@@ -7,3 +7,5 @@ endif()
|
||||
add_library(GryphnPlatform STATIC ${APPLE_FILES})
|
||||
target_include_directories(GryphnPlatform PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/../utils/)
|
||||
target_include_directories(GryphnPlatform PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/../core/)
|
||||
target_include_directories(GryphnPlatform PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/../core/src/)
|
||||
target_include_directories(GryphnPlatform PRIVATE ${CMAKE_CURRENT_SOURCE_DIR})
|
||||
|
@@ -1,19 +1,20 @@
|
||||
#pragma once
|
||||
#include "gryphn_rendering_api.h"
|
||||
#include <gryphn_rendering_api.h>
|
||||
|
||||
#ifdef GN_PLATFORM_LINUX
|
||||
#include <platform/platform_linux/gryphn_platform_linux.h>
|
||||
#include <platform_linux/gryphn_platform_linux.h>
|
||||
#endif
|
||||
|
||||
#ifdef GN_PLATFORM_MACOS
|
||||
#include <platform/platform_macos/gryphn_platform_macos.h>
|
||||
#include <platform_macos/gryphn_platform_macos.h>
|
||||
#endif
|
||||
|
||||
#ifdef GN_PLATFORM_WINDOWS
|
||||
#include "platform_windows/gryphn_platform_windows.h"
|
||||
#include <platform_windows/gryphn_platform_windows.h>
|
||||
#endif
|
||||
|
||||
gnRenderingAPI* gnGetSupportedRenderingAPIs(int* count);
|
||||
gnBool gnSupportsRenderingAPI(gnRenderingAPI api);
|
||||
|
||||
// #ifdef __cplusplus
|
||||
// template <typename function>
|
||||
|
@@ -15,6 +15,10 @@ gnRenderingAPI* gnGetSupportedRenderingAPIs(int* count) {
|
||||
return renderingAPIs;
|
||||
}
|
||||
|
||||
gnBool gnSupportsRenderingAPI(gnRenderingAPI api) {
|
||||
for (int i = 0; i < 3; i++) if (api == renderingAPIs[i]) return gnTrue;
|
||||
return gnFalse;
|
||||
}
|
||||
|
||||
CAMetalLayer* gnCreateCAMetalLayer(NSWindow* window) {
|
||||
NSView* view = window.contentView;
|
||||
|
Reference in New Issue
Block a user