Initial checkin of v1.04 - KTX file format support, basic ETC1 compression/decompression, Linux makefile with proper gcc options, lots of high-level improvements to get crnlib into a state where I can more easily add additional formats.

This commit is contained in:
richgel99@gmail.com
2012-11-25 08:41:25 +00:00
parent a8011e9d7f
commit f71b49be60
92 changed files with 20362 additions and 781 deletions
+7 -1
View File
@@ -211,7 +211,7 @@ namespace crnlib
return math::clamp<float>(r, l, h);
}
int random::irand(int l, int h)
{
CRNLIB_ASSERT(l < h);
@@ -236,6 +236,12 @@ namespace crnlib
return result;
}
int random::irand_inclusive(int l, int h)
{
CRNLIB_ASSERT(h < cINT32_MAX);
return irand(l, h + 1);
}
/*
ALGORITHM 712, COLLECTED ALGORITHMS FROM ACM.
THIS WORK PUBLISHED IN TRANSACTIONS ON MATHEMATICAL SOFTWARE,