But when I load an image whose size is below 80*80(actually 79*79), the texture rendered to the window is distorted.
I just change the image in Sample Frame, the logo rotate picture.
And if I change the image size to 80*80 by photoshop, everything is OKAY.
In some other tries, any size below 80*80 is incorrect displayed.(I tried 50*50 60*60 70*70 75*75), and some very big picture is OKAY(800*600).
Any I also change the texture size, and the result is the same.
Here is the test code.
Code: Select all
CEGUI::ImagesetManager::getSingleton().
createFromImageFile("cegui_logo", "headPhoto3.jpg", "imagesets");
d_logo_geometry = &d_renderer->createGeometryBuffer();
d_logo_geometry->setClippingRegion(scrn);
d_logo_geometry->setPivot(CEGUI::Vector3(50, 34.75f, 0));
d_logo_geometry->setTranslation(CEGUI::Vector3(10, 520, 0));
CEGUI::ImagesetManager::getSingleton().get("cegui_logo").
getImage("full_image").draw(*d_logo_geometry, CEGUI::Rect(0, 0, 100, 69.5f), 0);
Sample uses logo.png, whose size is 128 * 89.