#if guard vsync API from Orca apps

This commit is contained in:
Martin Fouilleul 2023-09-09 15:33:59 +02:00
parent 18dff15cf1
commit 565bef5896
1 changed files with 2 additions and 0 deletions

View File

@ -128,12 +128,14 @@ ORCA_API void oc_surface_send_to_back(oc_surface surface); //DOC: puts surface
//------------------------------------------------------------------------------------------ //------------------------------------------------------------------------------------------
//SECTION: vsync //SECTION: vsync
//------------------------------------------------------------------------------------------ //------------------------------------------------------------------------------------------
#if !defined(OC_PLATFORM_ORCA) || !OC_PLATFORM_ORCA
typedef void (*oc_vsync_callback)(void* data); typedef void (*oc_vsync_callback)(void* data);
ORCA_API void oc_vsync_init(void); ORCA_API void oc_vsync_init(void);
ORCA_API void oc_vsync_wait(oc_window window); ORCA_API void oc_vsync_wait(oc_window window);
#endif
//------------------------------------------------------------------------------------------ //------------------------------------------------------------------------------------------
//SECTION: graphics canvas structs //SECTION: graphics canvas structs
//------------------------------------------------------------------------------------------ //------------------------------------------------------------------------------------------