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); 20 21static <a href="../../../../nnResult/Overview.html">nnResult</a> ClearTexture2DResource( 22 const Texture2DResource * tex2DResource, 23 <a href="../../../../nn_types/s32.html">s32</a> mipLevelIndexStart, 24 <a href="../../../../nn_types/s32.html">s32</a> mipLevelIndexEnd, 25 <a href="../../../../nn_types/u32.html">u32</a> value 26); 27</pre> 28 </div> 29<h2>List of Overloaded Member Functions</h2> 30 <div class="section"> 31 <table class="members"> 32 <tr> 33 <td> 34<a href="./ClearTexture2DResource(0).html"><CODE>ClearTexture2DResource ( const Texture2DResource *, s32, s32, const u8 )</CODE> </a> 35 </td> 36<td>Clears <CODE>Texture2DResource</CODE> resources using the color specified in the argument <SPAN class="Argument">Components</SPAN>. </td> 37 </tr> 38 <tr> 39 <td> 40<a href="./ClearTexture2DResource(1).html"><CODE>ClearTexture2DResource ( const Texture2DResource *, s32, s32, u32 )</CODE> </a> 41 </td> 42<td>Adds a command for clearing the <CODE>Texture2DResource</CODE> using the specified value to the current command list.</td> 43 </tr> </table> 44 </div> 45<h2>Description of ClearTexture2DResource ( const Texture2DResource *, s32, s32, const u8 )</h2> 46<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. Refer to the Programming Manual for details.</p><!-- write here --></div> 47<h2>Description of ClearTexture2DResource ( const Texture2DResource *, s32, s32, u32 )</h2> 48<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. Refer to the Programming Manual for details.</p><!-- write here --></div> 49 <hr><p>CONFIDENTIAL</p></body> 50</html>