Merge branch 'main' of github.com:raylib-extras/game-premake

This commit is contained in:
Jeffery Myers committed 2024-06-15 11:57:04 -07:00
commit 8b15cc0cd5
3 files changed
+15 -1

No files matched your search

+6
View File
@@ -96,6 +96,12 @@ If you need to build for a different OpenGL version than the default (OpenGL 3.3
## For OpenGL 4.3
--graphics=opengl43
## For OpenGLES 2.0
--graphics=opengles2
## For OpenGLES 3.0
--graphics=opengles3
# Building extra libs
If you need to add a separate library to your game you can do that very easily.
Simply copy the extras/example_library folder and rename it to what you want your lib to be called.
+3 -1
View File
@@ -24,7 +24,9 @@ newoption
{ "opengl11", "OpenGL 1.1"},
{ "opengl21", "OpenGL 2.1"},
{ "opengl33", "OpenGL 3.3"},
{ "opengl43", "OpenGL 4.3"}
{ "opengl43", "OpenGL 4.3"},
{ "opengles2", "OpenGLES 2.0"},
{ "opengles3", "OpenGLES 3.0"}
},
default = "opengl33"
}
+6
View File
@@ -30,6 +30,12 @@ function platform_defines()
filter {"options:graphics=opengl11"}
defines{"GRAPHICS_API_OPENGL_11"}
filter {"options:graphics=openges3"}
defines{"GRAPHICS_API_OPENGL_ES3"}
filter {"options:graphics=openges2"}
defines{"GRAPHICS_API_OPENGL_ES2"}
filter {"system:macosx"}
disablewarnings {"deprecated-declarations"}