Gambas文档
编译和安装
错误消息
代码片段
待办事项
废弃的组件
教程
开发环境文档
开发者文档
名词解释
如何操作
说明
维基手册
维基搜索
维基许可协议
文档
应用程序仓库
语言概览
语言索引
主题
组件
gb
gb.args
gb.cairo
gb.chart
gb.clipper
gb.complex
gb.compress
gb.crypt
gb.data
gb.db
gb.db.form
gb.db.mysql
gb.db.odbc
gb.db.postgresql
gb.db.sqlite2
gb.db.sqlite3
gb.dbus
gb.dbus.trayicon
gb.debug
gb.desktop
gb.desktop.x11
gb.eval
gb.eval.highlight
gb.form
gb.form.dialog
gb.form.editor
gb.form.htmlview
gb.form.mdi
gb.form.print
gb.form.terminal
gb.gmp
gb.gsl
gb.gtk
gb.gtk3
gb.gtk3.opengl
gb.gtk3.webview
gb.gui
gb.gui.qt
gb.gui.qt.ext
gb.gui.trayicon
gb.gui.webview
gb.hash
gb.highlight
gb.image
gb.image.effect
gb.image.io
gb.inotify
gb.logging
gb.map
gb.media
gb.media.form
gb.mime
gb.mongodb
gb.mysql
gb.ncurses
gb.net
gb.net.curl
gb.net.pop3
gb.net.smtp
gb.opengl
Gl
gb.opengl.glsl
gb.opengl.glu
gb.opengl.sge
gb.openssl
gb.option
gb.pcre
gb.pdf
gb.poppler
gb.qt4
gb.qt4.ext
gb.qt4.opengl
gb.qt4.webkit
gb.qt4.webview
gb.qt5
gb.qt5.ext
gb.qt5.opengl
gb.qt5.webview
gb.qt6
gb.qt6.ext
gb.qt6.opengl
gb.qt6.webview
gb.report
gb.report2
gb.sdl
gb.sdl2
gb.sdl2.audio
gb.settings
gb.signal
gb.term
gb.test
gb.util
gb.util.web
gb.v4l
gb.vb
gb.web
gb.web.feed
gb.web.form
gb.web.gui
gb.xml
gb.xml.html
gb.xml.rpc
gb.xml.xslt
最近的修改

Gl.CheckFramebufferStatusEXT (gb.opengl)

Static Function CheckFramebufferStatusEXT ( Target As Integer ) As Integer

Check the completeness status of a framebuffer.

Parameters

target

Specify the target of the framebuffer completeness check.

Description

Gl.CheckFramebufferStatus queries the completeness status of the framebuffer object currently bound to target. target must be Gl.DRAW_FRAMEBUFFER, Gl.READ_FRAMEBUFFER or Gl.FRAMEBUFFER. Gl.FRAMEBUFFER is equivalent to Gl.DRAW_FRAMEBUFFER.

The return value is Gl.FRAMEBUFFER_COMPLETE if the framebuffer bound to target is complete. Otherwise, the return value is determined as follows:
  • Gl.FRAMEBUFFER_UNDEFINED is returned if target is the default framebuffer, but the default framebuffer does not exist.
  • Gl.FRAMEBUFFER_INCOMPLETE_ATTACHMENT is returned if any of the framebuffer attachment points are framebuffer incomplete.
  • Gl.FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT is returned if the framebuffer does not have at least one image attached to it.
  • Gl.FRAMEBUFFER_INCOMPLETE_DRAW_BUFFER is returned if the value of Gl.FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE is Gl.NONE for any color attachment point(s) named by Gl.DRAWBUFFERi.
  • Gl.FRAMEBUFFER_INCOMPLETE_READ_BUFFER is returned if Gl.READ_BUFFER is not Gl.NONE and the value of Gl.FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE is Gl.NONE for the color attachment point named by Gl.READ_BUFFER.
  • Gl.FRAMEBUFFER_UNSUPPORTED is returned if the combination of internal formats of the attached images violates an implementation-dependent set of restrictions.
  • Gl.FRAMEBUFFER_INCOMPLETE_MULTISAMPLE is returned if the value of Gl.RENDERBUFFER_SAMPLES is not the same for all attached renderbuffers; if the value of Gl.TEXTURE_SAMPLES is the not same for all attached textures; or, if the attached images are a mix of renderbuffers and textures, the value of Gl.RENDERBUFFER_SAMPLES does not match the value of Gl.TEXTURE_SAMPLES.
  • Gl.FRAMEBUFFER_INCOMPLETE_MULTISAMPLE is also returned if the value of Gl.TEXTURE_FIXED_SAMPLE_LOCATIONS is not the same for all attached textures; or, if the attached images are a mix of renderbuffers and textures, the value of Gl.TEXTURE_FIXED_SAMPLE_LOCATIONS is not Gl.TRUE for all attached textures.
  • Gl.FRAMEBUFFER_INCOMPLETE_LAYER_TARGETS is returned if any framebuffer attachment is layered, and any populated attachment is not layered, or if all populated color attachments are not from textures of the same target.

Additionally, if an error occurs, zero is returned.

Errors

Gl.INVALID_ENUM is generated if target is not Gl.DRAW_FRAMEBUFFER, Gl.READ_FRAMEBUFFER or Gl.FRAMEBUFFER.

See also

Gl.GenFramebuffers, Gl.DeleteFramebuffers Gl.BindFramebuffer

See original documentation on OpenGL website