Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Magnum Player #6

Merged
merged 36 commits into from
Oct 7, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
011a485
Ui: include proper configure header.
mosra Oct 2, 2018
67e8040
Bootstrap the magnum-player application.
mosra Jul 27, 2018
0d3d6c5
player: switch to the new TRS transformation implementation.
mosra Aug 3, 2018
409fbe4
player: initial support for loading and playing back animations.
mosra Aug 3, 2018
7c62d49
player: enable alpha masking for cheap&ugly alpha cutoff.
mosra Aug 3, 2018
081c2d0
player: import the model-defined camera, if possible.
mosra Aug 3, 2018
8ebd7c7
player: be nice to GLES2 and WebGL.
mosra Aug 3, 2018
2d76650
player: extract just the matrix rotation/scaling part altogether.
mosra Aug 3, 2018
caeaf1e
player: prepare the data to be reloadable.
mosra Aug 3, 2018
91d50df
player: initial port to Emscripten.
mosra Aug 3, 2018
d207136
player: implement drag&drop for Emscripten.
mosra Aug 31, 2018
fdaded1
player: support spline-interpolated animations.
mosra Sep 1, 2018
95d33b7
player: basic three-point light setup.
mosra Sep 6, 2018
ed8925a
player: bigger FoV.
mosra Sep 6, 2018
e712aa3
player: don't kill the alpha mask with specular color.
mosra Sep 6, 2018
76517a3
player: don't just ignore meshes without normals.
mosra Sep 11, 2018
2f9d606
player: deduplicate animation import code a bit.
mosra Sep 11, 2018
3549464
player: initial UI.
mosra Sep 11, 2018
1a05376
package: enable the player app in all packages and CIs.
mosra Aug 23, 2018
87e2f2f
player: don't capture the keyboard by default.
mosra Sep 11, 2018
ba8d4c0
player: display also the filename, remove now-redundant debug info.
mosra Sep 11, 2018
d160385
player: "relayout" the UI on window size change.
mosra Sep 11, 2018
172f661
player: a button to switch to full-size view and back.
mosra Sep 13, 2018
b639613
player: rudimentary support for blend and alpha mask.
mosra Sep 13, 2018
cbe0a9d
player: ability to control glTF animation clip merging.
mosra Sep 16, 2018
b436f19
player: adapt to Magnum changes.
mosra Sep 16, 2018
077b6f0
player: reorganize the privates a bit.
mosra Sep 19, 2018
8a002cb
player: depth-aware mouse interaction.
mosra Sep 19, 2018
94c3dac
player: make the lights relative to the camera again.
mosra Sep 19, 2018
3a1e217
player: port the depth-aware mouse interaction to WebGL.
mosra Sep 19, 2018
e47bc31
player: try to use MSAA by default.
mosra Sep 20, 2018
df7cd81
player: support dropping multiple files.
mosra Sep 20, 2018
4383d8e
player: initialize the animation time destination.
mosra Oct 2, 2018
8cdd5d0
player: seeking UI and controls.
mosra Oct 2, 2018
fdec16b
player: wrap up the docs, add a screenshot.
mosra Oct 7, 2018
8778b3a
Ui: add an image for the magnum-ui-gallery app.
mosra Oct 7, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@ cmake_dependent_option(BUILD_GL_TESTS "Build unit tests for OpenGL code" OFF "BU
option(BUILD_STATIC "Build static libraries (default are dynamic)" OFF)
cmake_dependent_option(BUILD_STATIC_PIC "Build static libraries with position-independent code" ON "BUILD_STATIC" OFF)

option(WITH_UI "Build Ui library" OFF)
option(WITH_PLAYER "Build the magnum-player application" OFF)
cmake_dependent_option(WITH_UI "Build Ui library" OFF "WITH_PLAYER" ON)
cmake_dependent_option(WITH_UI_GALLERY "Build magnum-ui-gallery executable" OFF "WITH_UI" OFF)

# Dynamic linking is meaningless on Emscripten and too inconvenient on Android
Expand Down
2 changes: 2 additions & 0 deletions doc/building-extras.dox
Original file line number Diff line number Diff line change
Expand Up @@ -245,10 +245,12 @@ By default no libraries are built and you need to select them manually:

- `WITH_UI` --- Build the @ref Ui library. Does not work on
@ref MAGNUM_TARGET_GLES2 "OpenGL ES 2.0" / WebGL 1.0 builds of Magnum.
Enabled automatically if `WITH_PLAYER` is enabled.

Besides libraries, the following apps are available, also all disabled by
default:

- `WITH_PLAYER` -- Build the @ref magnum-player "magnum-player" executable
- `WITH_UI_GALLERY` --- Build the @ref magnum-ui-gallery "magnum-ui-gallery"
executable

Expand Down
2 changes: 2 additions & 0 deletions doc/changelog-extras.dox
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ namespace Magnum {

@subsection changelog-extras-latest-new New features

- New @ref magnum-player "magnum-player" app for previewing, playing back and
inspecting animated scene files
- Rudimentary support for user interface relayouting using
@ref Ui::UserInterface::relayout()

Expand Down
1 change: 1 addition & 0 deletions doc/cmake-extras.dox
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ This command alone is useless without specifying the components:

Besides libraries, the following apps are available:

- `player` --- @ref magnum-player "magnum-player" executable
- `ui-gallery` --- @ref magnum-ui-gallery "magnum-ui-gallery" executable

Note that [each namespace](namespaces.html) contains more detailed information
Expand Down
97 changes: 97 additions & 0 deletions doc/player.dox
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
/*
This file is part of Magnum.

Copyright © 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018
Vladimír Vondruš <[email protected]>

Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
to deal in the Software without restriction, including without limitation
the rights to use, copy, modify, merge, publish, distribute, sublicense,
and/or sell copies of the Software, and to permit persons to whom the
Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included
in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.
*/

namespace Magnum {

/** @page magnum-player Magnum Player
@brief Advanced app for loading and playing back scene files

@m_footernavigation
@m_keywords{magnum-player player}

@image html player.jpg width=400px

@m_div{m-button m-primary} <a href="http://magnum.graphics/showcase/player/">@m_div{m-big}Live web version @m_enddiv @m_div{m-small} uses WebAssembly & WebGL @m_enddiv </a> @m_enddiv

This app is built if `WITH_PLAYER` is enabled when building Magnum Extras. To
use this app with CMake, you need to request the `player` component of the
`MagnumExtras` package and use the `MagnumExtras::player` target for example in
a custom command:

@code{.cmake}
find_package(MagnumExtras REQUIRED player)

add_custom_command(OUTPUT ... COMMAND MagnumExtras::player ...)
@endcode

@section magnum-player-controls Controls

- @m_class{m-label m-default} **Space** plays or pauses the animation
- @m_class{m-label m-default} **arrow keys** seek the animation forward or
backward
- @m_class{m-label m-default} **mouse drag** rotates the scene around the
cursor
- @m_class{m-label m-warning} **Shift** @m_class{m-label m-default} **mouse
drag** pans the scene at depth of the cursor
- @m_class{m-label m-default} **mouse wheel** zooms in/out relative to cursor
position
- @m_class{m-label m-default} **Num 1** / @m_class{m-label m-warning} **Ctrl**
@m_class{m-label m-default} **Num 1** switches to a front / back view
- @m_class{m-label m-default} **Num 3** / @m_class{m-label m-warning} **Ctrl**
@m_class{m-label m-default} **Num 3** switches to a right / left view
- @m_class{m-label m-default} **Num 7** / @m_class{m-label m-warning} **Ctrl**
@m_class{m-label m-default} **Num 7** switches to a top / bottom view
- @m_class{m-label m-default} **Num 0** resets the camera back to the
original view

@section magnum-player-usage Usage

@code{.sh}
magnum-player [--magnum-...] [-h|--help] [--importer IMPORTER] \
[--no-merge-animations] [--msaa N] [--] file
@endcode

Arguments:

- `file` --- file to load
- `-h`, `--help` --- display this help message and exit
- `--importer IMPORTER` --- importer plugin to use (default:
@ref Trade::TinyGltfImporter "TinyGltfImporter")
- `--no-merge-animations` --- don't merge glTF animations into a single clip
- `--msaa N` --- MSAA level to use (if not set, defaults to 8x or 2x for
HiDPI)
- `--magnum-...` --- engine-specific options (see
@ref GL-Context-command-line for details)

@section magnum-player-credits Credits

The screenshot was made using the
[Littlest Tokyo](https://sketchfab.com/models/94b24a60dc1b48248de50bf087c0f042)
model by [Glen Fox](https://www.artstation.com/glenatron), licensed under the
CC 4.0 Attribution license.

*/

}
Binary file added doc/player.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added doc/ui-gallery.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 2 additions & 1 deletion modules/FindMagnumExtras.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
#
# Ui - Ui library
# ui-gallery - magnum-ui-gallery executable
# player - magnum-player executable
#
# Example usage with specifying additional components is:
#
Expand Down Expand Up @@ -94,7 +95,7 @@ mark_as_advanced(MAGNUMEXTRAS_INCLUDE_DIR)
# Component distinction (listing them explicitly to avoid mistakes with finding
# components from other repositories)
set(_MAGNUMEXTRAS_LIBRARY_COMPONENT_LIST Ui)
set(_MAGNUMEXTRAS_EXECUTABLE_COMPONENT_LIST ui-gallery)
set(_MAGNUMEXTRAS_EXECUTABLE_COMPONENT_LIST player ui-gallery)

# Inter-component dependencies
set(_MAGNUMEXTRAS_ui-gallery_DEPENDENCIES Ui)
Expand Down
1 change: 1 addition & 0 deletions package/archlinux/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ build() {
-DCMAKE_INSTALL_PREFIX=/usr \
-DBUILD_TESTS=ON \
-DBUILD_GL_TESTS=ON \
-DWITH_PLAYER=ON \
-DWITH_UI=ON \
-DWITH_UI_GALLERY=ON \
-G Ninja
Expand Down
2 changes: 2 additions & 0 deletions package/archlinux/PKGBUILD-android-arm64
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@ build() {
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/opt/android-ndk/platforms/android-22/arch-arm64/usr \
-DMAGNUM_INCLUDE_INSTALL_PREFIX=/opt/android-ndk/sysroot/usr \
-DWITH_PLAYER=OFF \
-DWITH_UI=ON \
-DWITH_UI_GALLERY=OFF \
-DBUILD_TESTS=ON \
-DBUILD_GL_TESTS=ON
ninja
Expand Down
1 change: 1 addition & 0 deletions package/archlinux/PKGBUILD-coverage
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ build() {
-DCMAKE_INSTALL_PREFIX=/usr \
-DBUILD_TESTS=ON \
-DBUILD_GL_TESTS=ON \
-DWITH_PLAYER=ON \
-DWITH_UI=ON \
-DWITH_UI_GALLERY=ON \
-G Ninja
Expand Down
1 change: 1 addition & 0 deletions package/archlinux/PKGBUILD-emscripten
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ build() {
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr/lib/emscripten/system \
-DMAGNUM_DEPLOY_PREFIX=/srv/http/emscripten \
-DWITH_PLAYER=OFF \
-DWITH_UI=OFF \
-DWITH_UI_GALLERY=OFF \
-DBUILD_TESTS=OFF
Expand Down
1 change: 1 addition & 0 deletions package/archlinux/PKGBUILD-emscripten-wasm-webgl2
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ build() {
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr/lib/emscripten/system \
-DMAGNUM_DEPLOY_PREFIX=/srv/http/emscripten-webgl2 \
-DWITH_PLAYER=ON \
-DWITH_UI=ON \
-DWITH_UI_GALLERY=ON \
-DBUILD_TESTS=OFF
Expand Down
1 change: 1 addition & 0 deletions package/archlinux/PKGBUILD-emscripten-webgl2
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ build() {
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr/lib/emscripten/system \
-DMAGNUM_DEPLOY_PREFIX=/srv/http/emscripten \
-DWITH_PLAYER=ON \
-DWITH_UI=ON \
-DWITH_UI_GALLERY=ON \
-DBUILD_TESTS=OFF
Expand Down
1 change: 1 addition & 0 deletions package/archlinux/PKGBUILD-mingw-w64
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ build() {
-DCMAKE_INSTALL_PREFIX=/usr/x86_64-w64-mingw32 \
-DBUILD_TESTS=ON \
-DBUILD_GL_TESTS=ON \
-DWITH_PLAYER=ON \
-DWITH_UI=ON \
-DWITH_UI_GALLERY=ON \
-G Ninja
Expand Down
7 changes: 4 additions & 3 deletions package/ci/appveyor-desktop-gles.bat
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ cmake .. ^
-DTARGET_DESKTOP_GLES=ON ^
-DWITH_AUDIO=OFF ^
-DWITH_DEBUGTOOLS=OFF ^
-DWITH_MESHTOOLS=OFF ^
-DWITH_MESHTOOLS=ON ^
-DWITH_PRIMITIVES=OFF ^
-DWITH_SCENEGRAPH=OFF ^
-DWITH_SHADERS=OFF ^
-DWITH_SCENEGRAPH=ON ^
-DWITH_SHADERS=ON ^
-DWITH_SHAPES=OFF ^
-DWITH_TEXT=%TARGET_GLES3% ^
-DWITH_TEXTURETOOLS=%TARGET_GLES3% ^
Expand All @@ -50,6 +50,7 @@ cmake .. ^
-DCMAKE_BUILD_TYPE=Debug ^
-DCMAKE_INSTALL_PREFIX=%APPVEYOR_BUILD_FOLDER%/deps ^
-DCMAKE_PREFIX_PATH=%APPVEYOR_BUILD_FOLDER%/SDL ^
-DWITH_PLAYER=%TARGET_GLES3% ^
-DWITH_UI=%TARGET_GLES3% ^
-DWITH_UI_GALLERY=%TARGET_GLES3% ^
-DBUILD_TESTS=ON ^
Expand Down
7 changes: 4 additions & 3 deletions package/ci/appveyor-desktop-mingw.bat
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ cmake .. ^
-DCMAKE_PREFIX_PATH=%APPVEYOR_BUILD_FOLDER%/SDL ^
-DWITH_AUDIO=OFF ^
-DWITH_DEBUGTOOLS=OFF ^
-DWITH_MESHTOOLS=OFF ^
-DWITH_MESHTOOLS=ON ^
-DWITH_PRIMITIVES=OFF ^
-DWITH_SCENEGRAPH=OFF ^
-DWITH_SHADERS=OFF ^
-DWITH_SCENEGRAPH=ON ^
-DWITH_SHADERS=ON ^
-DWITH_SHAPES=OFF ^
-DWITH_TEXT=ON ^
-DWITH_TEXTURETOOLS=ON ^
Expand All @@ -50,6 +50,7 @@ cmake .. ^
-DCMAKE_BUILD_TYPE=Debug ^
-DCMAKE_INSTALL_PREFIX=%APPVEYOR_BUILD_FOLDER%/deps ^
-DCMAKE_PREFIX_PATH=%APPVEYOR_BUILD_FOLDER%/SDL ^
-DWITH_PLAYER=ON ^
-DWITH_UI=ON ^
-DWITH_UI_GALLERY=ON ^
-DBUILD_TESTS=ON ^
Expand Down
7 changes: 4 additions & 3 deletions package/ci/appveyor-desktop.bat
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ cmake .. ^
-DCMAKE_PREFIX_PATH=%APPVEYOR_BUILD_FOLDER%/SDL ^
-DWITH_AUDIO=OFF ^
-DWITH_DEBUGTOOLS=OFF ^
-DWITH_MESHTOOLS=OFF ^
-DWITH_MESHTOOLS=ON ^
-DWITH_PRIMITIVES=OFF ^
-DWITH_SCENEGRAPH=OFF ^
-DWITH_SHADERS=OFF ^
-DWITH_SCENEGRAPH=ON ^
-DWITH_SHADERS=ON ^
-DWITH_SHAPES=OFF ^
-DWITH_TEXT=ON ^
-DWITH_TEXTURETOOLS=ON ^
Expand All @@ -47,6 +47,7 @@ cmake .. ^
-DCMAKE_BUILD_TYPE=Debug ^
-DCMAKE_INSTALL_PREFIX=%APPVEYOR_BUILD_FOLDER%/deps ^
-DCMAKE_PREFIX_PATH=%APPVEYOR_BUILD_FOLDER%/SDL ^
-DWITH_PLAYER=ON ^
-DWITH_UI=ON ^
-DWITH_UI_GALLERY=ON ^
-DBUILD_TESTS=ON ^
Expand Down
1 change: 1 addition & 0 deletions package/ci/appveyor-rt.bat
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ cmake .. ^
-DOPENGLES3_LIBRARY=%APPVEYOR_BUILD_FOLDER%/angle/winrt/10/src/Release_x64/lib/libGLESv2.lib ^
-DOPENGLES3_INCLUDE_DIR=%APPVEYOR_BUILD_FOLDER%/angle/include ^
-DBUILD_STATIC=ON ^
-DWITH_PLAYER=OFF ^
-DWITH_UI=%TARGET_GLES3% ^
-DWITH_UI_GALLERY=OFF ^
-G "%GENERATOR%" -A x64 || exit /b
Expand Down
1 change: 1 addition & 0 deletions package/ci/travis-android-arm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ cmake .. \
-DCORRADE_RC_EXECUTABLE=$HOME/deps-native/bin/corrade-rc \
-DCMAKE_INSTALL_PREFIX=$HOME/deps \
-DCMAKE_FIND_ROOT_PATH=$HOME/deps \
-DWITH_PLAYER=OFF \
-DWITH_UI=$TARGET_GLES3 \
-DWITH_UI_GALLERY=OFF \
-DBUILD_TESTS=ON \
Expand Down
7 changes: 4 additions & 3 deletions package/ci/travis-desktop-gles.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ cmake .. \
-DTARGET_DESKTOP_GLES=ON \
-DWITH_AUDIO=OFF \
-DWITH_DEBUGTOOLS=OFF \
-DWITH_MESHTOOLS=OFF \
-DWITH_MESHTOOLS=ON \
-DWITH_PRIMITIVES=OFF \
-DWITH_SCENEGRAPH=OFF \
-DWITH_SHADERS=OFF \
-DWITH_SCENEGRAPH=ON \
-DWITH_SHADERS=ON \
-DWITH_SHAPES=OFF \
-DWITH_TEXT=$TARGET_GLES3 \
-DWITH_TEXTURETOOLS=$TARGET_GLES3 \
Expand All @@ -52,6 +52,7 @@ cmake .. \
-DCMAKE_INSTALL_PREFIX=$HOME/deps \
-DCMAKE_INSTALL_RPATH=$HOME/deps/lib \
-DCMAKE_BUILD_TYPE=Debug \
-DWITH_PLAYER=$TARGET_GLES3 \
-DWITH_UI=$TARGET_GLES3 \
-DWITH_UI_GALLERY=$TARGET_GLES3 \
-DBUILD_TESTS=ON \
Expand Down
7 changes: 4 additions & 3 deletions package/ci/travis-desktop.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ cmake .. \
-DCMAKE_BUILD_TYPE=Debug \
-DWITH_AUDIO=OFF \
-DWITH_DEBUGTOOLS=OFF \
-DWITH_MESHTOOLS=OFF \
-DWITH_MESHTOOLS=ON \
-DWITH_PRIMITIVES=OFF \
-DWITH_SCENEGRAPH=OFF \
-DWITH_SHADERS=OFF \
-DWITH_SCENEGRAPH=ON \
-DWITH_SHADERS=ON \
-DWITH_SHAPES=OFF \
-DWITH_TEXT=ON \
-DWITH_TEXTURETOOLS=ON \
Expand All @@ -50,6 +50,7 @@ cmake .. \
-DCMAKE_INSTALL_PREFIX=$HOME/deps \
-DCMAKE_INSTALL_RPATH=$HOME/deps/lib \
-DCMAKE_BUILD_TYPE=Debug \
-DWITH_PLAYER=ON \
-DWITH_UI=ON \
-DWITH_UI_GALLERY=ON \
-DBUILD_TESTS=ON \
Expand Down
10 changes: 7 additions & 3 deletions package/ci/travis-emscripten.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,15 @@ cmake .. \
-DCMAKE_FIND_ROOT_PATH=$HOME/deps \
-DWITH_AUDIO=OFF \
-DWITH_DEBUGTOOLS=OFF \
-DWITH_MESHTOOLS=OFF \
-DWITH_MESHTOOLS=ON \
-DWITH_PRIMITIVES=OFF \
-DWITH_SCENEGRAPH=OFF \
-DWITH_SHADERS=OFF \
-DWITH_SCENEGRAPH=ON \
-DWITH_SHADERS=ON \
-DWITH_SHAPES=OFF \
-DWITH_TEXT=$TARGET_GLES3 \
-DWITH_TEXTURETOOLS=$TARGET_GLES3 \
-DWITH_SDL2APPLICATION=$TARGET_GLES3 \
-DWITH_ANYIMAGEIMPORTER=$TARGET_GLES3 \
-DTARGET_GLES2=$TARGET_GLES2 \
-G Ninja
ninja install
Expand All @@ -76,6 +77,8 @@ cmake .. \
-DCMAKE_INSTALL_PREFIX=$HOME/deps \
-DCMAKE_FIND_ROOT_PATH=$HOME/deps \
-DWITH_STBTRUETYPEFONT=$TARGET_GLES3 \
-DWITH_STBIMAGEIMPORTER=$TARGET_GLES3 \
-DWITH_TINYGLTFIMPORTER=$TARGET_GLES3 \
-G Ninja
ninja install
cd ../..
Expand All @@ -91,6 +94,7 @@ cmake .. \
-DCMAKE_EXE_LINKER_FLAGS_RELEASE="-O1" \
-DCMAKE_INSTALL_PREFIX=$HOME/deps \
-DCMAKE_FIND_ROOT_PATH=$HOME/deps \
-DWITH_PLAYER=$TARGET_GLES3 \
-DWITH_UI=$TARGET_GLES3 \
-DWITH_UI_GALLERY=$TARGET_GLES3 \
-DBUILD_TESTS=ON \
Expand Down
7 changes: 4 additions & 3 deletions package/ci/travis-ios-simulator.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,10 @@ cmake .. \
-DCMAKE_PREFIX_PATH=$TRAVIS_BUILD_DIR/sdl2 \
-DWITH_AUDIO=OFF \
-DWITH_DEBUGTOOLS=OFF \
-DWITH_MESHTOOLS=OFF \
-DWITH_MESHTOOLS=ON \
-DWITH_PRIMITIVES=OFF \
-DWITH_SCENEGRAPH=OFF \
-DWITH_SHADERS=OFF \
-DWITH_SCENEGRAPH=ON \
-DWITH_SHADERS=ON \
-DWITH_SHAPES=OFF \
-DWITH_TEXT=$TARGET_GLES3 \
-DWITH_TEXTURETOOLS=$TARGET_GLES3 \
Expand Down Expand Up @@ -90,6 +90,7 @@ cmake .. \
-DCORRADE_RC_EXECUTABLE=$HOME/deps-native/bin/corrade-rc \
-DCMAKE_PREFIX_PATH="$HOME/deps;$TRAVIS_BUILD_DIR/sdl2" \
-DBUILD_STATIC=ON \
-DWITH_PLAYER=$TARGET_GLES3 \
-DWITH_UI=$TARGET_GLES3 \
-DWITH_UI_GALLERY=$TARGET_GLES3 \
-DBUILD_TESTS=ON \
Expand Down
Loading