pra
06-07-2007 19:07:58
As I alerady mentioned, the plsm2 option class does not work in debug mode. because I need to debug this code part now, I changed it to scenemanager->getoption.
this is the code
and here's the log output:
I need this NumTiles.
PLSM is from SDK. (maybe this is the problem? should i get some older version instead?)
edit: bug in plsm2. patch submitted
this is the code
unsigned int TileSize = 0;
unsigned int PageSize = 0;
unsigned int height = 0;
unsigned int width = 0;
unsigned int NumTiles = 0;
unsigned int NumPages = 0;
mSceneMgr->getOption("TileSize",&TileSize);
mSceneMgr->getOption("PageSize",&PageSize);
mSceneMgr->getOption("Width",&width);
mSceneMgr->getOption("Height",&height);
NumTiles = static_cast<unsigned int> (static_cast <Real> (PageSize) / (TileSize - 1));
NumPages = static_cast<unsigned int> (static_cast <Real> (height * width));
and here's the log output:
19:58:52: PRA: TileSize=0
19:58:52: PRA: PageSize=513
19:58:52: PRA: NumTiles=0
19:58:52: PRA: NumPages=32
19:58:52: PRA: height=4
19:58:52: PRA: width=8
I need this NumTiles.
PLSM is from SDK. (maybe this is the problem? should i get some older version instead?)
edit: bug in plsm2. patch submitted