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

Media #26

Merged
merged 3 commits into from
Mar 24, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/RunPath/Projects

25 changes: 0 additions & 25 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ endif(WIN32)
option(OGITOR_MESHMAGICK_INTERFACE "Use MeshMagick widget" FALSE)

option(OGITOR_DOWNLOAD_SAMPLEPROJECT "Download and install sample project" TRUE)
option(OGITOR_DOWNLOAD_SAMPLEMEDIA "Download and install sample media" TRUE)

if(CMAKE_BUILD_TYPE STREQUAL "")
# CMake defaults to leaving CMAKE_BUILD_TYPE empty. This screws up
Expand Down Expand Up @@ -210,16 +209,6 @@ configure_file(${CMAKE_SOURCE_DIR}/CMakeModules/Templates/resources.cfg.in ${CMA
# OGITOR_LIBOGREOFSPLUGIN_PATH
#)

# Error out if old Media folder is detected
if(UNIX AND NOT APPLE AND IS_DIRECTORY ${CMAKE_SOURCE_DIR}/RunPath/Media/EditorResources)
message(SEND_ERROR "An old version of the Media folder was detected in: ${CMAKE_CURRENT_SOURCE_DIR}/RunPath .\nMake sure that you've downloaded the latest version of 'media.zip' from Ogitor.org and extracted it into ${CMAKE_CURRENT_SOURCE_DIR}/RunPath as 'Media'.")
endif()
if(NOT OGITOR_DOWNLOAD_SAMPLEMEDIA)
# Error out if Source_Dir/RunPath/Media and Source_Dir/RunPath/Projects isn't present on the users system
if(NOT IS_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/RunPath/Media)
message(SEND_ERROR "Failed to find ${CMAKE_CURRENT_SOURCE_DIR}/RunPath/Media.\nMake sure that you've downloaded 'media.zip' from Ogitor.org and extracted it into ${CMAKE_CURRENT_SOURCE_DIR}/RunPath as 'Media'.")
endif(NOT IS_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/RunPath/Media)
endif(NOT OGITOR_DOWNLOAD_SAMPLEMEDIA)
if(NOT OGITOR_DOWNLOAD_SAMPLEPROJECT)
if(NOT IS_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/RunPath/Projects)
message(SEND_ERROR "Failed to find ${CMAKE_CURRENT_SOURCE_DIR}/RunPath/Projects.\nMake sure that you've downloaded 'projects.zip' from Ogitor.org and extracted it into ${CMAKE_CURRENT_SOURCE_DIR}/RunPath as 'Projects'.")
Expand All @@ -243,20 +232,6 @@ if(OGITOR_DOWNLOAD_SAMPLEPROJECT)
set_target_properties(SampleProject PROPERTIES FOLDER Assets)
endif(OGITOR_DOWNLOAD_SAMPLEPROJECT)

# download, unpack and copy sample media
if(OGITOR_DOWNLOAD_SAMPLEMEDIA)
ExternalProject_Add(SampleMedia
URL https://github.com/OGRECave/ogitor/releases/download/v0.5.5/media.zip
PREFIX ${CMAKE_CURRENT_BINARY_DIR}
PATCH_COMMAND ${CMAKE_COMMAND} -E copy_directory
"${CMAKE_CURRENT_BINARY_DIR}/src/SampleMedia" "${CMAKE_CURRENT_SOURCE_DIR}/RunPath/Media"
CONFIGURE_COMMAND ""
BUILD_COMMAND ""
INSTALL_COMMAND ""
)
set_target_properties(SampleMedia PROPERTIES FOLDER Assets)
endif(OGITOR_DOWNLOAD_SAMPLEMEDIA)

# Generate OgitorsGlobals.cpp
configure_file(${CMAKE_SOURCE_DIR}/CMakeModules/Templates/OgitorsGlobals.cpp.in ${CMAKE_BINARY_DIR}/Ogitor/src/OgitorsGlobals.cpp)

Expand Down
Binary file added RunPath/Media/brushes/AllWhite.png
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 RunPath/Media/brushes/Circular.png
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 RunPath/Media/brushes/Square.png
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 RunPath/Media/brushes/flat_circular.png
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 RunPath/Media/brushes/noisy_circular1.png
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 RunPath/Media/brushes/noisy_circular2.png
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 RunPath/Media/brushes/sharp_circular.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading