From b2dc71485f3ae138e2e3dd676cddc6b3fca13235 Mon Sep 17 00:00:00 2001 From: Jeffery Myers Date: Thu, 23 Oct 2025 08:33:09 -0700 Subject: [PATCH] Add support for Win32 backend and software rendering --- build/premake5.lua | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/build/premake5.lua b/build/premake5.lua index d1a73fc..47594a0 100644 --- a/build/premake5.lua +++ b/build/premake5.lua @@ -9,7 +9,8 @@ newoption { "opengl33", "OpenGL 3.3"}, { "opengl43", "OpenGL 4.3"}, { "openges2", "OpenGL ES2"}, - { "openges3", "OpenGL ES3"} + { "openges3", "OpenGL ES3"}, + { "software", "OpenGL 1.1 Software Render"} }, default = "opengl33" } @@ -21,7 +22,8 @@ newoption description = "Backend Platform to use", allowed = { { "glfw", "GLFW"}, - { "rgfw", "RGFW"} + { "rgfw", "RGFW"}, + { "win32", "WIN32"}, }, default = "glfw" } @@ -62,6 +64,9 @@ function platform_defines() filter {"options:backend=rgfw"} defines{"PLATFORM_DESKTOP_RGFW"} + filter {"options:backend=win32"} + defines{"PLATFORM_DESKTOP_WIN32"} + filter {"options:graphics=opengl43"} defines{"GRAPHICS_API_OPENGL_43"} @@ -80,6 +85,9 @@ function platform_defines() filter {"options:graphics=openges2"} defines{"GRAPHICS_API_OPENGL_ES2"} + filter {"options:graphics=software"} + defines{"GRAPHICS_API_OPENGL_11_SOFTWARE"} + filter {"system:macosx"} disablewarnings {"deprecated-declarations"} @@ -117,7 +125,6 @@ if (os.isdir('external') == false) then os.mkdir('external') end - workspace (workspaceName) location "../" configurations { "Debug", "Release"}