|
|
|
@ -99,16 +99,13 @@ bool CSVRender::PagedWorldspaceWidget::adjustCells()
|
|
|
|
|
painter.setPen(Qt::white);
|
|
|
|
|
painter.drawText(QRect(0, 0, 1024, 1024), Qt::AlignCenter, QString(text.c_str()));
|
|
|
|
|
|
|
|
|
|
Ogre::TexturePtr texture;
|
|
|
|
|
if (Ogre::TextureManager::getSingleton().resourceExists("CellBillboardTexture" + iter->getId(mWorldspace)))
|
|
|
|
|
{
|
|
|
|
|
texture = Ogre::TextureManager::getSingleton().getByName("CellBillboardTexture" + iter->getId(mWorldspace));
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
|
|
|
|
|
Ogre::TexturePtr texture = Ogre::TextureManager::getSingleton().getByName("CellBillboardTexture" + iter->getId(mWorldspace));
|
|
|
|
|
if (texture.isNull())
|
|
|
|
|
{
|
|
|
|
|
texture = Ogre::TextureManager::getSingleton().createManual("CellBillboardTexture" + iter->getId(mWorldspace),
|
|
|
|
|
Ogre::ResourceGroupManager::DEFAULT_RESOURCE_GROUP_NAME,
|
|
|
|
|
Ogre::TEX_TYPE_2D, 1024, 1024, 1, Ogre::PF_X8R8G8B8, Ogre::TU_DEFAULT);
|
|
|
|
|
Ogre::TEX_TYPE_2D, 1024, 1024, 5, Ogre::PF_X8R8G8B8, Ogre::TU_DEFAULT);
|
|
|
|
|
|
|
|
|
|
int w = 1024;
|
|
|
|
|
int h = 1024;
|
|
|
|
|