View Full Version : Maybe it will be a good idea to make CL_Sprite impl protected

02-14-2013, 04:19 PM
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?

02-14-2013, 07:58 PM
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.)

02-14-2013, 08:31 PM
That's awesome.
hope the first stable release will be soon.