GIF to Texture conversion

For help with anything that CEGUI doesn't offer straight out-of-the-box, e.g.:
- Implementation of new features, such as new Core classes, widgets, WindowRenderers, etc. ...
- Modification of any existing features for specific purposes
- Integration of CEGUI in new engines or frameworks and writing of new plugins (Renderer, Parser, ...) or modules

Moderators: CEGUI MVP, CEGUI Team

User avatar
parul
Not too shy to talk
Not too shy to talk
Posts: 22
Joined: Mon Feb 14, 2005 05:11

GIF to Texture conversion

Postby parul » Mon May 02, 2005 07:31

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

Return to “Modifications / Integrations / Customisations”

Who is online

Users browsing this forum: No registered users and 2 guests