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" xmlns="http://www.w3.org/1999/xhtml"> 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/manpage.css" type="text/css" /> 7<title>ClearTexture2DResource</title> 8 </head> 9 <body> 10<h1><CODE><a href="../../../../nn/Overview.html">nn</a>::<a href="../../../../nn/gd/Overview.html">gd</a>::<a href="../../../../nn/gd/CTR/Overview.html">CTR</a>::<a href="../../../../nn/gd/CTR/Memory/Overview.html">Memory</a>::ClearTexture2DResource</CODE> Member Function</h1> 11<h2>Syntax</h2> 12 <div class="section"> 13 <pre class="definition"> 14static <a href="../../../../nnResult/Overview.html">nnResult</a> ClearTexture2DResource( 15 const Texture2DResource * tex2DResource, 16 <a href="../../../../nn_types/s32.html">s32</a> mipLevelIndexStart, 17 <a href="../../../../nn_types/s32.html">s32</a> mipLevelIndexEnd, 18 const <a href="../../../../nn_types/u8.html">u8</a> Components[4] 19); 20static <a href="../../../../nnResult/Overview.html">nnResult</a> ClearTexture2DResource( 21 const Texture2DResource * tex2DResource, 22 <a href="../../../../nn_types/s32.html">s32</a> mipLevelIndexStart, 23 <a href="../../../../nn_types/s32.html">s32</a> mipLevelIndexEnd, 24 <a href="../../../../nn_types/u32.html">u32</a> value 25); 26</pre> 27 </div> 28<h2>List of Overloaded Member Functions</h2> 29 <div class="section"> 30 <table class="members"> 31 <tr> 32 <td> 33<a href="./ClearTexture2DResource(0).html"><CODE>ClearTexture2DResource ( const Texture2DResource *, s32, s32, const u8 )</CODE> </a> 34 </td> 35<td>Clears <CODE>Texture2DResource</CODE> resources using the color specified in the argument <SPAN class="Argument">Components</SPAN>. </td> 36 </tr> 37 <tr> 38 <td> 39<a href="./ClearTexture2DResource(1).html"><CODE>ClearTexture2DResource ( const Texture2DResource *, s32, s32, u32 )</CODE> </a> 40 </td> 41<td>Adds a command for clearing the <CODE>Texture2DResource</CODE> using the specified value to the current command list.</td> 42 </tr> </table> 43 </div> 44<h2>Description of ClearTexture2DResource ( const Texture2DResource *, s32, s32, const u8 )</h2> 45<div class="section"><p>Component[0] is the red, luminance, or HI component. Component[1] is the green or LO component. Component[2] is the blue component. Component[3] is the alpha color.<br />This function adds commands to the command list. For more information, see the programming manual.</p><!-- write here --></div> 46<h2>Description of ClearTexture2DResource ( const Texture2DResource *, s32, s32, u32 )</h2> 47<div class="section"><p>If the pixel format of the <CODE>Texture2DResource</CODE> to be cleared is smaller than 32 bits, 32-bit data is created for the specified value by repeating the number of times given by the resource pixel format size. FCRAM memory cannot be cleared. A function with the same functionality as <CODE>nngxAddMemoryFillCommand</CODE> is called internally. This function adds commands to the command list. For more information, see the programming manual.</p><!-- write here --></div> 48 <hr><p>CONFIDENTIAL</p></body> 49</html> 50