URL: https://graphicscomputing.fr/cgp/reference/opengl_fbo_structure/
Description: Off-screen frame buffer, to render into a texture (color or depth).

# opengl_fbo_structure

Off-screen frame buffer, to render into a texture (color or depth).

Fields:

- `opengl_fbo_mode mode` - Content of the FBO, image (RGB8 color texture plus a depth renderbuffer, default) or depth (depth texture only).
- `GLuint id` - OpenGL id of the framebuffer, 0 when not initialized.
- `GLuint depth_buffer_id` - OpenGL id of the depth renderbuffer used in image mode, 0 otherwise.
- `opengl_texture_image_structure texture` - Texture receiving the rendering, color in image mode or depth in depth mode, to be bound for sampling after unbind.
- `int width` - Width in pixels of the FBO and of its texture, 800 if not set before initialize.
- `int height` - Height in pixels of the FBO and of its texture, 800 if not set before initialize.
- `GLuint emscripten_color_attachment_id` - OpenGL id of the dummy color texture attached in depth mode under Emscripten, since WebGL requires a complete FBO.
- `GLint viewport_backup` - Viewport (x, y, width, height) saved by bind and restored by unbind.
