mirror of
https://github.com/chemistry-software/game-premake.git
synced 2026-11-07 09:07:36 +00:00
add support for OpenGLES 2/3 build flags
This commit is contained in:
1 parent
ad8b90d52b
commit
41c660c633
3 files changed
+15
-1
No files matched your search
@@ -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
@@ -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"
|
||||
}
|
||||
|
||||
@@ -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"}
|
||||
|
||||
|
||||
Reference in new issue
Block a user