xcal
基于 C++23 的现代图形渲染引擎
载入中...
搜索中...
未找到
Public 类型 | Public 成员函数 | 静态 Public 成员函数 | 所有成员列表
xcal::render::opengl::GL::FramebufferObject类 参考

#include <framebufferobject.hpp>

Public 类型

using color_format_t = Texture::color_format_t
 
using pixel_type_t = Texture::pixel_type_t
 

Public 成员函数

 FramebufferObject (gl::GLuint width, gl::GLuint height, color_format_t color_format=color_format_t::RGBA, pixel_type_t pixel_type=pixel_type_t::UNSIGNED_BYTE)
 
 ~FramebufferObject ()
 
bool_t is_valid () const
 
gl::GLuint width () const
 
gl::GLuint height () const
 
const Texturetexture () const
 
void bind () const
 
void swap (FramebufferObject &o)
 
std::vector< char > read_pixels_char () const
 
std::vector< float > read_pixels_float () const
 

静态 Public 成员函数

static void unbind ()
 

详细描述

在文件 framebufferobject.hpp7 行定义.

成员类型定义说明

◆ color_format_t

在文件 framebufferobject.hpp9 行定义.

◆ pixel_type_t

在文件 framebufferobject.hpp10 行定义.

构造及析构函数说明

◆ FramebufferObject()

xcal::render::opengl::GL::FramebufferObject::FramebufferObject ( gl::GLuint  width,
gl::GLuint  height,
color_format_t  color_format = color_format_t::RGBA,
pixel_type_t  pixel_type = pixel_type_t::UNSIGNED_BYTE 
)

◆ ~FramebufferObject()

xcal::render::opengl::GL::FramebufferObject::~FramebufferObject ( )

在文件 framebufferobject.cc30 行定义.

成员函数说明

◆ bind()

void xcal::render::opengl::GL::FramebufferObject::bind ( ) const

在文件 framebufferobject.cc33 行定义.

◆ height()

gl::GLuint xcal::render::opengl::GL::FramebufferObject::height ( ) const
inline

在文件 framebufferobject.hpp29 行定义.

◆ is_valid()

bool_t xcal::render::opengl::GL::FramebufferObject::is_valid ( ) const
inline

在文件 framebufferobject.hpp27 行定义.

◆ read_pixels_char()

std::vector< char > xcal::render::opengl::GL::FramebufferObject::read_pixels_char ( ) const

在文件 framebufferobject.cc37 行定义.

◆ read_pixels_float()

std::vector< float > xcal::render::opengl::GL::FramebufferObject::read_pixels_float ( ) const

在文件 framebufferobject.cc46 行定义.

◆ swap()

void xcal::render::opengl::GL::FramebufferObject::swap ( FramebufferObject o)
inline

◆ texture()

const Texture & xcal::render::opengl::GL::FramebufferObject::texture ( ) const
inline

在文件 framebufferobject.hpp30 行定义.

◆ unbind()

void xcal::render::opengl::GL::FramebufferObject::unbind ( )
static

在文件 framebufferobject.cc4 行定义.

◆ width()

gl::GLuint xcal::render::opengl::GL::FramebufferObject::width ( ) const
inline

在文件 framebufferobject.hpp28 行定义.


该类的文档由以下文件生成: