Add support for Win32 backend and software rendering
This commit is contained in:
@@ -9,7 +9,8 @@ newoption
|
|||||||
{ "opengl33", "OpenGL 3.3"},
|
{ "opengl33", "OpenGL 3.3"},
|
||||||
{ "opengl43", "OpenGL 4.3"},
|
{ "opengl43", "OpenGL 4.3"},
|
||||||
{ "openges2", "OpenGL ES2"},
|
{ "openges2", "OpenGL ES2"},
|
||||||
{ "openges3", "OpenGL ES3"}
|
{ "openges3", "OpenGL ES3"},
|
||||||
|
{ "software", "OpenGL 1.1 Software Render"}
|
||||||
},
|
},
|
||||||
default = "opengl33"
|
default = "opengl33"
|
||||||
}
|
}
|
||||||
@@ -21,7 +22,8 @@ newoption
|
|||||||
description = "Backend Platform to use",
|
description = "Backend Platform to use",
|
||||||
allowed = {
|
allowed = {
|
||||||
{ "glfw", "GLFW"},
|
{ "glfw", "GLFW"},
|
||||||
{ "rgfw", "RGFW"}
|
{ "rgfw", "RGFW"},
|
||||||
|
{ "win32", "WIN32"},
|
||||||
},
|
},
|
||||||
default = "glfw"
|
default = "glfw"
|
||||||
}
|
}
|
||||||
@@ -62,6 +64,9 @@ function platform_defines()
|
|||||||
filter {"options:backend=rgfw"}
|
filter {"options:backend=rgfw"}
|
||||||
defines{"PLATFORM_DESKTOP_RGFW"}
|
defines{"PLATFORM_DESKTOP_RGFW"}
|
||||||
|
|
||||||
|
filter {"options:backend=win32"}
|
||||||
|
defines{"PLATFORM_DESKTOP_WIN32"}
|
||||||
|
|
||||||
filter {"options:graphics=opengl43"}
|
filter {"options:graphics=opengl43"}
|
||||||
defines{"GRAPHICS_API_OPENGL_43"}
|
defines{"GRAPHICS_API_OPENGL_43"}
|
||||||
|
|
||||||
@@ -80,6 +85,9 @@ function platform_defines()
|
|||||||
filter {"options:graphics=openges2"}
|
filter {"options:graphics=openges2"}
|
||||||
defines{"GRAPHICS_API_OPENGL_ES2"}
|
defines{"GRAPHICS_API_OPENGL_ES2"}
|
||||||
|
|
||||||
|
filter {"options:graphics=software"}
|
||||||
|
defines{"GRAPHICS_API_OPENGL_11_SOFTWARE"}
|
||||||
|
|
||||||
filter {"system:macosx"}
|
filter {"system:macosx"}
|
||||||
disablewarnings {"deprecated-declarations"}
|
disablewarnings {"deprecated-declarations"}
|
||||||
|
|
||||||
@@ -117,7 +125,6 @@ if (os.isdir('external') == false) then
|
|||||||
os.mkdir('external')
|
os.mkdir('external')
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
workspace (workspaceName)
|
workspace (workspaceName)
|
||||||
location "../"
|
location "../"
|
||||||
configurations { "Debug", "Release"}
|
configurations { "Debug", "Release"}
|
||||||
|
|||||||
Reference in New Issue
Block a user