forked from godotengine/godot
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add ETC1/ETC2 compression support though etc2comp.
Remove rg-etc1 code. Also updated travis to use ubuntu 14.04. Fixes godotengine#8457.
- Loading branch information
Showing
61 changed files
with
12,981 additions
and
2,765 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
#!/usr/bin/env python | ||
|
||
Import('env') | ||
Import('env_modules') | ||
|
||
env_etc = env_modules.Clone() | ||
|
||
# Thirdparty source files | ||
# Not unbundled so far since not widespread as shared library | ||
thirdparty_dir = "#thirdparty/etc2comp/" | ||
thirdparty_sources = [ | ||
"EtcBlock4x4.cpp", | ||
"EtcBlock4x4Encoding.cpp", | ||
"EtcBlock4x4Encoding_ETC1.cpp", | ||
"EtcBlock4x4Encoding_R11.cpp", | ||
"EtcBlock4x4Encoding_RG11.cpp", | ||
"EtcBlock4x4Encoding_RGB8A1.cpp", | ||
"EtcBlock4x4Encoding_RGB8.cpp", | ||
"EtcBlock4x4Encoding_RGBA8.cpp", | ||
"Etc.cpp", | ||
"EtcDifferentialTrys.cpp", | ||
"EtcFilter.cpp", | ||
"EtcImage.cpp", | ||
"EtcIndividualTrys.cpp", | ||
"EtcMath.cpp", | ||
"EtcSortedBlockList.cpp", | ||
] | ||
thirdparty_sources = [thirdparty_dir + file for file in thirdparty_sources] | ||
|
||
env_etc.add_source_files(env.modules_sources, thirdparty_sources) | ||
env_etc.Append(CPPPATH=[thirdparty_dir]) | ||
|
||
# Godot source files | ||
env_etc.add_source_files(env.modules_sources, "*.cpp") | ||
|
||
# upstream uses c++11 | ||
env_etc.Append(CXXFLAGS="-std=gnu++11") |
File renamed without changes.
Oops, something went wrong.