Code: Select all
Ogre::Real Width=800; Ogre::Real Height=600;
TexturePtr texture = TextureManager::getSingleton().createManual("DynamicTexture", // name
ResourceGroupManager::DEFAULT_RESOURCE_GROUP_NAME,
TEX_TYPE_2D, // type
Width, Height, // width & height
0, // number of mipmaps
PF_BYTE_BGRA, // pixel format
TU_DYNAMIC_WRITE_ONLY_DISCARDABLE);
printf("width is: %ld\n",texture->getWidth());
printf("height is: %ld\n",texture->getHeight());
width is: 1024
height is: 1024
Is there a problem in the create function, does it not use the width and height values specified?. Please help


