1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"[]> 2<html xml:lang="en-US" lang="en-US"> 3 <head> 4 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 5 <meta http-equiv="Content-Style-Type" content="text/css" /> 6 <link rel="stylesheet" href="../../../css/document.css" type="text/css" /> 7 <title>Graphix Library (gfx) Sample Demos</title> 8 </head> 9 <body> 10 <h1>ResourceDemo</h1> 11 12 <div class="section"><img src="images/ResourceDemo.png" border="0" width="400" height="240" /></div> 13 14 <h2>Overview</h2> 15 <p> 16 This demo loads lookup tables and shaders from a separate files and displays them. This demo shows how to resolve references when using multiple graphics files. 17 </p> 18 19 <h2>How to Use</h2> 20 <p> 21 <ul> 22 <li>Demo-specific operations</li> 23 <ul> 24 <li>None.</li> 25 </ul> 26 <li>Common Operations</li> 27 <ul> 28 <li>Slide pad: Rotate the camera</li> 29 <li>Slide pad + A Button: Move the camera back and forth</li> 30 <li>Slide pad + B Button: Move the camera in parallel</li> 31 <li>Slide pad + Y Button: Move the camera up and down</li> 32 <li>X Button: Reset the camera position</li> 33 <li>START Button: Restart the demo.</li> 34 </ul> 35 </ul> 36 </p> 37 38 <h2>Description</h2> 39 <p> 40 <a href="../../../nw/gfx/res/ResGraphicsFile/Overview.html">ResGraphicsFile</a> performs initialization and resolves path references using <a href="../../../nw/gfx/res/ResGraphicsFile/Setup.html">Setup</a>. When the object being referenced, such as a lookup table or shader, is located in a separate file, resolve references by specifying that file to <a href="../../../nw/gfx/res/ResGraphicsFile/Setup.html">Setup</a>. 41 </p> 42 <p> 43 Setup can be called as many times as necessary until references are completely resolved. You can get whether references were successfully resolved using <span>nw::gfx::res::ResMaterial::SetFragmentLightingTableHash</span>. 44 </p> 45 <p> 46 Use of this method allows objects being referenced frequently by multiple resources, such as shaders, to be handled as external files. 47 </p> 48 49 <hr><p>CONFIDENTIAL</p></body> 50</html> 51 52