Results 1 to 2 of 2

Thread: how to load CL_Image from resource manager?

  1. #1

    Default how to load CL_Image from resource manager?

    I have tried with this code in clanlib 2.3.6
    Code:
    CL_ResourceManager graphics;
    graphics.load(resource_location);
    CL_Image image(gc, "background", &graphics);
    and this resource in the xml
    Code:
    <image name="background" file="image.png" />
    but always trows an exception
    Exception caught: sprite resource contained no frames

  2. #2

    Default

    Ended loading a texture from the resource and creating the image from it.

Similar Threads

  1. Resource Manager
    By Pigmess in forum Official ClanLib SDK Forums
    Replies: 0
    Last Post: 03-25-2012, 08:03 PM
  2. Can I use Colour Key for Transparency in CL_Sprite or CL_Image?
    By chrisg in forum Official ClanLib SDK Forums
    Replies: 2
    Last Post: 02-18-2012, 12:42 AM
  3. CL_Image or CL_Sprite using 2.3.3
    By babyvegas in forum Official ClanLib SDK Forums
    Replies: 3
    Last Post: 10-30-2011, 03:48 PM
  4. Resource Manager's additional resources
    By Ekowc in forum Official ClanLib SDK Forums
    Replies: 1
    Last Post: 03-15-2009, 12:50 AM
  5. Encountering Problems Using The Resource Manager
    By anyone in forum Official ClanLib SDK Forums
    Replies: 1
    Last Post: 06-05-2007, 03:07 AM

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •