OpenGL framebuffer handle wrapper.
More...
#include <src/platform/linux/graphics.h>
|
| template<class It> |
| void | bind (It it_begin, It it_end) |
| | Bind textures to this object's framebuffers as color attachments.
|
|
void | bind (std::nullptr_t, std::nullptr_t) |
| | Bind each framebuffer and clear its color attachment.
|
| void | copy (int id, int texture, int offset_x, int offset_y, int width, int height) |
|
| frame_buf_t (frame_buf_t &&)=default |
| | Move ownership of OpenGL framebuffer object names.
|
| frame_buf_t & | operator= (frame_buf_t &&)=default |
| | Assign state from another instance while preserving ownership semantics.
|
| GLuint * | begin () |
| | Return an iterator to the first byte in the buffer view.
|
| GLuint * | end () |
| | Return an iterator one past the final byte in the buffer view.
|
| void | fake_resize (std::size_t els) |
| | Update the logical element count without reallocating storage.
|
| buffer_t & | operator= (buffer_t &&o) noexcept |
| | Exchange allocations and logical counts with the source buffer.
|
| GLuint & | operator[] (size_t el) |
| | Access an element in the owning buffer.
|
| size_t | size () const |
| | Return the serialized size of the current object.
|
|
| static frame_buf_t | make (std::size_t count) |
| | Allocate the underlying object and wrap it in the owning handle.
|
OpenGL framebuffer handle wrapper.
◆ bind()
template<class It>
| void gl::frame_buf_t::bind |
( |
It | it_begin, |
|
|
It | it_end ) |
|
inline |
Bind textures to this object's framebuffers as color attachments.
- Parameters
-
| it_begin | First texture object to attach. |
| it_end | One-past-the-end iterator for texture objects to attach. |
◆ copy()
| void gl::frame_buf_t::copy |
( |
int | id, |
|
|
int | texture, |
|
|
int | offset_x, |
|
|
int | offset_y, |
|
|
int | width, |
|
|
int | height ) |
Copies a part of the framebuffer to texture
- Parameters
-
| id | Framebuffer index to copy from. |
| texture | Destination texture receiving the copied pixels. |
| offset_x | Source X offset in pixels. |
| offset_y | Source Y offset in pixels. |
| width | Frame or display width in pixels. |
| height | Frame or display height in pixels. |
◆ make()
Allocate the underlying object and wrap it in the owning handle.
- Parameters
-
| count | Number of objects or handles to create. |
- Returns
- Created backend object, or null when creation fails.
◆ operator=()
Assign state from another instance while preserving ownership semantics.
- Returns
- Reference or value produced by the operator.
The documentation for this class was generated from the following files: