<!-- clanlib header begin --> <HTML> <HEAD> <TITLE>CL_ResourceData - ClanLib Game SDK</TITLE> <STYLE TYPE="text/css"><!-- HTML BODY { font-family: verdana, helvetica, sans-serif; font-size: 12px; } H1 { font-size: 22px; } H2 { font-size: 18px; } H3 { font-size: 16px; } H4 { font-size: 14px; } P { font-size: 12px; } LI { font-size: 12px; } --></STYLE> </HEAD> <body bgcolor=white text=black link=blue vlink=#800080> <center> <img src="http://clanlib.org/gfx/clanlib.png"> </center> <!-- clanlib header end --> <center> <p> <a href="http://clanlib.org/docs.html">Home</a> | <a href="classes.html">All Classes</a> | <a href="modules.html">Grouped Classes</a> | <a href="index.html">Index</a> | <a href="search.html">Search</a> </p> </center> <h1>Class CL_ResourceData</h1> <p> Data object attached to a resource. <a href="#description">More...</a></p> <p>Derived from: <i>none</i> <br> Derived by: <a href="CL_ResourceData_Boolean.html">CL_ResourceData_Boolean</a> <a href="CL_ResourceData_Float.html">CL_ResourceData_Float</a> <a href="CL_ResourceData_Integer.html">CL_ResourceData_Integer</a> <a href="CL_ResourceData_Raw.html">CL_ResourceData_Raw</a> <a href="CL_ResourceData_String.html">CL_ResourceData_String</a> <br>Group: Core (Resources)</p> <p> #include <ClanLib/core.h> <p> <table border=0 width=100%> </table> <p><b>Construction:</b></p> <table border=0 width=100%> <tr><td width=30% valign=top><p><a href="CL_ResourceData__CL_ResourceData.html">CL_ResourceData</a></p></td><td valign=top><p> Constructs a resource data object.</p></td></tr></table> <p><b>Attributes:</b></p> <table border=0 width=100%> <tr><td width=30% valign=top><p><a href="CL_ResourceData__get_resource.html">get_resource</a></p></td><td valign=top><p> Get Resource object.</p></td></tr></table> <p><b>Operations:</b></p> <table border=0 width=100%> <tr><td width=30% valign=top><p><a href="CL_ResourceData__on_load.html">on_load</a></p></td><td valign=top><p> Called first time CL_Resource::load() is called on the resource.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_ResourceData__on_unload.html">on_unload</a></p></td><td valign=top><p> Called last time CL_Resource::unload() is called on the resource.</p></td></tr></table> <a name="#description"><p><b>Detailed description:</b></p> !group=Core/Resources! !header=core.h! <p>The CL_ResourceData class represents a data object connected to a resource. A resource can have one or more of these data objects attached, and they can be retrieved by making a call to CL_Resource::get_data.</p> <p>Resource data objects are used to contain extra data associated with a certain resource. For instance, the surface resource has an object attached by the name "surface" that contain the loaded surface's data.</p> <!-- clanlib footer begin --> <center><br><br><font color="#a0a0a0"> Questions or comments, write to the <a href="http://clanlib.org/contact.html">ClanLib mailing list</a>. </font></center> </body> </html> <!-- clanlib footer end -->