Hello,
In my application I am trying to convert a GIF file to Texture. But it is giving some error. Below is line of code and error message
CEGUI::Texture* myTexture =
System::getSingleton().getRenderer()->createTexture((utf8*)"giffile.gif");
CEGUI::Imageset* pImageSet =
ImagesetManager::getSingleton().createImageset((utf8*)"backdrop",
myTexture);
pImageSet->defineImage((utf8*)"background", Point(0.0f,
0.0f),Size(800,600),Point(0.0f,0.0f));
StaticImage* si =
(StaticImage*)WindowManager::getSingleton().createWindow((utf8*)"TaharezLook/StaticImage", (utf8*)"fond");
si->setPosition(Point(0.0f, 0.0f));
si->setSize(Size(1.0f, 1.0f));
si->setImage((utf8*)"backdrop",(utf8*)"background");
Error Message:
Exception: Failed to create Texture object from file 'giffile.gif'. Additional Information:
An exception has been thrown!
-----------------------------------
Details:
-----------------------------------
Error #: 0
Function: invalid enumerant
Description: IL Error.
File: C:\Ogre\ogrenew\OgreMain\src\OgreILImageCodec.cpp
Line: 123
Stack unwinding: (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- (..) <- D3D9RenderSystem::refreshD3DSettings(..) <- ILImageCodec::decode(..) <- Image::load(..) <- <<beginning of stack>>
Is there any way to create texture of GIF file by using either OGRE Texture or CEGUI Texture.
waiting for response.
Thanking you
Regards
parul
GIF to Texture conversion
Moderators: CEGUI MVP, CEGUI Team
Return to “Modifications / Integrations / Customisations”
Who is online
Users browsing this forum: No registered users and 2 guests