colourblock.h 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /* -----------------------------------------------------------------------------
  2. Copyright (c) 2006 Simon Brown si@sjbrown.co.uk
  3. Permission is hereby granted, free of charge, to any person obtaining
  4. a copy of this software and associated documentation files (the
  5. "Software"), to deal in the Software without restriction, including
  6. without limitation the rights to use, copy, modify, merge, publish,
  7. distribute, sublicense, and/or sell copies of the Software, and to
  8. permit persons to whom the Software is furnished to do so, subject to
  9. the following conditions:
  10. The above copyright notice and this permission notice shall be included
  11. in all copies or substantial portions of the Software.
  12. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
  13. OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  14. MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
  15. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
  16. CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
  17. TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
  18. SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  19. -------------------------------------------------------------------------- */
  20. #ifndef SQUISH_COLOURBLOCK_H
  21. #define SQUISH_COLOURBLOCK_H
  22. #include "squish.h"
  23. #include "maths.h"
  24. namespace squish {
  25. void WriteColourBlock3( Vec3::Arg start, Vec3::Arg end, u8 const* indices, void* block );
  26. void WriteColourBlock4( Vec3::Arg start, Vec3::Arg end, u8 const* indices, void* block );
  27. void DecompressColour( u8* rgba, void const* block, bool isDxt1 );
  28. // -- GODOT start --
  29. void DecompressColourBc5( u8* rgba, void const* block );
  30. // -- GODOT end --
  31. } // namespace squish
  32. #endif // ndef SQUISH_COLOURBLOCK_H