Results 1 to 2 of 2

Thread: Could some one show me how to use the resource manager in Clanlib 3.x?

  1. #1

    Default Could some one show me how to use the resource manager in Clanlib 3.x?

    Hi all, I am having trouble figuring out how to get the new clanlib resource manager to work. I made the class

    clan::ResourceManager resources;

    but it only has one method that would appear to be useful set_cache. I am not sure what it does...

    Is this not the way I am supposed to load an xml file to manage my resources? I just want to load a sprite from this xml file

    <?xml version="1.0" encoding="iso-8859-1"?>
    <resources>
    <sprite name="Knight">
    <image file="../Media/Units/Knight.png">
    </image>
    </sprite>
    </resources>

    Could any one at least point me in the right direction? Thanks.

  2. #2
    ClanLib Developer
    Join Date
    May 2007
    Posts
    1,824

    Default

    Humm .......\ClanLib\Documentation\Overview\resource_ma nagement.h is out of date.

    I personally can't help at the moment, maybe someone else can. (Lack of time)

    Have a look at Examples/Game/SpritesRTS inside ClanLib 3.0 Examples.

    Also look at other examples that use resources - Comparing with the ClanLib 2.x examples

    I'm sure someone described ClanLib 3.0 resources somewhere, but I can't remember where.

Similar Threads

  1. Ancient ClanLib resource file
    By kanteen in forum Official ClanLib SDK Forums
    Replies: 2
    Last Post: 05-19-2013, 02:45 PM
  2. how to load CL_Image from resource manager?
    By LaDoncella in forum Official ClanLib SDK Forums
    Replies: 1
    Last Post: 03-17-2013, 04:17 AM
  3. Resource Manager
    By Pigmess in forum Official ClanLib SDK Forums
    Replies: 0
    Last Post: 03-25-2012, 08:03 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
  •