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 <style type="text/css"><!-- 8 span.static_style 9 { 10 font-size : 8pt; 11 color : white; 12 font-weight : bold; 13 background : #44f; 14 border-left : solid 1px #aaf; 15 border-top : solid 1px #aaf; 16 border-right : solid 1px #00c; 17 border-bottom : solid 1px #00c; 18 padding-left : 2px; 19 padding-right : 2px; 20 } 21 span.virtual_style 22 { 23 font-size : 8pt; 24 color : white; 25 font-weight : bold; 26 background : #0a0; 27 border-left : solid 1px #0f0; 28 border-top : solid 1px #0f0; 29 border-right : solid 1px #060; 30 border-bottom : solid 1px #060; 31 padding-left : 2px; 32 padding-right : 2px; 33 } 34 span.protected_style 35 { 36 font-size : 8pt; 37 color : white; 38 font-weight : bold; 39 background : #444; 40 border-left : solid 1px #ccc; 41 border-top : solid 1px #ccc; 42 border-right : solid 1px #222; 43 border-bottom : solid 1px #222; 44 padding-left : 2px; 45 padding-right : 2px; 46 } 47 --></style> 48<title>nn::gr::CTR::FrameBuffer</title> 49 </head> 50 <body> 51<h1><CODE><a href="../../../../nn/Overview.html">nn</a>::<a href="../../../../nn/gr/Overview.html">gr</a>::<a href="../../../../nn/gr/CTR/Overview.html">CTR</a>::FrameBuffer</CODE> Class</h1> 52<h2>Syntax</h2> 53 <div class="section"> 54<pre class="definition">class FrameBuffer</pre> 55 </div> 56<h2>Description</h2> 57 <div class="section"> 58<p>Class for configuring framebuffer settings.</p><!-- write here --></div> 59 <a name="class" id="class"> 60<h2>Classes</h2> 61 <div class="section"> 62 <table class="members"> 63 <tr> 64 <th> 65<a href="../../../../nn/gr/CTR/FrameBuffer/ColorBuffer/Overview.html"><CODE>nn::gr::CTR::FrameBuffer::ColorBuffer</CODE></a> 66 </th> 67<td>Class for configuring color buffer settings.</td> 68 </tr> 69 <tr> 70 <th> 71<a href="../../../../nn/gr/CTR/FrameBuffer/DepthStencilBuffer/Overview.html"><CODE>nn::gr::CTR::FrameBuffer::DepthStencilBuffer</CODE></a> 72 </th> 73<td>Class for configuring depth and stencil buffer settings.</td> 74 </tr> </table> 75 </div> 76 </a> <a name="enum" id="enum"> 77<h2>Enumerated Types</h2> 78 <div class="section"> 79 <table class="members"> 80 <tr> 81 <td width="100"> </td> 82 <th> 83<a href="../../../../nn/gr/CTR/FrameBuffer/BlockSize.html"><CODE>BlockSize</CODE></a> 84 </th> 85<td>Enumerated type definition for setting block sizes.</td> 86 </tr> </table> 87 </div> 88 </a> <a name="constant" id="constant"> 89<h2>Member Constants</h2> 90 <div class="section"> 91 <table class="members"> 92 <tr> 93 <td width="100"> 94<span class="static_style" title="static">S</span> 95 </td> 96 <th> 97<span class="argument"><a href="../../../../nn/gr/CTR/FrameBuffer/COLOR_BUFFER_BIT.html"><CODE>COLOR_BUFFER_BIT</CODE></a></span> 98 </th> 99<td width="100">const u32</td> 100<td>Bit specifying the color buffer.</td> 101 </tr> 102 <tr> 103 <td width="100"> 104<span class="static_style" title="static">S</span> 105 </td> 106 <th> 107<span class="argument"><a href="../../../../nn/gr/CTR/FrameBuffer/DEPTH_BUFFER_BIT.html"><CODE>DEPTH_BUFFER_BIT</CODE></a></span> 108 </th> 109<td width="100">const u32</td> 110<td>Bit specifying the depth buffer.</td> 111 </tr> 112 <tr> 113 <td width="100"> 114<span class="static_style" title="static">S</span> 115 </td> 116 <th> 117<span class="argument"><a href="../../../../nn/gr/CTR/FrameBuffer/STENCIL_BUFFER_BIT.html"><CODE>STENCIL_BUFFER_BIT</CODE></a></span> 118 </th> 119<td width="100">const u32</td> 120<td>Bit specifying the stencil buffer.</td> 121 </tr> 122 <tr> 123 <td width="100"> 124<span class="static_style" title="static">S</span> 125 </td> 126 <th> 127<span class="argument"><a href="../../../../nn/gr/CTR/FrameBuffer/DEPTH_STENCIL_BUFFER_BIT.html"><CODE>DEPTH_STENCIL_BUFFER_BIT</CODE></a></span> 128 </th> 129<td width="100">const u32</td> 130<td>Bit specifying the depth and stencil buffers.</td> 131 </tr> </table> 132 </div> 133 </a> <a name="variable" id="variable"> 134<h2>Member Variables</h2> 135 <div class="section"> 136 <table class="members"> 137 <tr> 138 <td width="100"> </td> 139 <th> 140<span class="argument">colorBuffer</span> 141 </th> 142<td width="100"><a href="../../../../nn/gr/CTR/FrameBuffer/ColorBuffer/Overview.html"><CODE>ColorBuffer</CODE></a></td> 143<td>The color buffer setting. Type is <a href="../../../../nn/gr/CTR/FrameBuffer/ColorBuffer/Overview.html"><CODE>nn::gr::CTR::FrameBuffer::ColorBuffer</CODE></a>.</td> 144 </tr> 145 <tr> 146 <td width="100"> </td> 147 <th> 148<span class="argument">depthStencilBuffer</span> 149 </th> 150<td width="100"><a href="../../../../nn/gr/CTR/FrameBuffer/DepthStencilBuffer/Overview.html"><CODE>DepthStencilBuffer</CODE></a></td> 151<td>The depth and stencil buffer setting. Type is <a href="../../../../nn/gr/CTR/FrameBuffer/DepthStencilBuffer/Overview.html"><CODE>nn::gr::CTR::FrameBuffer::DepthStencilBuffer</CODE></a>.</td> 152 </tr> 153 <tr> 154 <td width="100"> </td> 155 <th> 156<span class="argument">width</span> 157 </th> 158<td width="100">s32</td> 159<td>Width of the framebuffer. Type is <CODE>f32</CODE>.</td> 160 </tr> 161 <tr> 162 <td width="100"> </td> 163 <th> 164<span class="argument">height</span> 165 </th> 166<td width="100">s32</td> 167<td>Height of the framebuffer. Type is <CODE>f32</CODE>.</td> 168 </tr> </table> 169 </div> 170 </a> <a name="function" id="function"> 171<h2>Member Functions</h2> 172 <div class="section"> 173 <table class="members"> 174 <tr> 175 <td width="100"> </td> 176 <th> 177<a href="../../../../nn/gr/CTR/FrameBuffer/FrameBuffer.html"><CODE>FrameBuffer</CODE></a> 178 </th> 179<td>Initializes framebuffer settings to the initial values.</td> 180 </tr> 181 <tr> 182 <td width="100"> </td> 183 <th> 184<a href="../../../../nn/gr/CTR/FrameBuffer/MakeCommand.html"><CODE>MakeCommand</CODE></a> 185 </th> 186<td>Generates a command for setting the framebuffer based on information already set.</td> 187 </tr> 188 <tr> 189 <td width="100"> </td> 190 <th> 191<a href="../../../../nn/gr/CTR/FrameBuffer/MakeClearRequest.html"><CODE>MakeClearRequest</CODE></a> 192 </th> 193<td>Generates a request to clear the color buffer and the depth/stencil buffer. When the <SPAN class="argument">isSplitDrawCmdlist</SPAN> argument is <CODE>false</CODE>, you must call the <a href="../../../../nn_gx/nngxSplitDrawCmdlist.html"><CODE>nngxSplitDrawCmdlist</CODE></a> function before calling the request.</td> 194 </tr> 195 <tr> 196 <td width="100"> 197<span class="static_style" title="static">S</span> </td> 198 <th> 199<a href="../../../../nn/gr/CTR/FrameBuffer/MakeClearCacheCommand.html"><CODE>MakeClearCacheCommand</CODE></a> 200 </th> 201<td>Clears the framebuffer cache. Must be called after rendering and before changing registers 0x100-0x130.</td> 202 </tr> </table> 203 </div> 204 </a> 205<h2>Revision History</h2> 206 <div class="section"> 207 <dl class="history"> 208 <dt>2010/10/25</dt> 209<dd>Initial version.<br /> 210 </dd> 211 </dl> 212 </div> 213 <hr><p>CONFIDENTIAL</p></body> 214</html> 215