realXtend/naali — pull request #532 by jonnenauha (2012-09-16 19:11:22+00:00)
Title: Adminotech - Crunch texture support

* Adds .crn texture support for Tundra via TextureAsset handling the crn data, uncompression it in memory to dds and loads it to Ogre. Also stores the dds to asset cache so threaded loading of it still works as expected. Disk source is not required however and everything keeps working with eg. `--no_async_asset_load`
* Windows fullbuild dependency script builds crunch from sources. Linux and mac scripts need to be added.
* CRN support is optional, Tundra does not fail to build if the dependency is no found. If its not in the build .crn textures will simply fails with error message that crn support is disabled.

I acknowledge that CRN support is not very helpful if all our platforms do not support it. You really cant author worlds with it if all clients cant render the textures. However this is totally up to people building the dependency on linux/mac scripts.

However it seems that is not straight forward as svn trunk just got proper linux support and mac seems to still have some build errors, this is why I made it optional. Once this is resolved the `TUNDRA_CRUNCH_ENABLED` ifdefs can be removed for CRN support across all platforms.

Fixes issue #470

P.S. Please respond here if you have patches for MAC crunch build, as we will be working on the mac dep build here at Adminotech.