PDA

View Full Version : how to load CL_Image from resource manager?



LaDoncella
03-17-2013, 04:04 AM
I have tried with this code in clanlib 2.3.6

CL_ResourceManager graphics;
graphics.load(resource_location);
CL_Image image(gc, "background", &graphics);
and this resource in the xml

<image name="background" file="image.png" />

but always trows an exception
Exception caught: sprite resource contained no frames

LaDoncella
03-17-2013, 04:17 AM
Ended loading a texture from the resource and creating the image from it.