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:
+7
-1
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user