Results 1 to 3 of 3

Thread: Maybe it will be a good idea to make CL_Sprite impl protected

  1. #1

    Default Maybe it will be a good idea to make CL_Sprite impl protected

    I was looking as well on how to get the textures from CL_Sprite, and saw that there are other people wanting this as well,
    so maybe it will be a good idea to change the declaration of impl member of CL_Sprite to protected rather than private? So you could derive it and add some methods you need like getTexture and other data at own risk?

  2. #2
    ClanLib Developer
    Join Date
    May 2007


    Clanlib 3.0, the sprite API has been enhanced to indirectly give access to the internal sprite textures.

    Instead of creating a sprite via "cl_Sprite sprite("filename")"

    You can now also create the sprite via "clan::Sprite(description)" where description is clan::SpriteDescription, which you an manually insert textures or retrieve them.

    (clanCore, clanDisplay, clanGL and clanD3D are almost complete. But the other modules are still being worked on.)

  3. #3


    That's awesome.
    hope the first stable release will be soon.

Similar Threads

  1. The polls for moderators a good idea?
    By I-Am-Legend in forum Tanked
    Replies: 3
    Last Post: 09-16-2012, 08:07 PM
  2. CL_SoundBuffer_Session default constructor has no impl
    By rmorison in forum Official ClanLib SDK Forums
    Replies: 6
    Last Post: 05-21-2010, 11:56 AM
  3. protected??
    By in forum Funeral Quest
    Replies: 2
    Last Post: 09-26-2004, 05:44 PM



Posting Permissions

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