From a92ec772e1af2628ec18057533671c496b6f7a7b Mon Sep 17 00:00:00 2001 From: hailey Date: Mon, 10 Mar 2025 09:33:12 -0500 Subject: [PATCH] [Renderers/Win32_GDI] first pass, fixed build errors and added build script --- examples/win32_gdi/main.c | 4 ++-- renderers/win32_gdi/clay_renderer_gdi.c | 18 +++++++++++++----- 2 files changed, 15 insertions(+), 7 deletions(-) diff --git a/examples/win32_gdi/main.c b/examples/win32_gdi/main.c index a957be6..f197a1f 100644 --- a/examples/win32_gdi/main.c +++ b/examples/win32_gdi/main.c @@ -8,10 +8,10 @@ #include -#include "clay_renderer_gdi.c" +#include "../../renderers/win32_gdi/clay_renderer_gdi.c" #define CLAY_IMPLEMENTATION -#include "../clay/clay.h" +#include "../../clay.h" #include "../shared-layouts/clay-video-demo.c" diff --git a/renderers/win32_gdi/clay_renderer_gdi.c b/renderers/win32_gdi/clay_renderer_gdi.c index 7ec7b05..5bd85e3 100644 --- a/renderers/win32_gdi/clay_renderer_gdi.c +++ b/renderers/win32_gdi/clay_renderer_gdi.c @@ -1,4 +1,5 @@ #include +#include "../../clay.h" HDC renderer_hdcMem = {0}; @@ -114,11 +115,18 @@ void Clay_Win32_Render(HWND hwnd, Clay_RenderCommandArray renderCommands) break; } - // The renderer should draw a colored border inset into the bounding box. - case CLAY_RENDER_COMMAND_TYPE_BORDER: - { - break; - } + // // The renderer should draw a colored border inset into the bounding box. + // case CLAY_RENDER_COMMAND_TYPE_BORDER: + // { + // // TODO: + // break; + // } + + // case CLAY_RENDER_COMMAND_TYPE_IMAGE: + // { + // // TODO: + // break; + // } default: printf("Unhandled render command %d\r\n", renderCommand->commandType);