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>glCheckFramebufferStatus</title> 8 </head> 9 <body> 10<h1>glCheckFramebufferStatus Function</h1> 11<h2>Syntax</h2> 12 <div class="section"> 13 <pre class="definition"> 14GL_APICALL GLenum GL_APIENTRY glCheckFramebufferStatus( 15 GLenum target 16); 17</pre> 18 </div> 19<h2>Arguments</h2> 20 <div class="section"> 21 <table class="arguments"> 22 <thead> 23 <tr> 24 <td width="15" /> 25<th>Name</th> 26<td>Description</td> 27 </tr> 28 </thead> 29 <tr> 30<td>in</td> 31<th>target</th> 32<td>Target</td> 33 </tr> </table> 34 </div> 35<h2>Return Values</h2> 36<div class="section">Returns the state of the current framebuffer. </div> 37<h2>Description</h2> 38 <div class="section"> 39<p>Checks settings for the current framebuffer object.</p><P> 40Set <span class="argument">target</span> to <code>GL_FRAMEBUFFER</code>. 41 </P><P> 42This function returns the following values. 43<TABLE><TR><TH>GL_FRAMEBUFFER_COMPLETE</TH><TD>The correct buffer has been attached to each attachment point.</TD></TR><TR><TH>GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT</TH><TD>Neither the color buffer nor the depth buffer has been attached.</TD></TR><TR><TH>GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT</TH><TD>A data region has not been allocated for the buffers configured at each attachment point.</TD></TR><TR><TH>GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT</TH><TD>The same render buffer object was attached to the color and depth buffers.</TD></TR><TR><TH>GL_FRAMEBUFFER_INCOMPLETE_DIMENSIONS</TH><TD>Buffers of differing sizes are attached to the different attachment points.</TD></TR></TABLE><!-- source 各アタッチメントポイントに正しいバッファがアタッチされている場合、GL_FRAMEBUFFER_COMPLETEを返します。 カラーバッファとデプスバッファのどちらもアタッチされていない場合、GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENTを返します。 各アタッチメントポイントに設定されたバッファのデータ領域が確保されていない場合、GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENTを返します。 カラーバッファとデプスバッファに同じレンダーバッファオブジェクトをアタッチした場合、GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENTを返します。 各アタッチメントポイントにアタッチされたバッファのサイズが異なる場合、GL_FRAMEBUFFER_INCOMPLETE_DIMENSIONSを返します。 --></P><P> 44This function generates the following errors. 45<TABLE><TR><TH>GL_INVALID_OPERATION</TH><TD>This function was called without any command-list objects bound.</TD></TR><TR><TH>GL_INVALID_ENUM</TH><TD>The <span class="argument">target</span> argument was set to an invalid value.</TD></TR></TABLE><!-- source コマンドリストオブジェクトをバインドしていない状態で呼び出すとエラーGL_INVALID_OPERATIONを生成します。targetに不正な値を指定した場合エラーGL_INVALID_ENUMを生成します。 --></P></div> 46<h2>Revision History</h2> 47 <div class="section"> 48 <dl class="history"> 49 <dt>2010/01/07</dt> 50<dd>Initial version.<br /> 51 </dd> 52 </dl> 53 </div> 54 <hr><p>CONFIDENTIAL</p></body> 55</html>