diff --git a/CMakeLists.txt b/CMakeLists.txt index 61cf9f9..d564c51 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.11) project(raylib_nuklear DESCRIPTION "raylib_nuklear: Nuklear immediate mode GUI for raylib." HOMEPAGE_URL "https://github.com/robloach/raylib-nuklear" - VERSION 5.5.0 + VERSION 6.0.0 LANGUAGES C ) diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt index c9325f8..29122ee 100644 --- a/examples/CMakeLists.txt +++ b/examples/CMakeLists.txt @@ -5,7 +5,8 @@ if (NOT raylib_FOUND) FetchContent_Declare( raylib GIT_REPOSITORY https://github.com/raysan5/raylib.git - GIT_TAG 5.5 + # TODO: Update to 6.0 + GIT_TAG 6ef0044381c71d76ba0784e8c98aab28e26b817a GIT_SHALLOW 1 ) FetchContent_GetProperties(raylib) diff --git a/include/raylib-nuklear.h b/include/raylib-nuklear.h index e479875..a4ba228 100644 --- a/include/raylib-nuklear.h +++ b/include/raylib-nuklear.h @@ -1,12 +1,12 @@ /********************************************************************************************** * -* raylib-nuklear v5.5.0 - Nuklear GUI for Raylib. +* raylib-nuklear v6.0.0 - Nuklear GUI for Raylib. * * FEATURES: * - Use the Nuklear immediate-mode graphical user interface in raylib. * * DEPENDENCIES: -* - raylib 5.5+ https://www.raylib.com/ +* - raylib 6.0+ https://www.raylib.com/ * - Nuklear https://github.com/Immediate-Mode-UI/Nuklear * * LICENSE: zlib/libpng @@ -523,11 +523,7 @@ DrawNuklear(struct nk_context * ctx) rect.y += ((float) r->line_thickness) * scale + 1.0f; rect.width = NK_MAX(rect.width - (2 * ((float) r->line_thickness) * scale + 1.0f), 0.0f); rect.height = NK_MAX(rect.height - (2 * ((float) r->line_thickness) * scale + 1.0f), 0.0f); -#if RAYLIB_VERSION_MAJOR >= 5 && RAYLIB_VERSION_MINOR == 0 - DrawRectangleRoundedLines(rect, roundness, RAYLIB_NUKLEAR_DEFAULT_ARC_SEGMENTS, (float)r->line_thickness * scale, color); -#else DrawRectangleRoundedLinesEx(rect, roundness, RAYLIB_NUKLEAR_DEFAULT_ARC_SEGMENTS, (float)r->line_thickness * scale, color); -#endif } else { DrawRectangleLinesEx(rect, r->line_thickness * scale, color);