source: GTP/trunk/Lib/Illum/IBRBillboardCloudTrees/OGRE/include/BBC/BBCUtil.h @ 700

Revision 700, 562 bytes checked in by igarcia, 18 years ago (diff)
Line 
1#ifndef _BBCUTIL_H
2#define _BBCUTIL_H
3
4#include <BBCPrerequisites.h>
5
6namespace BBC {
7/*
8extern "C" _BBCExport double fround(double n, unsigned d)
9{
10        return floor(n * pow((double)10.,(int) d) + .5) / pow((double)10.,(int) d);
11}
12
13extern "C" _BBCExport int iround(double x)
14{
15      return (int)floor(x + 0.5);
16}
17
18extern "C" _BBCExport unsigned int getUpperPowerOfTwo(unsigned int powerOfTwo)
19{
20        unsigned int icount = 0;
21        unsigned int depth = 1;
22        while (icount < powerOfTwo)
23        {
24                depth = depth << 1;
25                icount++;
26        }
27        return depth;
28}
29*/
30}
31
32#endif
Note: See TracBrowser for help on using the repository browser.